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>
This commit is contained in:
parent
93c6ee94c1
commit
732814c8ff
@ -65,7 +65,7 @@ int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream,
|
|||||||
enum dma_slave_buswidth buswidth;
|
enum dma_slave_buswidth buswidth;
|
||||||
int bits;
|
int bits;
|
||||||
|
|
||||||
bits = snd_pcm_format_physical_width(params_format(params));
|
bits = params_physical_width(params);
|
||||||
if (bits < 8 || bits > 64)
|
if (bits < 8 || bits > 64)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
else if (bits == 8)
|
else if (bits == 8)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user