Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1560596 > unrolled thread

Re: Nokia N900: mixers changed between 4.9 and 4.10-rc3, no longer can use in-call speaker

Started byPeter Ujfalusi <peter.ujfalusi@ti.com>
First post2017-01-17 15:00 +0100
Last post2017-01-20 14:50 +0100
Articles 7 — 4 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Nokia N900: mixers changed between 4.9 and 4.10-rc3, no longer  can use in-call speaker Peter Ujfalusi <peter.ujfalusi@ti.com> - 2017-01-17 15:00 +0100
    Re: Nokia N900: mixers changed between 4.9 and 4.10-rc3, no longer  can use in-call speaker Jarkko Nikula <jarkko.nikula@bitmer.com> - 2017-01-19 20:40 +0100
      Re: Nokia N900: microphone mixers Pali Rohár <pali.rohar@gmail.com> - 2017-01-20 14:40 +0100
        Re: Nokia N900: microphone mixers Pavel Machek <pavel@ucw.cz> - 2017-01-20 15:10 +0100
          Re: Nokia N900: microphone mixers Pali Rohár <pali.rohar@gmail.com> - 2017-01-20 15:20 +0100
            Re: Nokia N900: microphone mixers Pavel Machek <pavel@ucw.cz> - 2017-01-20 20:40 +0100
      Nokia N900: microphone mixers Pavel Machek <pavel@ucw.cz> - 2017-01-20 14:50 +0100

#1560596 — Re: Nokia N900: mixers changed between 4.9 and 4.10-rc3, no longer can use in-call speaker

FromPeter Ujfalusi <peter.ujfalusi@ti.com>
Date2017-01-17 15:00 +0100
SubjectRe: Nokia N900: mixers changed between 4.9 and 4.10-rc3, no longer can use in-call speaker
Message-ID<t0CsN-7MA-7@gated-at.bofh.it>
On 01/15/2017 09:08 PM, Jarkko Nikula wrote:
> On 01/15/2017 12:05 PM, Pavel Machek wrote:
>>>> So regression seems to be between v4.9 and v4.10. Any ideas?
>>>
>>> Interesting... seems there are no sound relevant changes after v4.9.
>>>
>>> Looks like there are only three commits after v4.9 for sound/soc which 
>>> are built for Nokia N900:
>>>
>>> e411b0b5eb9b65257a050eac333d181d6e00e2c6
>>> e7aa450fe17890e59db7d3c2d8eff5b6b41fc531
>>> 63c3194b82530bd71fd49db84eb7ab656b8d404a
>>>
>>> Maybe something not related to sound/soc could broke it?
>>
>> Lets see.
>>
>> a9042defa29a01cc538b742eab047848e9b5ae14 -- works ok.
>> ce38207f161513ee3d2bd3860489f07ebe65bc78 --
>>
>> alsactl: set_control:1328: failed to obtain info for control #229 (No
>> such file or directory)
>>
> I'm unable to test older kernels at the moment since modules don't load
> by some reason (bluetooth: Unknown symbol _GLOBAL_OFFSET_TABLE_ (err
> 0)). Probably some recent regression in my debian/testing installation
> since the same configs were working before.
> 
> However v4.9.4 works and with it I can see there is an issue with these
> aic3x controls:
> 
> amixer: Unable to find simple control 'Left DAC_L1 Mixer Line',0
> 
> 
> 
> amixer: Unable to find simple control 'Right DAC_R1 Mixer Line',0

These are certainly not the regression between 4.6 and 4.9, more like
more like regression since 2.6:
'Line Switch' -> 'LineL Switch':
54f01916297bafc18bd7df4e2300a0544a84fce3

'LineL Switch' -> 'DACL1 Switch':
c3b79e05b4d9ab2e7c3ba281261ea87ab5b71a92

> At quick look I don't see why above commits could cause it. Maybe
> regression happened earlier between v4.6 and v4.9?

It might be that there were some work to fix control names for different aic
versions to match with the HW or support for new codec is added and some
control gone missing for 3x?

I would compare the 'amixer controls' for the working and regressed
kernel to see what differs. From there git blame or smthing will for
sure point to the correct commit.

-- 
Péter

[toc] | [next] | [standalone]


#1563040

FromJarkko Nikula <jarkko.nikula@bitmer.com>
Date2017-01-19 20:40 +0100
Message-ID<t1qIX-5ER-33@gated-at.bofh.it>
In reply to#1560596
On 01/17/2017 03:47 PM, Peter Ujfalusi wrote:
> On 01/15/2017 09:08 PM, Jarkko Nikula wrote:
>> However v4.9.4 works and with it I can see there is an issue with these
>> aic3x controls:
>>
>> amixer: Unable to find simple control 'Left DAC_L1 Mixer Line',0
>>
>>
>>
>> amixer: Unable to find simple control 'Right DAC_R1 Mixer Line',0
> 
> These are certainly not the regression between 4.6 and 4.9, more like
> more like regression since 2.6:
> 'Line Switch' -> 'LineL Switch':
> 54f01916297bafc18bd7df4e2300a0544a84fce3
> 
> 'LineL Switch' -> 'DACL1 Switch':
> c3b79e05b4d9ab2e7c3ba281261ea87ab5b71a92
> 
You are right. Those mixer scripts were for Maemo 2.6.28 kernel and
dated 2009... grr, looks like I've overwritten my N900 mixer scripts at
some point.

Fortunately the issue seems to be fixed in v4.10-rc4.

-- 
Jarkko

[toc] | [prev] | [next] | [standalone]


#1563583 — Re: Nokia N900: microphone mixers

FromPali Rohár <pali.rohar@gmail.com>
Date2017-01-20 14:40 +0100
SubjectRe: Nokia N900: microphone mixers
Message-ID<t1HA6-7Ps-21@gated-at.bofh.it>
In reply to#1563040
On Friday 20 January 2017 14:31:59 Pavel Machek wrote:
> Hi!
> 
> Do you have any idea how to control the microphone? I'd like the audio
> source to be microphone on headset (not the built in one). So I run
> alsamixer, set everything in "capture" section to zero... and I still
> get the audio from the internal microphone :-(.
> 
> Tested with arecord | aplay.
> 
> Any ideas?

Hi! Try to set Jack Function to Headset or enable b HS Mic.

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

[toc] | [prev] | [next] | [standalone]


#1563613 — Re: Nokia N900: microphone mixers

FromPavel Machek <pavel@ucw.cz>
Date2017-01-20 15:10 +0100
SubjectRe: Nokia N900: microphone mixers
Message-ID<t1I37-8fg-11@gated-at.bofh.it>
In reply to#1563583

[Multipart message — attachments visible in raw view] — view raw

On Fri 2017-01-20 14:38:30, Pali Rohár wrote:
> On Friday 20 January 2017 14:31:59 Pavel Machek wrote:
> > Hi!
> > 
> > Do you have any idea how to control the microphone? I'd like the audio
> > source to be microphone on headset (not the built in one). So I run
> > alsamixer, set everything in "capture" section to zero... and I still
> > get the audio from the internal microphone :-(.
> > 
> > Tested with arecord | aplay.
> > 
> > Any ideas?
> 
> Hi! Try to set Jack Function to Headset or enable b HS Mic.

I can't find "b HS Mic" function. I can set "Input Select" to "ADC",
and ten internal microphone is off, but I can't get any audio on
input. I tried with "Jack function" both "headset" and "headphone".

Do I need to enable microphone bias voltage somewhere?

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

[toc] | [prev] | [next] | [standalone]


#1563625 — Re: Nokia N900: microphone mixers

FromPali Rohár <pali.rohar@gmail.com>
Date2017-01-20 15:20 +0100
SubjectRe: Nokia N900: microphone mixers
Message-ID<t1IcN-8iP-3@gated-at.bofh.it>
In reply to#1563613
On Friday 20 January 2017 15:00:47 Pavel Machek wrote:
> On Fri 2017-01-20 14:38:30, Pali Rohár wrote:
> > On Friday 20 January 2017 14:31:59 Pavel Machek wrote:
> > > Hi!
> > > 
> > > Do you have any idea how to control the microphone? I'd like the audio
> > > source to be microphone on headset (not the built in one). So I run
> > > alsamixer, set everything in "capture" section to zero... and I still
> > > get the audio from the internal microphone :-(.
> > > 
> > > Tested with arecord | aplay.
> > > 
> > > Any ideas?
> > 
> > Hi! Try to set Jack Function to Headset or enable b HS Mic.
> 
> I can't find "b HS Mic" function. I can set "Input Select" to "ADC",
> and ten internal microphone is off, but I can't get any audio on
> input. I tried with "Jack function" both "headset" and "headphone".
> 
> Do I need to enable microphone bias voltage somewhere?

When you set Jack function to headset it automatically enable HS Mic
control which controls mic bias.

If Jack function in headset mode does not work, then there is bug. Try
older versions of kernel...

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

[toc] | [prev] | [next] | [standalone]


#1563881 — Re: Nokia N900: microphone mixers

FromPavel Machek <pavel@ucw.cz>
Date2017-01-20 20:40 +0100
SubjectRe: Nokia N900: microphone mixers
Message-ID<t1Ncu-2V1-13@gated-at.bofh.it>
In reply to#1563625

[Multipart message — attachments visible in raw view] — view raw

On Fri 2017-01-20 15:04:04, Pali Rohár wrote:
> On Friday 20 January 2017 15:00:47 Pavel Machek wrote:
> > On Fri 2017-01-20 14:38:30, Pali Rohár wrote:
> > > On Friday 20 January 2017 14:31:59 Pavel Machek wrote:
> > > > Hi!
> > > > 
> > > > Do you have any idea how to control the microphone? I'd like the audio
> > > > source to be microphone on headset (not the built in one). So I run
> > > > alsamixer, set everything in "capture" section to zero... and I still
> > > > get the audio from the internal microphone :-(.
> > > > 
> > > > Tested with arecord | aplay.
> > > > 
> > > > Any ideas?
> > > 
> > > Hi! Try to set Jack Function to Headset or enable b HS Mic.
> > 
> > I can't find "b HS Mic" function. I can set "Input Select" to "ADC",
> > and ten internal microphone is off, but I can't get any audio on
> > input. I tried with "Jack function" both "headset" and "headphone".
> > 
> > Do I need to enable microphone bias voltage somewhere?
> 
> When you set Jack function to headset it automatically enable HS Mic
> control which controls mic bias.
> 
> If Jack function in headset mode does not work, then there is bug. Try
> older versions of kernel...

Would you know which mainline kernel version is "known good"?

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

[toc] | [prev] | [next] | [standalone]


#1563594 — Nokia N900: microphone mixers

FromPavel Machek <pavel@ucw.cz>
Date2017-01-20 14:50 +0100
SubjectNokia N900: microphone mixers
Message-ID<t1HA6-7Ps-23@gated-at.bofh.it>
In reply to#1563040

[Multipart message — attachments visible in raw view] — view raw

Hi!

Do you have any idea how to control the microphone? I'd like the audio
source to be microphone on headset (not the built in one). So I run
alsamixer, set everything in "capture" section to zero... and I still
get the audio from the internal microphone :-(.

Tested with arecord | aplay.

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web