From: Takashi Iwai Subject: Re: [PATCH v2] ALSA: hda - mask buggy stream DMA0 for Broadwell display controller Date: Tue, 13 May 2014 12:12:33 +0200 Message-ID: References: <1399971428-18585-1-git-send-email-mengdong.lin@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 24C912610A1 for ; Tue, 13 May 2014 12:12:34 +0200 (CEST) In-Reply-To: <1399971428-18585-1-git-send-email-mengdong.lin@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: mengdong.lin@intel.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 13 May 2014 16:57:08 +0800, mengdong.lin@intel.com wrote: > > From: Mengdong Lin > > Broadwell display controller has 3 stream DMA engines. DMA0 cannot update DMA > postion buffer properly while DMA1 and DMA2 can work well. So this patch masks > the buggy DMA0 by keeping it as opened. > > This is a tentative workaround, so keep the change small as Takashi suggested. > > Signed-off-by: Mengdong Lin Applied now. Thanks. Takashi > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > index d6bca62..6309b5b 100644 > --- a/sound/pci/hda/hda_intel.c > +++ b/sound/pci/hda/hda_intel.c > @@ -1366,6 +1366,12 @@ static int azx_first_init(struct azx *chip) > /* initialize streams */ > azx_init_stream(chip); > > + /* workaround for Broadwell HDMI: the first stream is broken, > + * so mask it by keeping it as if opened > + */ > + if (pci->vendor == 0x8086 && pci->device == 0x160c) > + chip->azx_dev[0].opened = 1; > + > /* initialize chip */ > azx_init_pci(chip); > azx_init_chip(chip, (probe_only[dev] & 2) == 0); > -- > 1.8.1.2 >