From: Peter Ujfalusi Subject: Re: [PATCH 1/1] ASoC: add support for multiple cards/codecs in debugfs Date: Wed, 30 Sep 2009 14:21:46 +0300 Message-ID: <200909301421.46742.peter.ujfalusi@nokia.com> References: <1254306259-8098-1-git-send-email-peter.ujfalusi@nokia.com> <1254306259-8098-2-git-send-email-peter.ujfalusi@nokia.com> <20090930104628.GA12101@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mgw-mx06.nokia.com (smtp.nokia.com [192.100.122.233]) by alsa0.perex.cz (Postfix) with ESMTP id 14CEB103809 for ; Wed, 30 Sep 2009 13:21:57 +0200 (CEST) In-Reply-To: <20090930104628.GA12101@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: ext Mark Brown Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org On Wednesday 30 September 2009 13:46:29 ext Mark Brown wrote: > There's way more problems than this with multiple CODECs and multiple > cards - DAPM can't really cope at all, and the split between CODECs and > cards isn't as clear as would be desirable. Yes, when I have moved to 2.6.31 it was kind of weird to have the = snd_soc_init_card(socdev) called from the codec driver itself, which I stil= l not = feel too comfortable with... > Looking into this is one of my big tasks for the rest of the year. With = this = > particular problem I suspect the fix will fall out of the other > reorganisations required to make the rest of the system work. I have in my board two codecs, using separate sound cards for each. One card - one codec. So far DAPM and in general ASoC behaved quite well in all possible scenario= s. But not be able to use the debugfs in my setup is quite frustrating. Btw. do you have some information about this upcoming reorganization, to se= e = what is coming? > > + codec->debugfs_codec_root =3D debugfs_create_dir(codec->name, > > + debugfs_root); > = > I don't think the CODEC name is what we want to use here, one of the > common cases is going to be to have two or more mono DACs or speaker > drivers in the system, normally of the same type and therefore with the > same name set here. I see, these setups are going to be interesting and greatly complicates thi= ngs. > A dev_name() is going to be required as well, > munged in with the CODEC name for usability. The dev_name() is used in earlier ASoC versions as debugfs directory name. All of that being said, it would be still nice to at least fix the current = situation in some way, since the current implementation is clearly not beha= ving = correctly. Does it help, if I use the dev_name() instead of the codec->name for the = directory for now? Later when you are doing the reorganization of the code, this could be also = fixed. = Thanks, P=E9ter