mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 07:02:23 +00:00
ALSA: hda - Fix wrong ALC269 variant check
The refactoring commit d433a67831
ALSA: hda - Optimize the check of ALC269 codec variants
introduced a wrong check for ALC269-vb type. This patch corrects it.
Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6027277e77
commit
1657cbd871
@ -15104,7 +15104,7 @@ static int patch_alc269(struct hda_codec *codec)
|
|||||||
spec->stream_digital_capture = &alc269_pcm_digital_capture;
|
spec->stream_digital_capture = &alc269_pcm_digital_capture;
|
||||||
|
|
||||||
if (!spec->adc_nids) { /* wasn't filled automatically? use default */
|
if (!spec->adc_nids) { /* wasn't filled automatically? use default */
|
||||||
if (spec->codec_variant != ALC269_TYPE_NORMAL) {
|
if (spec->codec_variant == ALC269_TYPE_NORMAL) {
|
||||||
spec->adc_nids = alc269_adc_nids;
|
spec->adc_nids = alc269_adc_nids;
|
||||||
spec->num_adc_nids = ARRAY_SIZE(alc269_adc_nids);
|
spec->num_adc_nids = ARRAY_SIZE(alc269_adc_nids);
|
||||||
spec->capsrc_nids = alc269_capsrc_nids;
|
spec->capsrc_nids = alc269_capsrc_nids;
|
||||||
|
Loading…
Reference in New Issue
Block a user