* [PATCH] ASoC: tegra: fix maxburst settings in dmaengine code
@ 2012-09-06 23:47 Stephen Warren
[not found] ` <1346975253-2935-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-09-07 1:51 ` Mark Brown
0 siblings, 2 replies; 6+ messages in thread
From: Stephen Warren @ 2012-09-06 23:47 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: linux-tegra, alsa-devel, Laxman Dewangan, Stephen Warren
From: Stephen Warren <swarren@nvidia.com>
The I2S controllers are programmed with an "attention" level of 4 DWORDs.
This must match the configuration passed to the DMA driver, so that when
they burst in data, they don't overflow the available FIFO space. Also,
the burst size is relevant to the destination for playback, and source
for capture, not vice-versa as originally written.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
Mark, I'd like to take this patch through the Tegra tree, since it's a
dependency for the series that converts Tegra to dmaengine. Thanks.
sound/soc/tegra/tegra_pcm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c
index 5658bce..8d6900c 100644
--- a/sound/soc/tegra/tegra_pcm.c
+++ b/sound/soc/tegra/tegra_pcm.c
@@ -334,11 +334,11 @@ static int tegra_pcm_hw_params(struct snd_pcm_substream *substream,
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
slave_config.dst_addr = dmap->addr;
- slave_config.src_maxburst = 0;
+ slave_config.dst_maxburst = 4;
} else {
slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
slave_config.src_addr = dmap->addr;
- slave_config.dst_maxburst = 0;
+ slave_config.src_maxburst = 4;
}
slave_config.slave_id = dmap->req_sel;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread[parent not found: <1346975253-2935-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH] ASoC: tegra: fix maxburst settings in dmaengine code
[not found] ` <1346975253-2935-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2012-09-07 1:00 ` Mark Brown
[not found] ` <20120907010050.GE4400-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2012-09-07 1:00 UTC (permalink / raw)
To: Stephen Warren
Cc: Liam Girdwood, Laxman Dewangan, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren
On Thu, Sep 06, 2012 at 05:47:33PM -0600, Stephen Warren wrote:
> Mark, I'd like to take this patch through the Tegra tree, since it's a
> dependency for the series that converts Tegra to dmaengine. Thanks.
Since it's a fix I was going to send it as a patch for 3.6 so that
shouldn't be an issue?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: tegra: fix maxburst settings in dmaengine code
2012-09-06 23:47 [PATCH] ASoC: tegra: fix maxburst settings in dmaengine code Stephen Warren
[not found] ` <1346975253-2935-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2012-09-07 1:51 ` Mark Brown
1 sibling, 0 replies; 6+ messages in thread
From: Mark Brown @ 2012-09-07 1:51 UTC (permalink / raw)
To: Stephen Warren
Cc: linux-tegra, alsa-devel, Laxman Dewangan, Stephen Warren,
Liam Girdwood
On Thu, Sep 06, 2012 at 05:47:33PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> The I2S controllers are programmed with an "attention" level of 4 DWORDs.
> This must match the configuration passed to the DMA driver, so that when
> they burst in data, they don't overflow the available FIFO space. Also,
> the burst size is relevant to the destination for playback, and source
> for capture, not vice-versa as originally written.
Applied, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-09-11 0:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 23:47 [PATCH] ASoC: tegra: fix maxburst settings in dmaengine code Stephen Warren
[not found] ` <1346975253-2935-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-09-07 1:00 ` Mark Brown
[not found] ` <20120907010050.GE4400-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-09-07 1:36 ` Stephen Warren
[not found] ` <50494F8C.3030906-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-09-10 18:03 ` Stephen Warren
[not found] ` <504E2B73.2020006-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-09-11 0:05 ` Mark Brown
2012-09-07 1:51 ` Mark Brown
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).