[ALSA] hda-codec - Make the mixer capability check more robust
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 May 2007 14:56:09 +0000 (16:56 +0200)
committerJaroslav Kysela <perex@suse.cz>
Wed, 16 May 2007 09:45:28 +0000 (11:45 +0200)
commitb75e53f09212f12369156710e84d1cbf115113cd
tree4649419d7fb59e5eb1dbb608bee2743a36761aa5
parentd417045e7deeb37d97793805fe302da7b4f82eec
[ALSA] hda-codec - Make the mixer capability check more robust

In some cases, mixer elements return -EINVAL because it couldn't
obtain proper amp_cap bits.  The patch improves the robustness,
trying the amp_cap query again in such a case.

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