Any missing patches?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi guys
Quoted 3 lines
this patch cleans up the mixer interface by removing unpractical/non-working features. Applies for ALC260 "acer" model in hda-intel module. It also adds/changes a few comments in the source.
I have a few comments regarding this patch.
Review
Quoted 4 lines
(quoted diff) +3
-0+ /* Line jack doesn't actually preamplify the mic even if set to one of the + * Mic modes. However, it doesn't seem like these can be disabled ATM. + */ ALC_PIN_MODE("Line Jack Mode", 0x14, ALC_PIN_DIR_INOUT),
This comment is actually slightly misleading - see my posts earlier today. It's not that this jack "doesn't actually preamplify the mic". At this stage, on the strength of a sample of one, it appears that at least some of the Acer laptops have a DC blocking capacitor between the ALC260 chip and the physical output jack. This blocks the DC bias supplied by the ALC260 but it doesn't stop "preamplification" - it simply stops unpowered condensor microphones from working. If a self-powered mic was plugged in you'll find that it will work with either setting.
It is true that ALC_PIN_MODE() can't disable the mic modes and leave the "line in" mode active at present. I might do a patch at some stage to add this flexibility. However, I would probably argue at this stage that it might not be desireable to omit the mic modes from this pin in the acer model, since the issue might simply go away with later/other acer models. We would then need to define a new Acer model just to cope with this tiny variation.
Review
Quoted 3 lines
(quoted diff) +1
-1- /* Internal speaker/Headphone jack is connected to Line-out pin */ + /* Internal speaker and Headphone jack are connected to line-out pin */= {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
Just a comment: this confirms that NID 0x0f is used for the headphone jack. This explains why the mic controls automagically revert to "line in" mode for this jack. See my earlier post for the explanation.
Review
Quoted 11 lines
(quoted diff) +3
-2- /* Set ADC connection select to match default mixer setting - mic + /* Set ADC connection select to match default mixer setting - Mic * (on mic1 pin) */ {0x04, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Do similar with the second ADC: mute capture input amp and - * set ADC connection to line (on line1 pin) + * set ADC connection to Line (on line1 pin) + * FIXME: the connection is still set to Mic for some reason */
The point isn't that the init verbs don't work - it's that elsewhere during device initialisation the capture sources are set to the first one in the source list (or so it seems). This is why the "to match default mixer setting" comment is there. I haven't had time to track this down and I really didn't think it was important enough at this stage to worry about. I think it is perfectly acceptable to have all inputs default to "mic" and let the user work out what they want. Most distros configure things so the alsa mixer is restored to its last state during a boot, so I don't think it's that big a deal.
Regards
jonathan
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
At Wed, 22 Mar 2006 13:07:33 +1030 (CST),
Quoted 7 lines · Jonathan Woithe
Quoted 7 lines
(quoted diff) +1
-1- /* Set ADC connection select to match default mixer setting - mic + /* Set ADC connection select to match default mixer setting - Mic * (on mic1 pin) */ {0x04, AC_VERB_SET_CONNECT_SEL, 0x00},
Quoted 9 lines
Review
Quoted 5 lines
(quoted diff) +2
-1/* Do similar with the second ADC: mute capture input amp and - * set ADC connection to line (on line1 pin) + * set ADC connection to Line (on line1 pin) + * FIXME: the connection is still set to Mic for some reason */The point isn't that the init verbs don't work - it's that elsewhere during device initialisation the capture sources are set to the first one in the source list (or so it seems).
The mixer reads/modifies the values spec->cur_mux[idx] as caches. The initial values are 0 = Mic.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
(quoted diff) +1
-1- /* Set ADC connection select to match default mixer setting - mic + /* Set ADC connection select to match default mixer setting - Mic * (on mic1 pin) */ {0x04, AC_VERB_SET_CONNECT_SEL, 0x00},Quoted 9 lines
Review
Quoted 5 lines
(quoted diff) +2
-1/* Do similar with the second ADC: mute capture input amp and - * set ADC connection to line (on line1 pin) + * set ADC connection to Line (on line1 pin) + * FIXME: the connection is still set to Mic for some reason */The point isn't that the init verbs don't work - it's that elsewhere during device initialisation the capture sources are set to the first one in the source list (or so it seems).
Quoted 2 lines
The mixer reads/modifies the values spec->cur_mux[idx] as caches. The initial values are 0 = Mic.
Yep, I figured it was something like that - no surprises there. IMHO the current state should probably remain as is - that is, default to mic for all ADCs since not every laptop with an ALC260 has a "line" jack they can use for input. That would then require the above patch to be tweaked so the second ADC is initialised to use the mic channel (if only for internal consistency).
Regards
jonathan
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642