Skip to content

Commit a86b1a2

Browse files
committed
ALSA: hda/cirrus - Fix the digital beep registration
The argument passed to snd_hda_attach_beep_device() is a widget NID while spec->beep_amp holds the composed value for amp controls. Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 31b6945 commit a86b1a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎sound/pci/hda/patch_conexant.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ static int patch_cxt5045(struct hda_codec *codec)
11421142
}
11431143

11441144
if (spec->beep_amp)
1145-
snd_hda_attach_beep_device(codec, spec->beep_amp);
1145+
snd_hda_attach_beep_device(codec, get_amp_nid_(spec->beep_amp));
11461146

11471147
return 0;
11481148
}
@@ -1921,7 +1921,7 @@ static int patch_cxt5051(struct hda_codec *codec)
19211921
}
19221922

19231923
if (spec->beep_amp)
1924-
snd_hda_attach_beep_device(codec, spec->beep_amp);
1924+
snd_hda_attach_beep_device(codec, get_amp_nid_(spec->beep_amp));
19251925

19261926
return 0;
19271927
}
@@ -3099,7 +3099,7 @@ static int patch_cxt5066(struct hda_codec *codec)
30993099
}
31003100

31013101
if (spec->beep_amp)
3102-
snd_hda_attach_beep_device(codec, spec->beep_amp);
3102+
snd_hda_attach_beep_device(codec, get_amp_nid_(spec->beep_amp));
31033103

31043104
return 0;
31053105
}
@@ -3397,7 +3397,7 @@ static int patch_conexant_auto(struct hda_codec *codec)
33973397

33983398
codec->patch_ops = cx_auto_patch_ops;
33993399
if (spec->beep_amp)
3400-
snd_hda_attach_beep_device(codec, spec->beep_amp);
3400+
snd_hda_attach_beep_device(codec, get_amp_nid_(spec->beep_amp));
34013401

34023402
/* Some laptops with Conexant chips show stalls in S3 resume,
34033403
* which falls into the single-cmd mode.

0 commit comments

Comments
 (0)