[alsa-devel] [PATCH]Change the AZX_MAX_PCMS to 10

Wei Ni wni at nvidia.com
Thu Jan 28 09:32:44 CET 2010

Hi, Takashi
When I develop hdmi audio driver on the GT21x, I found a bug in the had_intel.c
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 the GT21x 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.

I attach the patch file, please check it.


This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-the-AZX_MAX_PCMS-to-10.patch
Type: application/octet-stream
Size: 1213 bytes
Desc: 0001-Change-the-AZX_MAX_PCMS-to-10.patch
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20100128/a3c697bd/attachment.dll 

More information about the Alsa-devel mailing list