Skip to content

Commit 526af6e

Browse files
KailangYangtiwai
authored andcommitted
ALSA: hda/realtek - Apply the coef-setup only to ALC269VB
The coef setup in alc269_fill_coef() was designed only for ALC269VB model, and this has some bad effects for other ALC269 variants, such as turning off the external mic input. Apply it only to ALC269VB. Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 8f23921 commit 526af6e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,12 +2068,16 @@ static int alc_build_controls(struct hda_codec *codec)
20682068
*/
20692069

20702070
static void alc_init_special_input_src(struct hda_codec *codec);
2071+
static int alc269_fill_coef(struct hda_codec *codec);
20712072

20722073
static int alc_init(struct hda_codec *codec)
20732074
{
20742075
struct alc_spec *spec = codec->spec;
20752076
unsigned int i;
20762077

2078+
if (codec->vendor_id == 0x10ec0269)
2079+
alc269_fill_coef(codec);
2080+
20772081
alc_fix_pll(codec);
20782082
alc_auto_init_amp(codec, spec->init_amp);
20792083

@@ -5476,8 +5480,12 @@ static const struct alc_model_fixup alc269_fixup_models[] = {
54765480

54775481
static int alc269_fill_coef(struct hda_codec *codec)
54785482
{
5483+
struct alc_spec *spec = codec->spec;
54795484
int val;
54805485

5486+
if (spec->codec_variant != ALC269_TYPE_ALC269VB)
5487+
return 0;
5488+
54815489
if ((alc_get_coef0(codec) & 0x00ff) < 0x015) {
54825490
alc_write_coef_idx(codec, 0xf, 0x960b);
54835491
alc_write_coef_idx(codec, 0xe, 0x8817);

0 commit comments

Comments
 (0)