]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ALSA: pcm_dmaengine: Remove hardcoded PCM formats
authorTakashi Iwai <tiwai@suse.de>
Fri, 25 Oct 2013 14:33:12 +0000 (16:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2013 09:18:09 +0000 (10:18 +0100)
commita655f75c7502e5000c8745f458d3dbb9777f4aca
tree42b8ce7964a83f932a6ee95cc53c3753bebb648e
parentafb5a7793144179bfd856e3c928b69c43e2a1d8a
ALSA: pcm_dmaengine: Remove hardcoded PCM formats

Use the standard PCM helper function to figure out the sample bytes
instead of hardcodec PCM format checks in
snd_hwparams_to_dma_slave_config().

The patch also extends the format check for 8 bytes formats although
no one should match so far.

Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_dmaengine.c