summaryrefslogtreecommitdiffstats
path: root/sound/pci/pcxhr/pcxhr_hwdep.c
diff options
context:
space:
mode:
authorMarkus Bollinger <bollinger@digigram.com>2012-08-24 14:54:57 +0200
committerTakashi Iwai <tiwai@suse.de>2012-08-27 16:10:29 +0200
commit8c3f1b1cbc32d1fa899e3bd9edf427f0f2e7a843 (patch)
tree0a2b5c00ec8165bf50a19c7c1e4112a0529a93d5 /sound/pci/pcxhr/pcxhr_hwdep.c
parent56244d0868f48f233d1735541e7da3fd33434b3d (diff)
downloadlinux-8c3f1b1cbc32d1fa899e3bd9edf427f0f2e7a843.tar.gz
linux-8c3f1b1cbc32d1fa899e3bd9edf427f0f2e7a843.tar.bz2
linux-8c3f1b1cbc32d1fa899e3bd9edf427f0f2e7a843.zip
ALSA: pcxhr: Add 8 new sound cards
add new sound cards VX442HR VX442e PCX442HR PCX442e VX822HR VX822e PCX822HR and PCX822e Signed-off-by: Markus Bollinger <bollinger@digigram.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/pcxhr/pcxhr_hwdep.c')
-rw-r--r--sound/pci/pcxhr/pcxhr_hwdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/pcxhr/pcxhr_hwdep.c b/sound/pci/pcxhr/pcxhr_hwdep.c
index ec1587cddb0c..bf207e317f71 100644
--- a/sound/pci/pcxhr/pcxhr_hwdep.c
+++ b/sound/pci/pcxhr/pcxhr_hwdep.c
@@ -66,10 +66,10 @@ static int pcxhr_init_board(struct pcxhr_mgr *mgr)
err = pcxhr_send_msg(mgr, &rmh);
if (err)
return err;
- /* test 8 or 12 phys out */
- if ((rmh.stat[0] & MASK_FIRST_FIELD) != mgr->playback_chips * 2)
+ /* test 4, 8 or 12 phys out */
+ if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2)
return -EINVAL;
- /* test 8 or 2 phys in */
+ /* test 4, 8 or 2 phys in */
if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) <
mgr->capture_chips * 2)
return -EINVAL;