Skip to content

Commit

Permalink
ALSA: Au88x0 - Reduce the number of playback subdevices of au8830 fro…
Browse files Browse the repository at this point in the history
…m 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>
  • Loading branch information
Raymond Yau authored and Takashi Iwai committed Jan 16, 2012
1 parent 7b32486 commit 49b9c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/au88x0/au88x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions sound/pci/au88x0/au88x0.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
#define MIX_SPDIF(x) (vortex->mixspdif[x])

#define NR_WTPB 0x20 /* WT channels per each bank. */
#define NR_PCM 0x10

/* Structs */
typedef struct {
Expand Down

0 comments on commit 49b9c40

Please sign in to comment.