ALSA: hda - Refresh widgets sysfs at probing Haswell+ HDMI codecs
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Aug 2015 13:05:20 +0000 (15:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Aug 2015 13:11:52 +0000 (15:11 +0200)
Intel Haswell (and later) codec refreshes the widgets tree to expose
the whole widget nodes at probing.  However, this refresh was missing
for sysfs tree.

This patch adds the missing piece, as we have now a proper API.

Reported-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c

index a97db5fc8a151aa43c0c99edc6ccf7efc0eaa52a..df982fc6a872e67e3ad107d0474ca11bc407c10f 100644 (file)
@@ -2331,6 +2331,7 @@ static int patch_generic_hdmi(struct hda_codec *codec)
        if (is_haswell_plus(codec)) {
                intel_haswell_enable_all_pins(codec, true);
                intel_haswell_fixup_enable_dp12(codec);
+               snd_hdac_refresh_widget_sysfs(&codec->core);
        }
 
        /* For Valleyview/Cherryview, only the display codec is in the display