Commit 49b9c40e authored by Raymond Yau's avatar Raymond Yau Committed by Takashi Iwai

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: default avatarRaymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7b32486c
...@@ -274,7 +274,8 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) ...@@ -274,7 +274,8 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
return err; return err;
} }
// ADB pcm. // 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); snd_card_free(card);
return err; return err;
} }
......
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
#define MIX_SPDIF(x) (vortex->mixspdif[x]) #define MIX_SPDIF(x) (vortex->mixspdif[x])
#define NR_WTPB 0x20 /* WT channels per each bank. */ #define NR_WTPB 0x20 /* WT channels per each bank. */
#define NR_PCM 0x10
/* Structs */ /* Structs */
typedef struct { typedef struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment