* Re: [alsa-devel] [PATCH]Change the AZX_MAX_PCMS to 10
[not found] <6B4D417B830BC44B8026029FD256F7F1BFEAFA4039@HKMAIL01.nvidia.com>
@ 2010-01-28 8:48 ` Jaroslav Kysela
2010-01-28 9:06 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Jaroslav Kysela @ 2010-01-28 8:48 UTC (permalink / raw)
To: Wei Ni
Cc: 'Takashi Iwai', 'akpm', 'alsa-devel',
'linux-kernel', 'Pavel Hofman'
On Thu, 28 Jan 2010, Wei Ni wrote:
> 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'm afraid, but having more than 8 PCM devices might cause problems when
CONFIG_SND_DYNAMIC_MINORS is not set. At least, this condition
(#if SNDRV_PCM_DEVICES < 10) should be handled in the HDA driver.
Jaroslav
-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [alsa-devel] [PATCH]Change the AZX_MAX_PCMS to 10
2010-01-28 8:48 ` [alsa-devel] [PATCH]Change the AZX_MAX_PCMS to 10 Jaroslav Kysela
@ 2010-01-28 9:06 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2010-01-28 9:06 UTC (permalink / raw)
To: Jaroslav Kysela
Cc: Wei Ni, 'akpm', 'alsa-devel',
'linux-kernel', 'Pavel Hofman'
At Thu, 28 Jan 2010 09:48:44 +0100 (CET),
Jaroslav Kysela wrote:
>
> On Thu, 28 Jan 2010, Wei Ni wrote:
>
> > 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'm afraid, but having more than 8 PCM devices might cause problems when
> CONFIG_SND_DYNAMIC_MINORS is not set. At least, this condition
> (#if SNDRV_PCM_DEVICES < 10) should be handled in the HDA driver.
Indeed. But it'll be give anyway at runtime, so no big issue.
The fix, however, should be merged because of inconsistency between
hda_intel.c and hda_codec.c. We should put this rather in
hda_codec.h so that it can be referred from both.
thanks,
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-28 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <6B4D417B830BC44B8026029FD256F7F1BFEAFA4039@HKMAIL01.nvidia.com>
2010-01-28 8:48 ` [alsa-devel] [PATCH]Change the AZX_MAX_PCMS to 10 Jaroslav Kysela
2010-01-28 9:06 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®