ALSA: hda - Use common paser for digital I/O for ALC260
Avoid open-codes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 42026f4..8366e02 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -7200,8 +7200,8 @@
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);