From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v6 2/3] ALSA: hdac_ext: add hdac extended controller Date: Mon, 08 Jun 2015 17:42:25 +0200 Message-ID: References: <1433411602-5444-1-git-send-email-vinod.koul@intel.com> <1433411602-5444-3-git-send-email-vinod.koul@intel.com> <20150608153259.GO28601@localhost> 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 CDF2F260442 for ; Mon, 8 Jun 2015 17:42:25 +0200 (CEST) In-Reply-To: <20150608153259.GO28601@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Vinod Koul Cc: liam.r.girdwood@linux.intel.com, patches.audio@intel.com, alsa-devel@alsa-project.org, broonie@kernel.org, Jeeja KP List-Id: alsa-devel@alsa-project.org At Mon, 8 Jun 2015 21:02:59 +0530, Vinod Koul wrote: > > On Mon, Jun 08, 2015 at 11:12:48AM +0200, Takashi Iwai wrote: > > > +struct hdac_ext_link { > > > + struct hdac_bus *bus; > > > + int index; > > > + void __iomem *ml_addr; /* link output stream reg pointer */ > > > + u32 lcaps; /* link capablities */ > > > + u16 lsdiid; /* link sdi identifier */ > > > + char codec[HDA_MAX_CODECS][32]; /* codecs connectes to the link */ > > > > Do we need to keep the codec name string? Isn't it just codec address > > we'd like to check the match...? If so, we may use bitmasks instead, > > too. > This is not for matching stuff (this is link structure and not codec) > So we keep name of codec found on this link. When ASoC BE triggers we use > codec name to find the link and use But each codec name consists of just a few bits. Why do you need to keep each codec name string? Takashi