Skip to contentSkip to conversation

ARM: S3C64XX: Clear DMA flags on channel request

PATCH New Mark Brown 2 participants 4 messages Mar 28, 2013 – Apr 2, 2013

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/2 ARM: S3C64XX: Clear DMA flags on channel request

From: Charles Keepax <[email protected]>

This patch clears the DMA flags when a DMA channel is requested. This is necessary because otherwise the channel may inherit incompatible settings from its last usage.

---
 arch/arm/mach-s3c64xx/dma.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-s3c64xx/dma.c +1 -0
index 6af1aa1..759846c 100644
@@ -509,6 +509,7 @@ int s3c2410_dma_request(enum dma_ch channel,
 	chan->client = client;
 	chan->in_use = 1;
 	chan->peripheral = channel;
+	chan->flags = 0;
 
 	local_irq_restore(flags);
 
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH 2/2 ARM: S3C64XX: Slow down mic detection rate for wm5102

From: Charles Keepax <[email protected]>

A slightly slower rate provides more reliable jack detection during slower insertions.

---
 arch/arm/mach-s3c64xx/mach-crag6410-module.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-s3c64xx/mach-crag6410-module.c +1 -0
index bf3d1c0..a946b75 100644
@@ -210,6 +210,7 @@ static struct arizona_pdata wm5102_reva_pdata = {
 	.gpio_base = CODEC_GPIO_BASE,
 	.irq_active_high = true,
 	.micd_pol_gpio = CODEC_GPIO_BASE + 4,
+	.micd_rate = 6,
 	.gpio_defaults = {
 		[2] = 0x10000, /* AIF3TXLRCLK */
 		[3] = 0x4,     /* OPCLK */
Signature · 1 line
1.7.10.4
Applied
#2 lore raw

PATCH 2/2 ARM: S3C64XX: Slow down mic detection rate for wm5102

Quoted 26 lines · Mark Brown

From: Charles Keepax <[email protected]>

A slightly slower rate provides more reliable jack detection during slower insertions.

---
 arch/arm/mach-s3c64xx/mach-crag6410-module.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach- renamed from arch/arm/mach-s3c64xx/mach-crag6410-module.c +0 -0

s3c64xx/mach-crag6410-module.c
index bf3d1c0..a946b75 100644

arch/arm/mach-s3c64xx/mach-crag6410-module.c +1 -1
@@ -210,6 +210,7 @@ static struct arizona_pdata wm5102_reva_pdata = {
 	.gpio_base = CODEC_GPIO_BASE,
 	.irq_active_high = true,
 	.micd_pol_gpio = CODEC_GPIO_BASE + 4,
+	.micd_rate = 6,
 	.gpio_defaults = {
 		[2] = 0x10000, /* AIF3TXLRCLK */
 		[3] = 0x4,     /* OPCLK */
--
Quoted 1 line

1.7.10.4

Applied, thanks.

- Kukjin

Applied
#3 lore raw

PATCH 1/2 ARM: S3C64XX: Clear DMA flags on channel request

In reply to Mark Brown
Quoted 26 lines · Mark Brown

From: Charles Keepax <[email protected]>

This patch clears the DMA flags when a DMA channel is requested. This is necessary because otherwise the channel may inherit incompatible settings from its last usage.

---
 arch/arm/mach-s3c64xx/dma.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-s3c64xx/dma.c +1 -1
index 6af1aa1..759846c 100644
@@ -509,6 +509,7 @@ int s3c2410_dma_request(enum dma_ch channel,
 	chan->client = client;
 	chan->in_use = 1;
 	chan->peripheral = channel;
+	chan->flags = 0;
 
 	local_irq_restore(flags);
 
--
Quoted 1 line

1.7.10.4

Applied, thanks.

- Kukjin