summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-08-04 17:31:18 +0200
committerMark Brown <broonie@linaro.org>2014-08-04 17:31:18 +0200
commit3a2ac12f8eadaee97ad0337d81280547ab7a3311 (patch)
tree92f9a25f8cdac19cfe174de41a3751cc36fa6a57 /sound/core
parentMerge remote-tracking branch 'asoc/topic/core' into asoc-next (diff)
parentdma: edma: Declare DMA_SLAVE_BUSWIDTH_3_BYTES as supported buswidth (diff)
downloadlinux-3a2ac12f8eadaee97ad0337d81280547ab7a3311.tar.xz
linux-3a2ac12f8eadaee97ad0337d81280547ab7a3311.zip
Merge remote-tracking branch 'asoc/topic/dma' into asoc-next
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_dmaengine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c
index 76cbb9ec953a..6542c4083594 100644
--- a/sound/core/pcm_dmaengine.c
+++ b/sound/core/pcm_dmaengine.c
@@ -65,13 +65,15 @@ int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream,
enum dma_slave_buswidth buswidth;
int bits;
- bits = snd_pcm_format_physical_width(params_format(params));
+ bits = params_physical_width(params);
if (bits < 8 || bits > 64)
return -EINVAL;
else if (bits == 8)
buswidth = DMA_SLAVE_BUSWIDTH_1_BYTE;
else if (bits == 16)
buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES;
+ else if (bits == 24)
+ buswidth = DMA_SLAVE_BUSWIDTH_3_BYTES;
else if (bits <= 32)
buswidth = DMA_SLAVE_BUSWIDTH_4_BYTES;
else