From: Puneeth Prabhu Date: Wed, 6 Dec 2017 11:04:05 +0000 (+0530) Subject: ASoC: hdac_hdmi: Refresh sysfs during hdmi device probe X-Git-Tag: v5.15~9442^2~2^5~6^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fb02ba36d01a04dab03c0a424607844ef4dadbf;p=platform%2Fkernel%2Flinux-starfive.git ASoC: hdac_hdmi: Refresh sysfs during hdmi device probe All nodes of hdmi codec widgets are not updated in sysfs interface (/sys/bus/hdaudio/devices//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 Signed-off-by: Subhransu S. Prusty Signed-off-by: Guneshwor Singh Acked-By: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index 3a35ede..b706547 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -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,