summaryrefslogtreecommitdiffstats
path: root/sound/pci/au88x0/au88x0.c
diff options
context:
space:
mode:
authorRaymond Yau <superquad.vortex2@gmail.com>2012-01-13 10:35:01 +0800
committerTakashi Iwai <tiwai@suse.de>2012-01-16 12:16:42 +0100
commit49b9c40e9b5e47ef64f8601b84981fa45c3c4f86 (patch)
tree963fc2585b16cdf8bd83e9fc9403354afa4b4385 /sound/pci/au88x0/au88x0.c
parent7b32486ca449a20d64fa381262cc5e56893f0ac1 (diff)
downloadop-kernel-dev-49b9c40e9b5e47ef64f8601b84981fa45c3c4f86.zip
op-kernel-dev-49b9c40e9b5e47ef64f8601b84981fa45c3c4f86.tar.gz
ALSA: Au88x0 - Reduce the number of playback subdevices of au8830 from 32 to 16
- The maximum number of playback streams depend on the number of sample rate conveters (16) and the number of DMA channels (32). Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/au88x0/au88x0.c')
-rw-r--r--sound/pci/au88x0/au88x0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c
index b8bc115..f13ad53 100644
--- a/sound/pci/au88x0/au88x0.c
+++ b/sound/pci/au88x0/au88x0.c
@@ -274,7 +274,8 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
return err;
}
// ADB pcm.
- if ((err = snd_vortex_new_pcm(chip, VORTEX_PCM_ADB, NR_ADB)) < 0) {
+ err = snd_vortex_new_pcm(chip, VORTEX_PCM_ADB, NR_PCM);
+ if (err < 0) {
snd_card_free(card);
return err;
}
OpenPOWER on IntegriCloud