[PATCH 2/4] ASoC: hdac_hdmi: Refresh sysfs during hdmi device probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Puneeth Prabhu <puneethx.prabhu@xxxxxxxxx>

All nodes of hdmi codec widgets are not visible in sysfs interface
(/sys/bus/hdaudio/devices/ehdaudio0D2/widgets) as the vendor
widget is not programmed to enable all the converters and pins.
So, refresh the sysfs widget interface after enabling all pins
and converters during probe.

Signed-off-by: Puneeth Prabhu <puneethx.prabhu@xxxxxxxxx>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@xxxxxxxxx>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@xxxxxxxxx>
---
 sound/soc/codecs/hdac_hdmi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index f3b4f4dfae6a..7e689cbc75ae 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -2046,6 +2046,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_widget_sysfs(codec);
 
 	/* ASoC specific initialization */
 	ret = snd_soc_register_codec(&codec->dev, &hdmi_hda_codec,
-- 
2.15.0

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux