Skip to content

Commit eefb8be

Browse files
committed
ALSA: hda - Remove analog mic pin override from STAC9228 dell-bios quirk
The current fixup for dell-bios model with STAC9228 codec contains the override of pin 0x0c for analog mic. But this is actually just adding a bogus pin and confuses the parser. Better to remove it for the auto-mic switching. Meanwhile, for a possible regression, keep the old configuration as model=dell-bios-amic, so that people can test it again quickly. Tested on Dell 1420n laptop. Reported-and-tested-by: Eric Shattow <lucent@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 7d4f606 commit eefb8be

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎Documentation/sound/alsa/HD-Audio-Models.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ STAC9227/9228/9229/927x
244244
5stack-no-fp D965 5stack without front panel
245245
dell-3stack Dell Dimension E520
246246
dell-bios Fixes with Dell BIOS setup
247+
dell-bios-amic Fixes with Dell BIOS setup including analog mic
247248
volknob Fixes with volume-knob widget 0x24
248249
auto BIOS setup (default)
249250

‎sound/pci/hda/patch_sigmatel.c‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ enum {
158158
STAC_D965_VERBS,
159159
STAC_DELL_3ST,
160160
STAC_DELL_BIOS,
161+
STAC_DELL_BIOS_AMIC,
161162
STAC_DELL_BIOS_SPDIF,
162163
STAC_927X_DELL_DMIC,
163164
STAC_927X_VOLKNOB,
@@ -3228,8 +3229,6 @@ static const struct hda_fixup stac927x_fixups[] = {
32283229
[STAC_DELL_BIOS] = {
32293230
.type = HDA_FIXUP_PINS,
32303231
.v.pins = (const struct hda_pintbl[]) {
3231-
/* configure the analog microphone on some laptops */
3232-
{ 0x0c, 0x90a79130 },
32333232
/* correct the front output jack as a hp out */
32343233
{ 0x0f, 0x0227011f },
32353234
/* correct the front input jack as a mic */
@@ -3239,6 +3238,16 @@ static const struct hda_fixup stac927x_fixups[] = {
32393238
.chained = true,
32403239
.chain_id = STAC_927X_DELL_DMIC,
32413240
},
3241+
[STAC_DELL_BIOS_AMIC] = {
3242+
.type = HDA_FIXUP_PINS,
3243+
.v.pins = (const struct hda_pintbl[]) {
3244+
/* configure the analog microphone on some laptops */
3245+
{ 0x0c, 0x90a79130 },
3246+
{}
3247+
},
3248+
.chained = true,
3249+
.chain_id = STAC_DELL_BIOS,
3250+
},
32423251
[STAC_DELL_BIOS_SPDIF] = {
32433252
.type = HDA_FIXUP_PINS,
32443253
.v.pins = (const struct hda_pintbl[]) {
@@ -3267,6 +3276,7 @@ static const struct hda_model_fixup stac927x_models[] = {
32673276
{ .id = STAC_D965_5ST_NO_FP, .name = "5stack-no-fp" },
32683277
{ .id = STAC_DELL_3ST, .name = "dell-3stack" },
32693278
{ .id = STAC_DELL_BIOS, .name = "dell-bios" },
3279+
{ .id = STAC_DELL_BIOS_AMIC, .name = "dell-bios-amic" },
32703280
{ .id = STAC_927X_VOLKNOB, .name = "volknob" },
32713281
{}
32723282
};

0 commit comments

Comments
 (0)