]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Refresh sysfs at snd_hda_codec_update_widgets()
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2015 06:52:55 +0000 (08:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2015 06:52:55 +0000 (08:52 +0200)
commita063357386c64296368c7f53d66f6e80d6d846e0
treed168d6f6ddb6a21326cd7653201e3b243d39175e
parentc2d0fcf06127bc4b1d2d6da4efcc65e2d1375068
ALSA: hda - Refresh sysfs at snd_hda_codec_update_widgets()

In the commit [57d04106efb4: ALSA: hda - Refresh widgets sysfs at
probing Haswell+ HDMI codecs], snd_hdac_refresh_widget_sysfs() is
explicitly called in the codec driver.  But this results in refreshing
twice, as snd_hdac_refresh_widget_sysfs() itself calls
snd_hdac_refresh_widgets() function.

Instead, we can replace the call in snd_hda_codec_update_widgets()
with snd_hdac_refresh_widget_sysfs().  This also fixes the missing
sysfs update for ca0132, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/patch_hdmi.c