From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 1/3] ALSA: HDA: Fix stream assignment for host in decoupled mode Date: Tue, 04 Aug 2015 07:12:16 +0200 Message-ID: References: <1438660720-30033-1-git-send-email-vinod.koul@intel.com> <1438660720-30033-2-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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 372F126064F for ; Tue, 4 Aug 2015 07:12:17 +0200 (CEST) In-Reply-To: <1438660720-30033-2-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 On Tue, 04 Aug 2015 05:58:38 +0200, Vinod Koul wrote: > > From: Jeeja KP > > This fixes issue in assigning host stream in case of > decoupled mode. The check to verify if the stream is already > in use was wrong so fix that > > Signed-off-by: Jeeja KP > Signed-off-by: Vinod Koul Applied, thanks. Takashi > --- > sound/hda/ext/hdac_ext_stream.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/hda/ext/hdac_ext_stream.c b/sound/hda/ext/hdac_ext_stream.c > index f8ffbdbb450d..3de47dd1a76d 100644 > --- a/sound/hda/ext/hdac_ext_stream.c > +++ b/sound/hda/ext/hdac_ext_stream.c > @@ -299,7 +299,7 @@ hdac_ext_host_stream_assign(struct hdac_ext_bus *ebus, > if (stream->direction != substream->stream) > continue; > > - if (stream->opened) { > + if (!stream->opened) { > if (!hstream->decoupled) > snd_hdac_ext_stream_decouple(ebus, hstream, true); > res = hstream; > -- > 1.9.1 >