[alsa-devel] [PATCH] ALSA: HDA: Fix jack creation for codecs with front and rear Line In

Raymond Yau superquad.vortex2 at gmail.com
Tue Jan 31 12:52:32 CET 2012


2012/1/31, David Henningsson <david.henningsson at canonical.com>:
> On 01/31/2012 09:29 AM, Raymond Yau wrote:
>> 2012/1/31, David Henningsson<david.henningsson at canonical.com>:
>>> If a codec has both a front and a rear Line In, two controls both
>>> named "Line Jack" will be created, which causes parsing to fail.
>>> While a long term solution might be to name the jacks differently,
>>> this extra check is consistent with what is already being done in many
>>> auto-parsers, and will also protect against other cases when two
>>> inputs have the same label.
>>>
>>> BugLink: https://bugs.launchpad.net/bugs/923409
>>> Signed-off-by: David Henningsson<david.henningsson at canonical.com>
>>> ---
>>
>> I have doubt since most of ad1988 6stack-dig quirks have two Line In (
>> one is ext front and the other is int ATAPI and the "Input Source"
>> controls are broken
>
> Well, it won't fix any "Input Source" controls, of course. Only jack
> creation later, assuming you have your autocfg struct set up correctly.
>

There is another bug in snd_hda_parse_def_pincfg() when bios assigned
two Line Out at ext front and rear 0x14 and 0x1b

autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
   speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
   hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
   mono: mono_out=0x0
   dig-out=0x1e/0x0
   inputs: Rear Mic=0x18 Front Mic=0x19 Line=0x1a


https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5518


More information about the Alsa-devel mailing list