Skip to contentSkip to conversation

als4000: enable burst mode

PATCH Ondrej Zary 2 participants 6 messages Aug 3, 2010 – Aug 4, 2010 Sound

lore
Share & tools
lore
#0 lore raw

Enable burst mode to prevent dropouts during high PCI bus usage. The card is useless in X without this because of dropouts when anything moves on the screen (at least with PCI VGA card). Enabling this is also recommended by the datasheet (page 48).

sound/pci/als4000.c +2 -2
@@ -763,9 +763,9 @@ static void snd_als4000_configure(struct
 	/* SPECS_PAGE: 39 */
 	for (i = ALS4K_GCR91_DMA0_ADDR; i <= ALS4K_GCR96_DMA3_MODE_COUNT; ++i)
 		snd_als4k_gcr_write(chip, i, 0);
-	
+	/* enable burst mode to prevent dropouts during high PCI bus usage */
 	snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL,
-		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL));
+		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) | 0x04);
 	spin_unlock_irq(&chip->reg_lock);
 }
 
Signature · 1 line
Ondrej Zary
#1 lore raw

At Tue, 3 Aug 2010 23:57:05 +0200,

Quoted 7 lines · Ondrej Zary

Enable burst mode to prevent dropouts during high PCI bus usage. The card is useless in X without this because of dropouts when anything moves on the screen (at least with PCI VGA card). Enabling this is also recommended by the datasheet (page 48).

Applied now. Thanks.

Takashi

Quoted 23 lines
sound/pci/als4000.c +2 -2
@@ -763,9 +763,9 @@ static void snd_als4000_configure(struct
 	/* SPECS_PAGE: 39 */
 	for (i = ALS4K_GCR91_DMA0_ADDR; i <= ALS4K_GCR96_DMA3_MODE_COUNT; ++i)
 		snd_als4k_gcr_write(chip, i, 0);
-	
+	/* enable burst mode to prevent dropouts during high PCI bus usage */
 	snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL,
-		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL));
+		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) | 0x04);
 	spin_unlock_irq(&chip->reg_lock);
 }
 
Signature · 6 lines
-- 
Ondrej Zary
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw
Quoted 11 lines · On Wednesday 04 August 2010 07:43:44 Takashi Iwai wrote:

At Tue, 3 Aug 2010 23:57:05 +0200,

Quoted 6 lines · Ondrej Zary

Enable burst mode to prevent dropouts during high PCI bus usage. The card is useless in X without this because of dropouts when anything moves on the screen (at least with PCI VGA card). Enabling this is also recommended by the datasheet (page 48).

Applied now. Thanks.

My previous patch assumed that the DMA mode (represented by 3 lowest bits of ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value 0. If that's not the case, it might result in invalid mode to be set. This v2 patch fixes this potential problem.

sound/pci/als4000.c +2 -2
@@ -763,9 +763,9 @@ static void snd_als4000_configure(struct
 	/* SPECS_PAGE: 39 */
 	for (i = ALS4K_GCR91_DMA0_ADDR; i <= ALS4K_GCR96_DMA3_MODE_COUNT; ++i)
 		snd_als4k_gcr_write(chip, i, 0);
-	
+	/* enable burst mode to prevent dropouts during high PCI bus usage */
 	snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL,
-		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL));
+		(snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) & ~0x07) | 0x04);
 	spin_unlock_irq(&chip->reg_lock);
 }
 
Signature · 1 line
Ondrej Zary
#3 lore raw

At Wed, 4 Aug 2010 21:08:14 +0200,

Quoted 12 lines · Ondrej Zary
Quoted 10 lines · On Wednesday 04 August 2010 07:43:44 Takashi Iwai wrote:

At Tue, 3 Aug 2010 23:57:05 +0200,

Quoted 6 lines · Ondrej Zary

Enable burst mode to prevent dropouts during high PCI bus usage. The card is useless in X without this because of dropouts when anything moves on the screen (at least with PCI VGA card). Enabling this is also recommended by the datasheet (page 48).

Quoted 8 lines
Quoted 1 line

Applied now. Thanks.

My previous patch assumed that the DMA mode (represented by 3 lowest bits of ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value 0. If that's not the case, it might result in invalid mode to be set. This v2 patch fixes this potential problem.

As the previous patch was already applied, could you give the incremental change?

thanks,

Takashi

Quoted 19 lines
sound/pci/als4000.c +2 -2
@@ -763,9 +763,9 @@ static void snd_als4000_configure(struct
 	/* SPECS_PAGE: 39 */
 	for (i = ALS4K_GCR91_DMA0_ADDR; i <= ALS4K_GCR96_DMA3_MODE_COUNT; ++i)
 		snd_als4k_gcr_write(chip, i, 0);
-	
+	/* enable burst mode to prevent dropouts during high PCI bus usage */
 	snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL,
-		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL));
+		(snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) & ~0x07) | 0x04);
 	spin_unlock_irq(&chip->reg_lock);
 }
 
Signature · 2 lines
-- 
Ondrej Zary
#4 lore raw
Quoted 21 lines · On Wednesday 04 August 2010 21:31:32 Takashi Iwai wrote:

At Wed, 4 Aug 2010 21:08:14 +0200,

Quoted 18 lines · Ondrej Zary
Quoted 11 lines · On Wednesday 04 August 2010 07:43:44 Takashi Iwai wrote:

At Tue, 3 Aug 2010 23:57:05 +0200,

Quoted 6 lines · Ondrej Zary

Enable burst mode to prevent dropouts during high PCI bus usage. The card is useless in X without this because of dropouts when anything moves on the screen (at least with PCI VGA card). Enabling this is also recommended by the datasheet (page 48).

Applied now. Thanks.

My previous patch assumed that the DMA mode (represented by 3 lowest bits of ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value
0. If that's not the case, it might result in invalid mode to be set. This v2 patch fixes this potential problem.

Quoted 4 lines
Quoted 1 line

As the previous patch was already applied, could you give the incremental change?

Of course, sorry for that.

My previous patch assumed that the DMA mode (represented by 3 lowest bits of ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value 0. If that's not the case, it might result in invalid mode to be set. This patch fixes this potential problem.

sound/pci/als4000.c +1 -1
@@ -765,7 +765,7 @@ static void snd_als4000_configure(struct
 		snd_als4k_gcr_write(chip, i, 0);
 	/* enable burst mode to prevent dropouts during high PCI bus usage */
 	snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL,
-		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) | 0x04);
+		(snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) & ~0x07) | 0x04);
 	spin_unlock_irq(&chip->reg_lock);
 }
 
Signature · 1 line
Ondrej Zary
#5 lore raw

At Wed, 4 Aug 2010 21:56:44 +0200,

Quoted 31 lines · Ondrej Zary
Quoted 21 lines · On Wednesday 04 August 2010 21:31:32 Takashi Iwai wrote:

At Wed, 4 Aug 2010 21:08:14 +0200,

Quoted 18 lines · Ondrej Zary
Quoted 11 lines · On Wednesday 04 August 2010 07:43:44 Takashi Iwai wrote:

At Tue, 3 Aug 2010 23:57:05 +0200,

Quoted 6 lines · Ondrej Zary

Enable burst mode to prevent dropouts during high PCI bus usage. The card is useless in X without this because of dropouts when anything moves on the screen (at least with PCI VGA card). Enabling this is also recommended by the datasheet (page 48).

Applied now. Thanks.

My previous patch assumed that the DMA mode (represented by 3 lowest bits of ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value
0. If that's not the case, it might result in invalid mode to be set. This v2 patch fixes this potential problem.

Quoted 4 lines
Quoted 1 line

As the previous patch was already applied, could you give the incremental change?

Of course, sorry for that.

Quoted 6 lines

My previous patch assumed that the DMA mode (represented by 3 lowest bits of ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value 0. If that's not the case, it might result in invalid mode to be set. This patch fixes this potential problem.

Applied now. Thanks!

Takashi

Quoted 17 lines
sound/pci/als4000.c +1 -1
@@ -765,7 +765,7 @@ static void snd_als4000_configure(struct
 		snd_als4k_gcr_write(chip, i, 0);
 	/* enable burst mode to prevent dropouts during high PCI bus usage */
 	snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL,
-		snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) | 0x04);
+		(snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) & ~0x07) | 0x04);
 	spin_unlock_irq(&chip->reg_lock);
 }
 
Signature · 2 lines
-- 
Ondrej Zary