ASoC: hdac_hdmi: Refresh sysfs during hdmi device probe
authorPuneeth Prabhu <puneethx.prabhu@intel.com>
Wed, 6 Dec 2017 11:04:05 +0000 (16:34 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 6 Dec 2017 17:47:10 +0000 (17:47 +0000)
All nodes of hdmi codec widgets are not updated in sysfs interface
(/sys/bus/hdaudio/devices/<dev>/widgets/) as the vendor widget is not
programmed to enable all the converters and pins during init. So,
refresh the sysfs widget interface after enabling all pins and
converters.

Signed-off-by: Puneeth Prabhu <puneethx.prabhu@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c

index 3a35ede..b706547 100644 (file)
@@ -2042,6 +2042,7 @@ static int hdac_hdmi_dev_probe(struct hdac_ext_device *edev)
                        "Failed in parse and map nid with err: %d\n", ret);
                return ret;
        }
+       snd_hdac_refresh_widgets(hdev, true);
 
        /* ASoC specific initialization */
        ret = snd_soc_register_codec(&hdev->dev, &hdmi_hda_codec,