All of lore.kernel.org
 help / color / mirror / Atom feed
* Microphone gain on N900
@ 2017-02-26 20:28 ` Pavel Machek
  0 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-02-26 20:28 UTC (permalink / raw)
  To: pali.rohar, sre, kernel list, linux-arm-kernel, linux-omap, tony,
	khilman, aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

[-- Attachment #1: Type: text/plain, Size: 2480 bytes --]

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

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Microphone gain on N900
@ 2017-02-26 20:28 ` Pavel Machek
  0 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-02-26 20:28 UTC (permalink / raw)
  To: linux-arm-kernel

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

-- 
(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>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
  2017-02-26 20:28 ` Pavel Machek
  (?)
@ 2017-02-27 19:53   ` Pali Rohár
  -1 siblings, 0 replies; 15+ messages in thread
From: Pali Rohár @ 2017-02-27 19:53 UTC (permalink / raw)
  To: Pavel Machek, Jarkko Nikula, Peter Ujfalusi
  Cc: sre, kernel list, linux-arm-kernel, linux-omap, tony, khilman,
	aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

[-- Attachment #1: Type: Text/Plain, Size: 2850 bytes --]

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
> /devices/platform/n900-audio/sound/card0/input6

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

> 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.

> Any ideas welcome...
> 
> Best regards,
> 									Pavel

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
@ 2017-02-27 19:53   ` Pali Rohár
  0 siblings, 0 replies; 15+ messages in thread
From: Pali Rohár @ 2017-02-27 19:53 UTC (permalink / raw)
  To: Pavel Machek, Jarkko Nikula, Peter Ujfalusi
  Cc: ivo.g.dimitrov.75, khilman, tony, aaro.koskinen, sre,
	kernel list, abcloriens, linux-omap, patrikbachan,
	linux-arm-kernel, serge


[-- Attachment #1.1: Type: Text/Plain, Size: 2850 bytes --]

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
> /devices/platform/n900-audio/sound/card0/input6

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

> 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.

> Any ideas welcome...
> 
> Best regards,
> 									Pavel

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Microphone gain on N900
@ 2017-02-27 19:53   ` Pali Rohár
  0 siblings, 0 replies; 15+ messages in thread
From: Pali Rohár @ 2017-02-27 19:53 UTC (permalink / raw)
  To: linux-arm-kernel

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
> /devices/platform/n900-audio/sound/card0/input6

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

> 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.

> Any ideas welcome...
> 
> Best regards,
> 									Pavel

-- 
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>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
  2017-02-27 19:53   ` Pali Rohár
  (?)
@ 2017-02-28 18:45     ` Jarkko Nikula
  -1 siblings, 0 replies; 15+ messages in thread
From: Jarkko Nikula @ 2017-02-28 18:45 UTC (permalink / raw)
  To: Pali Rohár, Pavel Machek, Peter Ujfalusi
  Cc: sre, kernel list, linux-arm-kernel, linux-omap, tony, khilman,
	aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

On 02/27/17 21:53, Pali Rohár wrote:
> 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.
>>
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

-- 
Jarkko

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
@ 2017-02-28 18:45     ` Jarkko Nikula
  0 siblings, 0 replies; 15+ messages in thread
From: Jarkko Nikula @ 2017-02-28 18:45 UTC (permalink / raw)
  To: Pali Rohár, Pavel Machek, Peter Ujfalusi
  Cc: ivo.g.dimitrov.75, khilman, tony, aaro.koskinen, sre,
	kernel list, abcloriens, linux-omap, patrikbachan,
	linux-arm-kernel, serge

On 02/27/17 21:53, Pali Rohár wrote:
> 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.
>>
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

-- 
Jarkko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Microphone gain on N900
@ 2017-02-28 18:45     ` Jarkko Nikula
  0 siblings, 0 replies; 15+ messages in thread
From: Jarkko Nikula @ 2017-02-28 18:45 UTC (permalink / raw)
  To: linux-arm-kernel

On 02/27/17 21:53, Pali Roh?r wrote:
> 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.
>>
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

-- 
Jarkko

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
  2017-02-28 18:45     ` Jarkko Nikula
  (?)
@ 2017-03-02 14:28       ` Pavel Machek
  -1 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-03-02 14:28 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: Pali Rohár, Peter Ujfalusi, sre, kernel list,
	linux-arm-kernel, linux-omap, tony, khilman, aaro.koskinen,
	ivo.g.dimitrov.75, patrikbachan, serge, abcloriens

[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]

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.
> >>
> 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

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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
@ 2017-03-02 14:28       ` Pavel Machek
  0 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-03-02 14:28 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: ivo.g.dimitrov.75, khilman, tony, aaro.koskinen, kernel list,
	sre, abcloriens, Pali Rohár, linux-omap, patrikbachan,
	linux-arm-kernel, serge


[-- Attachment #1.1: Type: text/plain, Size: 1750 bytes --]

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.
> >>
> 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

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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Microphone gain on N900
@ 2017-03-02 14:28       ` Pavel Machek
  0 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-03-02 14:28 UTC (permalink / raw)
  To: linux-arm-kernel

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.
> >>
> 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

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
-- 
(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>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
  2017-03-02 14:28       ` Pavel Machek
@ 2017-03-04 16:01         ` Jarkko Nikula
  -1 siblings, 0 replies; 15+ messages in thread
From: Jarkko Nikula @ 2017-03-04 16:01 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Pali Rohár, Peter Ujfalusi, sre, kernel list,
	linux-arm-kernel, linux-omap, tony, khilman, aaro.koskinen,
	ivo.g.dimitrov.75, patrikbachan, serge, abcloriens

On 03/02/17 16:28, 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.
>>>>
>> 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
> 
> 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.

-- 
Jarkko

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Microphone gain on N900
@ 2017-03-04 16:01         ` Jarkko Nikula
  0 siblings, 0 replies; 15+ messages in thread
From: Jarkko Nikula @ 2017-03-04 16:01 UTC (permalink / raw)
  To: linux-arm-kernel

On 03/02/17 16:28, 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.
>>>>
>> 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
> 
> 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.

-- 
Jarkko

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Microphone gain on N900
  2017-03-04 16:01         ` Jarkko Nikula
@ 2017-04-17 20:34           ` Pavel Machek
  -1 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-04-17 20:34 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: Pali Rohár, Peter Ujfalusi, sre, kernel list,
	linux-arm-kernel, linux-omap, tony, khilman, aaro.koskinen,
	ivo.g.dimitrov.75, patrikbachan, serge, abcloriens

[-- Attachment #1: Type: text/plain, Size: 2299 bytes --]

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.
> >>>>
> >> 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
> > 
> > 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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Microphone gain on N900
@ 2017-04-17 20:34           ` Pavel Machek
  0 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2017-04-17 20:34 UTC (permalink / raw)
  To: linux-arm-kernel

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.
> >>>>
> >> 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
> > 
> > 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
-- 
(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>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-04-17 20:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-26 20:28 Microphone gain on N900 Pavel Machek
2017-02-26 20:28 ` Pavel Machek
2017-02-27 19:53 ` Pali Rohár
2017-02-27 19:53   ` Pali Rohár
2017-02-27 19:53   ` Pali Rohár
2017-02-28 18:45   ` Jarkko Nikula
2017-02-28 18:45     ` Jarkko Nikula
2017-02-28 18:45     ` Jarkko Nikula
2017-03-02 14:28     ` Pavel Machek
2017-03-02 14:28       ` Pavel Machek
2017-03-02 14:28       ` Pavel Machek
2017-03-04 16:01       ` Jarkko Nikula
2017-03-04 16:01         ` Jarkko Nikula
2017-04-17 20:34         ` Pavel Machek
2017-04-17 20:34           ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.