Skip to contentSkip to conversation

Microphone gain on N900

DISCUSSION Pavel Machek 3 participants 6 messages Feb 26, 2017 – Apr 17, 2017

lore
Share & tools
lore
#0 lore raw

Hi!

v4.10 works quite nicely on N900, but I still have problems with audio. Even GSM calls would be usable, if I had reasonable volume on microphone and speaker... but I don't.

Both speaker and microphone are too quiet. I can get louder output by plugging headset -- good. I can hear the other side nicely, but am too quiet for them. Unfortunately, even if I plug in wired headset, internal microphone is still used.

Now... I researched mixer settings in v4.4, v4.10 and v2.6.28... and could not find way to control microphone. v2.6.28 is completely different from the other two. v4.10 misses many controls from v4.4; and I guess this might be related:

[    2.579925] rx51-audio n900-audio: tlv320aic3x-hifi <->
49022000.mcbsp mapping ok
[    2.586486] rx51-audio n900-audio: ASoC: no source widget found for
TPA6130A2 HPLEFT
[    2.592651] rx51-audio n900-audio: ASoC: Failed to add route
TPA6130A2 HPLEFT -> direct -> Headphone Jack
[    2.605163] rx51-audio n900-audio: ASoC: no source widget found for
TPA6130A2 HPRIGHT
[    2.611938] rx51-audio n900-audio: ASoC: Failed to add route
TPA6130A2 HPRIGHT -> direct -> Headphone Jack
[    2.625701] rx51-audio n900-audio: ASoC: no sink widget found for
TPA6130A2 LEFTIN
[    2.632965] rx51-audio n900-audio: ASoC: Failed to add route LLOUT
-> direct -> TPA6130A2 LEFTIN
[    2.640563] rx51-audio n900-audio: ASoC: no sink widget found for
TPA6130A2 RIGHTIN
[    2.648101] rx51-audio n900-audio: ASoC: Failed to add route RLOUT
-> direct -> TPA6130A2 RIGHTIN
[    2.655761] rx51-audio n900-audio: ASoC: no sink widget found for b
LINE2R
[    2.663208] rx51-audio n900-audio: ASoC: Failed to add route
MONO_LOUT -> direct -> b LINE2R
[    2.670501] rx51-audio n900-audio: ASoC: no source widget found for
b HPLOUT
[    2.677642] rx51-audio n900-audio: ASoC: Failed to add route b
HPLOUT -> direct -> Earphone
[    2.685058] rx51-audio n900-audio: ASoC: no source widget found for
b Mic Bias
[    2.692352] rx51-audio n900-audio: ASoC: Failed to add route b Mic
Bias -> direct -> HS Mic
[    2.706298] input: RX-51 AV Jack as

/devices/platform/n900-audio/sound/card0/input6

Pali, do you have maemo running on top of recent kernel (v4.1, v4.4, v4.10?). Do voice calls work there?

Any ideas welcome...

Best regards,
Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170226/26df08ad/attachment-0001.sig>
#1 lore raw
Quoted 47 lines · On Sunday 26 February 2017 21:28:32 Pavel Machek wrote:

Hi!

v4.10 works quite nicely on N900, but I still have problems with audio. Even GSM calls would be usable, if I had reasonable volume on microphone and speaker... but I don't.

Both speaker and microphone are too quiet. I can get louder output by plugging headset -- good. I can hear the other side nicely, but am too quiet for them. Unfortunately, even if I plug in wired headset, internal microphone is still used.

Now... I researched mixer settings in v4.4, v4.10 and v2.6.28... and could not find way to control microphone. v2.6.28 is completely different from the other two. v4.10 misses many controls from v4.4; and I guess this might be related:

[    2.579925] rx51-audio n900-audio: tlv320aic3x-hifi <->
49022000.mcbsp mapping ok
[    2.586486] rx51-audio n900-audio: ASoC: no source widget found
for TPA6130A2 HPLEFT
[    2.592651] rx51-audio n900-audio: ASoC: Failed to add route
TPA6130A2 HPLEFT -> direct -> Headphone Jack
[    2.605163] rx51-audio n900-audio: ASoC: no source widget found
for TPA6130A2 HPRIGHT
[    2.611938] rx51-audio n900-audio: ASoC: Failed to add route
TPA6130A2 HPRIGHT -> direct -> Headphone Jack
[    2.625701] rx51-audio n900-audio: ASoC: no sink widget found for
TPA6130A2 LEFTIN
[    2.632965] rx51-audio n900-audio: ASoC: Failed to add route LLOUT
-> direct -> TPA6130A2 LEFTIN
[    2.640563] rx51-audio n900-audio: ASoC: no sink widget found for
TPA6130A2 RIGHTIN
[    2.648101] rx51-audio n900-audio: ASoC: Failed to add route RLOUT
-> direct -> TPA6130A2 RIGHTIN
[    2.655761] rx51-audio n900-audio: ASoC: no sink widget found for
b LINE2R
[    2.663208] rx51-audio n900-audio: ASoC: Failed to add route
MONO_LOUT -> direct -> b LINE2R
[    2.670501] rx51-audio n900-audio: ASoC: no source widget found
for b HPLOUT
[    2.677642] rx51-audio n900-audio: ASoC: Failed to add route b
HPLOUT -> direct -> Earphone
[    2.685058] rx51-audio n900-audio: ASoC: no source widget found
for b Mic Bias
[    2.692352] rx51-audio n900-audio: ASoC: Failed to add route b Mic
Bias -> direct -> HS Mic
[    2.706298] input: RX-51 AV Jack as
Quoted 1 line

/devices/platform/n900-audio/sound/card0/input6

Jarkko, Peter: can you look at above errors? Looks like audio routing is not correctly configured.

Quoted 2 lines

Pali, do you have maemo running on top of recent kernel (v4.1, v4.4, v4.10?). Do voice calls work there?

Now I do not have prepared Maemo + mainline kernel for testing...

I remember that Maemo sscd/csd/... daemons were able to connect to cellular network but I was not trying to make voice calls.

Quoted 4 lines

Any ideas welcome...

Best regards,
Pavel

Signature · 9 lines
Pali Roh?r
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170227/2bfc4c0d/attachment.sig>
#2 lore raw
Quoted 7 lines · Pali Roh?r
Quoted 6 lines · On Sunday 26 February 2017 21:28:32 Pavel Machek wrote:

Hi!

v4.10 works quite nicely on N900, but I still have problems with audio. Even GSM calls would be usable, if I had reasonable volume on microphone and speaker... but I don't.

Quoted 5 lines
Quoted 5 lines

Both speaker and microphone are too quiet. I can get louder output by plugging headset -- good. I can hear the other side nicely, but am too quiet for them. Unfortunately, even if I plug in wired headset, internal microphone is still used.

For me these settings provide reasonable playback and capture volumes using v4.10.1:

amixer -D hw:0 set PCM 100%
amixer -D hw:0 set 'Line DAC' 80% on
amixer -D hw:0 set 'Line' on
amixer -D hw:0 set 'Left Line Mixer DACL1' on
amixer -D hw:0 set 'Right Line Mixer DACR1' on
amixer -D hw:0 set 'Jack Function' 'Headphone'
amixer -D hw:0 set 'TPA6130A2 Headphone' 80%

amixer -D hw:0 set 'Jack Function' 'Headset'
amixer -D hw:0 set 'AGC' off
amixer -D hw:0 set 'Input Select' 'ADC'
amixer -D hw:0 set 'Left PGA Mixer Line1L' on
amixer -D hw:0 set 'Left Line1L Mux' 'differential' amixer -D hw:0 set 'Right PGA Mixer Line1L' on
amixer -D hw:0 set 'Right Line1L Mux' 'differential' amixer -D hw:0 set 'ADC HPF Cut-off' '0.0045xFs' 'disabled' amixer -D hw:0 set PGA 50% on
amixer -D hw:0 cset iface=MIXER,name='PGA Capture Switch',index=0 on

Signature · 1 line
Jarkko
#3 lore raw

Hi!

Quoted 20 lines
Quoted 9 lines
Quoted 9 lines

v4.10 works quite nicely on N900, but I still have problems with audio. Even GSM calls would be usable, if I had reasonable volume on microphone and speaker... but I don't.

Both speaker and microphone are too quiet. I can get louder output by plugging headset -- good. I can hear the other side nicely, but am too quiet for them. Unfortunately, even if I plug in wired headset, internal microphone is still used.

For me these settings provide reasonable playback and capture volumes using v4.10.1:

amixer -D hw:0 set PCM 100%
amixer -D hw:0 set 'Line DAC' 80% on
amixer -D hw:0 set 'Line' on
amixer -D hw:0 set 'Left Line Mixer DACL1' on
amixer -D hw:0 set 'Right Line Mixer DACR1' on
amixer -D hw:0 set 'Jack Function' 'Headphone'
amixer -D hw:0 set 'TPA6130A2 Headphone' 80%

Quoted 10 lines

amixer -D hw:0 set 'Jack Function' 'Headset'
amixer -D hw:0 set 'AGC' off
amixer -D hw:0 set 'Input Select' 'ADC'
amixer -D hw:0 set 'Left PGA Mixer Line1L' on
amixer -D hw:0 set 'Left Line1L Mux' 'differential' amixer -D hw:0 set 'Right PGA Mixer Line1L' on
amixer -D hw:0 set 'Right Line1L Mux' 'differential' amixer -D hw:0 set 'ADC HPF Cut-off' '0.0045xFs' 'disabled' amixer -D hw:0 set PGA 50% on
amixer -D hw:0 cset iface=MIXER,name='PGA Capture Switch',index=0 on

This seems to correspond to volumes I have had before. They are enough for phone call in quiet environment, but not really for normal usage.

Do you have settings where microphone on wired headset works?

Thanks,
Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170302/2b464f00/attachment.sig>
#4 lore raw
Quoted 33 lines · Pavel Machek

Hi!

Quoted 20 lines
Quoted 9 lines
Quoted 9 lines

v4.10 works quite nicely on N900, but I still have problems with audio. Even GSM calls would be usable, if I had reasonable volume on microphone and speaker... but I don't.

Both speaker and microphone are too quiet. I can get louder output by plugging headset -- good. I can hear the other side nicely, but am too quiet for them. Unfortunately, even if I plug in wired headset, internal microphone is still used.

For me these settings provide reasonable playback and capture volumes using v4.10.1:

amixer -D hw:0 set PCM 100%
amixer -D hw:0 set 'Line DAC' 80% on
amixer -D hw:0 set 'Line' on
amixer -D hw:0 set 'Left Line Mixer DACL1' on
amixer -D hw:0 set 'Right Line Mixer DACR1' on
amixer -D hw:0 set 'Jack Function' 'Headphone'
amixer -D hw:0 set 'TPA6130A2 Headphone' 80%

Quoted 10 lines

amixer -D hw:0 set 'Jack Function' 'Headset'
amixer -D hw:0 set 'AGC' off
amixer -D hw:0 set 'Input Select' 'ADC'
amixer -D hw:0 set 'Left PGA Mixer Line1L' on
amixer -D hw:0 set 'Left Line1L Mux' 'differential' amixer -D hw:0 set 'Right PGA Mixer Line1L' on
amixer -D hw:0 set 'Right Line1L Mux' 'differential' amixer -D hw:0 set 'ADC HPF Cut-off' '0.0045xFs' 'disabled' amixer -D hw:0 set PGA 50% on
amixer -D hw:0 cset iface=MIXER,name='PGA Capture Switch',index=0 on

Quoted 5 lines

This seems to correspond to volumes I have had before. They are enough for phone call in quiet environment, but not really for normal usage.

Do you have settings where microphone on wired headset works?

Those settings above. They are set after putting all volumes to 0 and muted. I'm using the Nokia WH-205 headset that came with the phone.

Signature · 1 line
Jarkko
#5 lore raw

Hi!

Quoted 31 lines
Quoted 31 lines
Quoted 30 lines
Quoted 9 lines
Quoted 9 lines

v4.10 works quite nicely on N900, but I still have problems with audio. Even GSM calls would be usable, if I had reasonable volume on microphone and speaker... but I don't.

Both speaker and microphone are too quiet. I can get louder output by plugging headset -- good. I can hear the other side nicely, but am too quiet for them. Unfortunately, even if I plug in wired headset, internal microphone is still used.

For me these settings provide reasonable playback and capture volumes using v4.10.1:

amixer -D hw:0 set PCM 100%
amixer -D hw:0 set 'Line DAC' 80% on
amixer -D hw:0 set 'Line' on
amixer -D hw:0 set 'Left Line Mixer DACL1' on
amixer -D hw:0 set 'Right Line Mixer DACR1' on
amixer -D hw:0 set 'Jack Function' 'Headphone'
amixer -D hw:0 set 'TPA6130A2 Headphone' 80%

amixer -D hw:0 set 'Jack Function' 'Headset'
amixer -D hw:0 set 'AGC' off
amixer -D hw:0 set 'Input Select' 'ADC'
amixer -D hw:0 set 'Left PGA Mixer Line1L' on
amixer -D hw:0 set 'Left Line1L Mux' 'differential' amixer -D hw:0 set 'Right PGA Mixer Line1L' on
amixer -D hw:0 set 'Right Line1L Mux' 'differential' amixer -D hw:0 set 'ADC HPF Cut-off' '0.0045xFs' 'disabled' amixer -D hw:0 set PGA 50% on
amixer -D hw:0 cset iface=MIXER,name='PGA Capture Switch',index=0 on

Quoted 7 lines
Quoted 5 lines

This seems to correspond to volumes I have had before. They are enough for phone call in quiet environment, but not really for normal usage.

Do you have settings where microphone on wired headset works?

Those settings above. They are set after putting all volumes to 0 and muted. I'm using the Nokia WH-205 headset that came with the phone.

I just wanted to say thank you. I finally got to testing those settings again, and this time headset microphone definitely works.

Loopback using arecord | aplay now produces reasonable volume of audio. (Unfortunately, I still have some problems somewhere in the audio<->GSM path :-( ).

Best regards,
Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170417/4432e410/attachment.sig>