Skip to contentSkip to conversation

ALSA: hda - mask buggy stream DMA0 for Broadwell display controller

PATCH In review [email protected] 2 participants 2 messages May 13, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ALSA: hda - mask buggy stream DMA0 for Broadwell display controller

From: Mengdong Lin <[email protected]>

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.

sound/pci/hda/hda_intel.c +6 -0
index d6bca62..6309b5b 100644
@@ -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);
Signature · 1 line
1.8.1.2
#1 lore raw

At Tue, 13 May 2014 16:57:08 +0800,

Quoted 10 lines · [email protected] wrote:

From: Mengdong Lin <[email protected]>

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.

Applied now. Thanks.

Takashi

Quoted 21 lines
sound/pci/hda/hda_intel.c +6 -0
index d6bca62..6309b5b 100644
@@ -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);
Signature · 1 line
1.8.1.2