ALSA: pcm_dmaengine: Use the available wrapper to get physical width
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 3 Jul 2014 04:51:53 +0000 (07:51 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 4 Jul 2014 17:55:17 +0000 (18:55 +0100)
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>
sound/core/pcm_dmaengine.c

index 76cbb9ec953a0da66b403aa41687f2af93c0f690..d5611ec80381ed5e991a2e96447cf5efd16f9d96 100644 (file)
@@ -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)