linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] ASoC: follow the updated samsung DMA common operations
@ 2012-06-05  7:20 Boojin Kim
  2012-06-07 23:45 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Boojin Kim @ 2012-06-05  7:20 UTC (permalink / raw)
  To: 'Boojin Kim', alsa-devel, linux-arm-kernel,
	linux-samsung-soc, spi-devel-general
  Cc: 'Vinod Koul', 'Grant Likely',
	'Russell King - ARM Linux', 'Mark Brown',
	'Dan Williams', kgene.kim

This patch uses config() function to configure DMA transmit options.

Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
---
 sound/soc/samsung/dma.c |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c
index ddc6cde..f3ebc38 100644
--- a/sound/soc/samsung/dma.c
+++ b/sound/soc/samsung/dma.c
@@ -74,7 +74,7 @@ static void dma_enqueue(struct snd_pcm_substream *substream)
 	struct runtime_data *prtd = substream->runtime->private_data;
 	dma_addr_t pos = prtd->dma_pos;
 	unsigned int limit;
-	struct samsung_dma_prep_info dma_info;
+	struct samsung_dma_prep dma_info;

 	pr_debug("Entered %s\n", __func__);

@@ -146,7 +146,8 @@ static int dma_hw_params(struct snd_pcm_substream *substream,
 	unsigned long totbytes = params_buffer_bytes(params);
 	struct s3c_dma_params *dma =
 		snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
-	struct samsung_dma_info dma_info;
+	struct samsung_dma_req req;
+	struct samsung_dma_config config;

 	pr_debug("Entered %s\n", __func__);

@@ -166,16 +167,17 @@ static int dma_hw_params(struct snd_pcm_substream *substream,

 		prtd->params->ops = samsung_dma_get_ops();

-		dma_info.cap = (samsung_dma_has_circular() ?
+		req.cap = (samsung_dma_has_circular() ?
 			DMA_CYCLIC : DMA_SLAVE);
-		dma_info.client = prtd->params->client;
-		dma_info.direction =
+		req.client = prtd->params->client;
+		config.direction =
 			(substream->stream == SNDRV_PCM_STREAM_PLAYBACK
 			? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM);
-		dma_info.width = prtd->params->dma_size;
-		dma_info.fifo = prtd->params->dma_addr;
+		config.width = prtd->params->dma_size;
+		config.fifo = prtd->params->dma_addr;
 		prtd->params->ch = prtd->params->ops->request(
-				prtd->params->channel, &dma_info);
+				prtd->params->channel, &req);
+		prtd->params->ops->config(prtd->params->ch, &config);
 	}

 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
--
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] ASoC: follow the updated samsung DMA common operations
  2012-06-05  7:20 [PATCH 3/3] ASoC: follow the updated samsung DMA common operations Boojin Kim
@ 2012-06-07 23:45 ` Mark Brown
  2012-06-19  6:30   ` Boojin Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-06-07 23:45 UTC (permalink / raw)
  To: Boojin Kim
  Cc: alsa-devel, linux-samsung-soc, 'Russell King - ARM Linux',
	'Vinod Koul', 'Grant Likely', kgene.kim,
	spi-devel-general, 'Dan Williams', linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 280 bytes --]

On Tue, Jun 05, 2012 at 04:20:10PM +0900, Boojin Kim wrote:
> This patch uses config() function to configure DMA transmit options.

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

It'd be good if we could get all the older Samsung platforms moved over
to dmaengine...

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 3/3] ASoC: follow the updated samsung DMA common operations
  2012-06-07 23:45 ` Mark Brown
@ 2012-06-19  6:30   ` Boojin Kim
  2012-06-19  8:49     ` Kukjin Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Boojin Kim @ 2012-06-19  6:30 UTC (permalink / raw)
  To: 'Mark Brown'
  Cc: alsa-devel, linux-samsung-soc, 'Russell King - ARM Linux',
	'Vinod Koul', 'Grant Likely', kgene.kim,
	spi-devel-general, 'Dan Williams', linux-arm-kernel

Mark Brown wrote
> > This patch uses config() function to configure DMA transmit options.
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
>
> It'd be good if we could get all the older Samsung platforms moved over to dmaengine...
Thanks for your ack :)
And, Our engineer's preparing to move the older Samsung dma driver into dmaengine.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 3/3] ASoC: follow the updated samsung DMA common operations
  2012-06-19  6:30   ` Boojin Kim
@ 2012-06-19  8:49     ` Kukjin Kim
  0 siblings, 0 replies; 4+ messages in thread
From: Kukjin Kim @ 2012-06-19  8:49 UTC (permalink / raw)
  To: 'Boojin Kim', 'Mark Brown'
  Cc: alsa-devel, linux-samsung-soc, 'Russell King - ARM Linux',
	'Vinod Koul', 'Grant Likely', spi-devel-general,
	'Dan Williams', linux-arm-kernel

Boojin Kim wrote:
> 
> Mark Brown wrote
> > > This patch uses config() function to configure DMA transmit options.
> >
> > Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> >
Thanks for your ack and let me pick this up in Samsung tree.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

> > It'd be good if we could get all the older Samsung platforms moved over
> to dmaengine...
> Thanks for your ack :)
> And, Our engineer's preparing to move the older Samsung dma driver into
> dmaengine.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-19  8:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05  7:20 [PATCH 3/3] ASoC: follow the updated samsung DMA common operations Boojin Kim
2012-06-07 23:45 ` Mark Brown
2012-06-19  6:30   ` Boojin Kim
2012-06-19  8:49     ` Kukjin Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).