projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: hda - Fix widget sysfs tree corruption after refresh
[linux-2.6-microblaze.git]
/
sound
/
hda
/
hdac_sysfs.c
diff --git
a/sound/hda/hdac_sysfs.c
b/sound/hda/hdac_sysfs.c
index
089b35f
..
c71142d
100644
(file)
--- a/
sound/hda/hdac_sysfs.c
+++ b/
sound/hda/hdac_sysfs.c
@@
-390,6
+390,9
@@
int hda_widget_sysfs_init(struct hdac_device *codec)
{
int err;
+ if (codec->widgets)
+ return 0; /* already created */
+
err = widget_tree_create(codec);
if (err < 0) {
widget_tree_free(codec);