From: Takashi Iwai Subject: Re: [PATCH] alsa-lib: if card driver name is empty string, use card name instead Date: Tue, 20 Sep 2011 12:58:45 +0200 Message-ID: References: <1316538944-31853-1-git-send-email-scott.jiang.linux@gmail.com> <20110920101434.GD2387@opensource.wolfsonmicro.com> <20110920105156.GF2387@opensource.wolfsonmicro.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 39F7C1039C9 for ; Tue, 20 Sep 2011 12:58:46 +0200 (CEST) In-Reply-To: <20110920105156.GF2387@opensource.wolfsonmicro.com> 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: Mark Brown Cc: uclinux-dist-devel@blackfin.uclinux.org, Scott Jiang , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 20 Sep 2011 11:51:57 +0100, Mark Brown wrote: > > On Tue, Sep 20, 2011 at 12:33:41PM +0200, Takashi Iwai wrote: > > > Well, you can follow a short history from the commit: the commit above > > was really a fix to get back to the old good behavior. Until 3.0, > > ASoC had no way to set card->driver field. The method to set > > No - older versions of ASoC always automatically generated a driver > name (badly but that's a separate story). I guess that got broken with > multi-component but didn't bother checking. Ah, OK, so the problem existed since long time ago... > > But, this was no good move, too. The card->driver field is to be a > > concise string without special letters while card->name contains more > > flexible string. So, I changed the way back to the state before 3.0 > > there, the commit 873bd4. > > Which unfortunately restored the original problem which was being fixed > by Jarkko. > > > Of course, it'd be nice to implement a logic in ASoC core to > > automatically generate some valid driver-name string. But, the driver > > name string is at most 15 letters, and card->name is an arbitrary > > string, so you'd need to do it a bit carefully. > > I think the card name is fine, people don't tend to write anything > terribly long there and very little actually cares about the driver name > - alsa-lib's config loading thing is the only thing I'm aware of (and > that's not being terribly useful really, one driver can easily support > multiple cards). If it's a problem people can always explicitly set > something. Sounds reasonable. thanks, Takashi