• Takashi Iwai's avatar
    ALSA: hda - Refresh sysfs at snd_hda_codec_update_widgets() · 9dcc144b
    Takashi Iwai authored
    In the commit [fa4f18b4: 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: default avatarTakashi Iwai <tiwai@suse.de>
    9dcc144b
hda_codec.c 111 KB