From: Takashi Iwai Date: Thu, 7 Jul 2011 15:05:48 +0000 (+0200) Subject: ALSA: hda - Use common paser for digital I/O for ALC260 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e4a73ae5893d61ae10a9f219e2f3371e44589a8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA: hda - Use common paser for digital I/O for ALC260 Avoid open-codes. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 42026f4978c3..8366e02df3cc 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7200,8 +7200,8 @@ static int alc260_parse_auto_config(struct hda_codec *codec) spec->multiout.max_channels = 2; - if (spec->autocfg.dig_outs) - spec->multiout.dig_out_nid = ALC260_DIGOUT_NID; + alc_auto_parse_digital(codec); + if (spec->kctls.list) add_mixer(spec, spec->kctls.list);