This repository has been archived by the owner. It is now read-only.

Provide default mixer configuration, so sound works by default. #702

Merged
merged 3 commits into from Oct 7, 2017

Conversation

Projects
None yet
5 participants
@pavelmachek
Member

pavelmachek commented Oct 5, 2017

Configuring mixers is not easy on system as complex as Nokia N900. Provide a default config file, so at least playback through loudspeaker works.

Provide default mixer configuration, so sound works by default.
Conflicts:
	aports/device/device-nokia-rx51/APKBUILD
@ollieparanoid

This comment has been minimized.

Show comment
Hide comment
@ollieparanoid

ollieparanoid Oct 5, 2017

Member

Thanks for making this! I have read about speakers getting destroyed on the N900 easily, has this been fixed in the kernel or does this config mute the speakers by default?

Member

ollieparanoid commented Oct 5, 2017

Thanks for making this! I have read about speakers getting destroyed on the N900 easily, has this been fixed in the kernel or does this config mute the speakers by default?

@MartijnBraam

This comment has been minimized.

Show comment
Hide comment
@MartijnBraam

MartijnBraam Oct 5, 2017

Member

The n900 needs a highpass filter in the audio pipeline to protect the speakers since it doesn't have analog filtering for that. I'm not sure alsa has something for that, in maemo its handled by a patched pulseaudio.

Member

MartijnBraam commented Oct 5, 2017

The n900 needs a highpass filter in the audio pipeline to protect the speakers since it doesn't have analog filtering for that. I'm not sure alsa has something for that, in maemo its handled by a patched pulseaudio.

@pavelmachek

This comment has been minimized.

Show comment
Hide comment
@pavelmachek

pavelmachek Oct 5, 2017

Member

Not sure about "easily". No, I'm not handling that problem.I'm not even sure I believe such problem exists :-). Link would be useful. This simply sets default configuration for N900 speakers.

As you need to be root to use alsaplay, anyway, this does not add any new problem.

Member

pavelmachek commented Oct 5, 2017

Not sure about "easily". No, I'm not handling that problem.I'm not even sure I believe such problem exists :-). Link would be useful. This simply sets default configuration for N900 speakers.

As you need to be root to use alsaplay, anyway, this does not add any new problem.

@@ -19,6 +19,7 @@ source="
acpi.map
keymaps/rx51_us.map
pointercal
asound.state

This comment has been minimized.

@PabloCastellano

PabloCastellano Oct 5, 2017

Member

Remember to bump pkgrel!

@PabloCastellano

PabloCastellano Oct 5, 2017

Member

Remember to bump pkgrel!

@ollieparanoid

This comment has been minimized.

Show comment
Hide comment
@ollieparanoid

ollieparanoid Oct 5, 2017

Member

I just want to make sure, that no one destroys these speakers by accident with postmarketOS. Here is one source:

This basically "just works", but be careful when unmuting - it's possible to play audio that destroys the internal speakers! If you're experienced in writing highpass filters, please contact [...]

So is it muted by default?

Member

ollieparanoid commented Oct 5, 2017

I just want to make sure, that no one destroys these speakers by accident with postmarketOS. Here is one source:

This basically "just works", but be careful when unmuting - it's possible to play audio that destroys the internal speakers! If you're experienced in writing highpass filters, please contact [...]

So is it muted by default?

@pavelmachek

This comment has been minimized.

Show comment
Hide comment
@pavelmachek

pavelmachek Oct 5, 2017

Member
Member

pavelmachek commented Oct 5, 2017

@ollieparanoid

This comment has been minimized.

Show comment
Hide comment
@ollieparanoid

ollieparanoid Oct 6, 2017

Member

80% by default sounds good to me until we know more. Could you do that and increase the pkgrel?

Member

ollieparanoid commented Oct 6, 2017

80% by default sounds good to me until we know more. Could you do that and increase the pkgrel?

@MartijnBraam

This comment has been minimized.

Show comment
Hide comment
@MartijnBraam

MartijnBraam Oct 6, 2017

Member

Looks like the n900 does have some highpass filtering in the audio hardware.

screenshot

I don't have specs on the codec or amplifier in the schematic so I don't know at what frequency its filtering but the hardware probably has enough protection from bass frequencies on the speakers.

Member

MartijnBraam commented Oct 6, 2017

Looks like the n900 does have some highpass filtering in the audio hardware.

screenshot

I don't have specs on the codec or amplifier in the schematic so I don't know at what frequency its filtering but the hardware probably has enough protection from bass frequencies on the speakers.

@pavelmachek

This comment has been minimized.

Show comment
Hide comment
@pavelmachek

pavelmachek Oct 6, 2017

Member
Member

pavelmachek commented Oct 6, 2017

@ollieparanoid ollieparanoid merged commit 000abee into postmarketOS:master Oct 7, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

PureTryOut added a commit that referenced this pull request Feb 21, 2018

Provide default mixer configuration, so sound works by default. (#702)
Sound level is set to 80%, because of rumors that the speakers
could be damaged otherwise. Details in:
#702
@NikkSaan

This comment has been minimized.

Show comment
Hide comment
@NikkSaan

NikkSaan Apr 13, 2018

Contributor

I have been using my N900 as a DAP quite successfully for the past four months. So, I'm uploading my configurations in case someone finds them useful, or wants to include them in the main package. I also include a script that switches between speakers and jack output, and is used to control the volume of the designated mixer - "PCM" for speakers, "TPA6130A2 Headphone" for jack.

I'm interested in hearing comments about whether or not I should set the headphone amp to a fixed value, and use PCM as master control for both outputs. Please let me know!

Note that these settings affect only the audio out thru speakers and jack, everything else is muted, and that these are prior to #1404! Also, before you apply any of the settings, I recommend creating a diff between the included asound.state.muted and asound.state.<headset, speakers> to see the changes being made in order to enable the output.

n900-audio-package.zip

Contributor

NikkSaan commented Apr 13, 2018

I have been using my N900 as a DAP quite successfully for the past four months. So, I'm uploading my configurations in case someone finds them useful, or wants to include them in the main package. I also include a script that switches between speakers and jack output, and is used to control the volume of the designated mixer - "PCM" for speakers, "TPA6130A2 Headphone" for jack.

I'm interested in hearing comments about whether or not I should set the headphone amp to a fixed value, and use PCM as master control for both outputs. Please let me know!

Note that these settings affect only the audio out thru speakers and jack, everything else is muted, and that these are prior to #1404! Also, before you apply any of the settings, I recommend creating a diff between the included asound.state.muted and asound.state.<headset, speakers> to see the changes being made in order to enable the output.

n900-audio-package.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.