diff options
author | Mark Brown <broonie@linaro.org> | 2014-08-04 17:31:18 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-04 17:31:18 +0200 |
commit | 3a2ac12f8eadaee97ad0337d81280547ab7a3311 (patch) | |
tree | 92f9a25f8cdac19cfe174de41a3751cc36fa6a57 /sound/core | |
parent | Merge remote-tracking branch 'asoc/topic/core' into asoc-next (diff) | |
parent | dma: edma: Declare DMA_SLAVE_BUSWIDTH_3_BYTES as supported buswidth (diff) | |
download | linux-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.c | 4 |
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 |