From: Takashi Iwai Date: Wed, 11 Feb 2009 23:13:19 +0000 (+0100) Subject: ALSA: hda - Register (new) devices at reconfig X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=26a74f1f61c5bba1c0b46e67e91e921e941f76d7;p=openwrt%2Fstaging%2Fblogic.git ALSA: hda - Register (new) devices at reconfig The devices that have been newly added during reconfig must be registered. Otherwise they won't be visible to user-space. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c index 300ab407cf42..482fb0304ca9 100644 --- a/sound/pci/hda/hda_hwdep.c +++ b/sound/pci/hda/hda_hwdep.c @@ -175,7 +175,7 @@ static int reconfig_codec(struct hda_codec *codec) err = snd_hda_codec_build_controls(codec); if (err < 0) return err; - return 0; + return snd_card_register(codec->bus->card); } /*