* [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
[not found] <1323791286-29574-1-git-send-email-shawn.guo@linaro.org>
@ 2011-12-14 7:47 ` Shawn Guo
2011-12-14 8:49 ` Dong Aisheng-B29396
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Shawn Guo @ 2011-12-14 7:47 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown
Cc: Dong Aisheng, alsa-devel, linux-kernel, linux-arm-kernel,
Shawn Guo
The commit 49920bc (dmaengine: add new enum dma_transfer_direction)
changes the type of parameter 'direction' of device_prep_dma_cyclic
from dma_data_direction to dma_transfer_direction.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
sound/soc/mxs/mxs-pcm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/mxs/mxs-pcm.c b/sound/soc/mxs/mxs-pcm.c
index 0e12f4e..105f42a 100644
--- a/sound/soc/mxs/mxs-pcm.c
+++ b/sound/soc/mxs/mxs-pcm.c
@@ -136,7 +136,7 @@ static int snd_mxs_pcm_hw_params(struct snd_pcm_substream *substream,
iprtd->period_bytes * iprtd->periods,
iprtd->period_bytes,
substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
- DMA_TO_DEVICE : DMA_FROM_DEVICE);
+ DMA_MEM_TO_DEV : DMA_DEV_TO_MEM);
if (!iprtd->desc) {
dev_err(&chan->dev->device, "cannot prepare slave dma\n");
return -EINVAL;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* RE: [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
2011-12-14 7:47 ` [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic Shawn Guo
@ 2011-12-14 8:49 ` Dong Aisheng-B29396
2011-12-20 0:51 ` Mark Brown
2011-12-23 16:07 ` Vinod Koul
2 siblings, 0 replies; 7+ messages in thread
From: Dong Aisheng-B29396 @ 2011-12-14 8:49 UTC (permalink / raw)
To: Shawn Guo, Liam Girdwood, Mark Brown
Cc: Dong Aisheng, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-
> owner@vger.kernel.org] On Behalf Of Shawn Guo
> Sent: Wednesday, December 14, 2011 3:48 PM
> To: Liam Girdwood; Mark Brown
> Cc: Dong Aisheng; alsa-devel@alsa-project.org; linux-
> kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; Shawn Guo
> Subject: [PATCH 5/5] ASoC: mxs: correct 'direction' of
> device_prep_dma_cyclic
>
> The commit 49920bc (dmaengine: add new enum dma_transfer_direction)
> changes the type of parameter 'direction' of device_prep_dma_cyclic from
> dma_data_direction to dma_transfer_direction.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
> sound/soc/mxs/mxs-pcm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Regards
Dong Aisheng
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
2011-12-14 7:47 ` [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic Shawn Guo
2011-12-14 8:49 ` Dong Aisheng-B29396
@ 2011-12-20 0:51 ` Mark Brown
2011-12-20 3:07 ` [alsa-devel] " Shawn Guo
2011-12-23 16:07 ` Vinod Koul
2 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2011-12-20 0:51 UTC (permalink / raw)
To: Shawn Guo
Cc: alsa-devel, Dong Aisheng, Liam Girdwood, linux-arm-kernel,
linux-kernel
On Wed, Dec 14, 2011 at 03:47:46PM +0800, Shawn Guo wrote:
> The commit 49920bc (dmaengine: add new enum dma_transfer_direction)
> changes the type of parameter 'direction' of device_prep_dma_cyclic
> from dma_data_direction to dma_transfer_direction.
Applied, thanks.
With patches like this you really need to supply more context - knowing
which release the commit you're talking about appears in is useful for
exammple, as is having some hint as to what the rest of the series is
(does this patch depend on any of the earlier patches, and if not why is
it part of a series).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [alsa-devel] [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
2011-12-20 0:51 ` Mark Brown
@ 2011-12-20 3:07 ` Shawn Guo
0 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2011-12-20 3:07 UTC (permalink / raw)
To: Mark Brown
Cc: Shawn Guo, alsa-devel, Dong Aisheng, Liam Girdwood,
linux-arm-kernel, linux-kernel
On Tue, Dec 20, 2011 at 12:51:01AM +0000, Mark Brown wrote:
> On Wed, Dec 14, 2011 at 03:47:46PM +0800, Shawn Guo wrote:
> > The commit 49920bc (dmaengine: add new enum dma_transfer_direction)
> > changes the type of parameter 'direction' of device_prep_dma_cyclic
> > from dma_data_direction to dma_transfer_direction.
>
> Applied, thanks.
>
> With patches like this you really need to supply more context - knowing
> which release the commit you're talking about appears in is useful for
> exammple,
This patch only applies to -next, as the offending patch only sits on
-next.
> as is having some hint as to what the rest of the series is
> (does this patch depend on any of the earlier patches, and if not why is
> it part of a series).
The reason it's in the series is that they are addressing the same
problem.
--
Regards,
Shawn
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
2011-12-14 7:47 ` [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic Shawn Guo
2011-12-14 8:49 ` Dong Aisheng-B29396
2011-12-20 0:51 ` Mark Brown
@ 2011-12-23 16:07 ` Vinod Koul
2011-12-23 16:28 ` Mark Brown
2 siblings, 1 reply; 7+ messages in thread
From: Vinod Koul @ 2011-12-23 16:07 UTC (permalink / raw)
To: Shawn Guo
Cc: alsa-devel, Mark Brown, linux-kernel, Dong Aisheng, Liam Girdwood,
linux-arm-kernel
On Wed, 2011-12-14 at 15:47 +0800, Shawn Guo wrote:
> The commit 49920bc (dmaengine: add new enum dma_transfer_direction)
> changes the type of parameter 'direction' of device_prep_dma_cyclic
> from dma_data_direction to dma_transfer_direction.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
> sound/soc/mxs/mxs-pcm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/mxs/mxs-pcm.c b/sound/soc/mxs/mxs-pcm.c
> index 0e12f4e..105f42a 100644
> --- a/sound/soc/mxs/mxs-pcm.c
> +++ b/sound/soc/mxs/mxs-pcm.c
> @@ -136,7 +136,7 @@ static int snd_mxs_pcm_hw_params(struct snd_pcm_substream *substream,
> iprtd->period_bytes * iprtd->periods,
> iprtd->period_bytes,
> substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
> - DMA_TO_DEVICE : DMA_FROM_DEVICE);
> + DMA_MEM_TO_DEV : DMA_DEV_TO_MEM);
> if (!iprtd->desc) {
> dev_err(&chan->dev->device, "cannot prepare slave dma\n");
> return -EINVAL;
Has this been applied in soc tree? I don't see it in linux-next or do
you want this to go thru slave-dma?
--
~Vinod
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
2011-12-23 16:07 ` Vinod Koul
@ 2011-12-23 16:28 ` Mark Brown
2011-12-23 16:32 ` Vinod Koul
0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2011-12-23 16:28 UTC (permalink / raw)
To: Vinod Koul
Cc: alsa-devel, Dong Aisheng, linux-kernel, Shawn Guo, Liam Girdwood,
linux-arm-kernel
On Fri, Dec 23, 2011 at 09:37:00PM +0530, Vinod Koul wrote:
> Has this been applied in soc tree? I don't see it in linux-next or do
> you want this to go thru slave-dma?
I reverted it, it needs to go with the commit that introduces the new
API otherwise it breaks bisection.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic
2011-12-23 16:28 ` Mark Brown
@ 2011-12-23 16:32 ` Vinod Koul
0 siblings, 0 replies; 7+ messages in thread
From: Vinod Koul @ 2011-12-23 16:32 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Shawn Guo, linux-kernel, Dong Aisheng, Liam Girdwood,
linux-arm-kernel
On Fri, 2011-12-23 at 16:28 +0000, Mark Brown wrote:
> On Fri, Dec 23, 2011 at 09:37:00PM +0530, Vinod Koul wrote:
>
> > Has this been applied in soc tree? I don't see it in linux-next or do
> > you want this to go thru slave-dma?
>
> I reverted it, it needs to go with the commit that introduces the new
> API otherwise it breaks bisection.
Okay thanks,
Those are is in my next so I will apply this one to my next as well.
--
~Vinod
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-12-23 16:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1323791286-29574-1-git-send-email-shawn.guo@linaro.org>
2011-12-14 7:47 ` [PATCH 5/5] ASoC: mxs: correct 'direction' of device_prep_dma_cyclic Shawn Guo
2011-12-14 8:49 ` Dong Aisheng-B29396
2011-12-20 0:51 ` Mark Brown
2011-12-20 3:07 ` [alsa-devel] " Shawn Guo
2011-12-23 16:07 ` Vinod Koul
2011-12-23 16:28 ` Mark Brown
2011-12-23 16:32 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox