From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755974Ab0A1JG7 (ORCPT ); Thu, 28 Jan 2010 04:06:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755735Ab0A1JG5 (ORCPT ); Thu, 28 Jan 2010 04:06:57 -0500 Received: from cantor2.suse.de ([195.135.220.15]:35781 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589Ab0A1JGx (ORCPT ); Thu, 28 Jan 2010 04:06:53 -0500 Date: Thu, 28 Jan 2010 10:06:51 +0100 Message-ID: From: Takashi Iwai To: Jaroslav Kysela Cc: Wei Ni , "'akpm'" , "'alsa-devel'" , "'linux-kernel'" , "'Pavel Hofman'" Subject: Re: [alsa-devel] [PATCH]Change the AZX_MAX_PCMS to 10 In-Reply-To: References: <6B4D417B830BC44B8026029FD256F7F1BFEAFA4039@HKMAIL01.nvidia.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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