From: Takashi Iwai Subject: Re: [PATCH] ASoC: Ensure we generate a card name Date: Tue, 20 Sep 2011 14:12:15 +0200 Message-ID: References: <1316515341-21157-1-git-send-email-broonie@opensource.wolfsonmicro.com> <20110920110355.GI2387@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 C7C051039D2 for ; Tue, 20 Sep 2011 14:12:18 +0200 (CEST) In-Reply-To: <20110920110355.GI2387@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: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, Liam Girdwood List-Id: alsa-devel@alsa-project.org At Tue, 20 Sep 2011 12:03:56 +0100, Mark Brown wrote: > > On Tue, Sep 20, 2011 at 12:58:11PM +0200, Takashi Iwai wrote: > > > Better to replace any letter except [a-zA-Z0-9_] with '_' or drop > > them. Use isalnum(), for example. > > What *are* the rules? The documentation says "driver name" which isn't > verbose... It's used as an id string, so you can guess. Practically, it should be a single word, contain no dangerous letters that may screw up the parser. Takashi