aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorWei Ni <wni@nvidia.com>2010-01-28 03:13:07 -0500
committerTakashi Iwai <tiwai@suse.de>2010-01-28 11:06:19 -0500
commit7b36ea967cc5b5088a57fe225f1f72a3c160058b (patch)
treeb0b30852b8485e337eddfad62d5f019d1cfd7dc3 /sound/pci
parentb09f3e78ee7bb69171411b75bd9e771fc7f24749 (diff)
ALSA: hda - Change the AZX_MAX_PCMS to 10
In hda_codec.c, it has define "[HDA_PCM_TYPE_HDMI] = { 3, 7, 8, 9, -1 },", it support up to device 9 for HDMI. But in hda_intel.c, it only define AZX_MAX_PCMS as 8. So if it have 4 hdmi codecs, when run azx_attach_pcm_stream(), it will show error "Invalid PCM device number 8", and "... number 9", and return "-EINVAL". We should change the AZX_MAX_PCMS to 10. Signed-off-by: Wei Ni <wni@nvidia.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 6eeefda63838..170126c28abd 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -261,7 +261,7 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, SDO2, SDO3 };
261/* max buffer size - no h/w limit, you can increase as you like */ 261/* max buffer size - no h/w limit, you can increase as you like */
262#define AZX_MAX_BUF_SIZE (1024*1024*1024) 262#define AZX_MAX_BUF_SIZE (1024*1024*1024)
263/* max number of PCM devics per card */ 263/* max number of PCM devics per card */
264#define AZX_MAX_PCMS 8 264#define AZX_MAX_PCMS 10
265 265
266/* RIRB int mask: overrun[2], response[0] */ 266/* RIRB int mask: overrun[2], response[0] */
267#define RIRB_INT_RESPONSE 0x01 267#define RIRB_INT_RESPONSE 0x01