From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v9 2/3] ALSA: hdac_ext: add hdac extended controller Date: Thu, 11 Jun 2015 11:10:24 +0200 Message-ID: References: <1434012109-20164-1-git-send-email-vinod.koul@intel.com> <1434012109-20164-3-git-send-email-vinod.koul@intel.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 EC2EB266029 for ; Thu, 11 Jun 2015 11:10:25 +0200 (CEST) In-Reply-To: <1434012109-20164-3-git-send-email-vinod.koul@intel.com> 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 Thu, 11 Jun 2015 14:11:48 +0530, Vinod Koul wrote: > > +struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_ext_bus *ebus, > + const char *codec_name) > +{ > + int i; > + struct hdac_ext_link *hlink = NULL; > + int bus_idx, addr; > + > + if (sscanf(codec_name, "ehdaudio%dD%d", &bus_idx, &addr) != 2) > + return NULL; > + if (ebus->idx != bus_idx) > + return NULL; > + > + list_for_each_entry(hlink, &ebus->hlink_list, list) { > + for (i = 0; i < HDA_MAX_CODECS; i++) { > + if (hlink->lsdiid && (0x1 << addr)) This should be single '&'. But I can correct it by myself at applying, so no need for resend if no other problem is seen. Takashi