summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-07-03 06:51:53 +0200
committerMark Brown <broonie@linaro.org>2014-07-04 19:55:17 +0200
commit732814c8ffedd33a6b54f149b07ddec13c49fce9 (patch)
treebd1680b193cf0b1540171b837f0fee4e30280adc /sound/core
parentdma: Support for 3 bytes word size (diff)
downloadlinux-732814c8ffedd33a6b54f149b07ddec13c49fce9.tar.xz
linux-732814c8ffedd33a6b54f149b07ddec13c49fce9.zip
ALSA: pcm_dmaengine: Use the available wrapper to get physical width
params_physical_width() is available via pcm_params.h Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Vinod Koul <vinod.koul@intel.com> Acked-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_dmaengine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c
index 76cbb9ec953a..d5611ec80381 100644
--- a/sound/core/pcm_dmaengine.c
+++ b/sound/core/pcm_dmaengine.c
@@ -65,7 +65,7 @@ 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)