]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/drivers/aloop.c
ALSA: pcm_format_to_bits strong-typed conversion
[karo-tx-linux.git] / sound / drivers / aloop.c
index 64d534710b5177e44fbbe6d91c208eb30f6158f8..6f78de9c6fb68bbcedcbbbe473d1eb6c837d24a6 100644 (file)
@@ -325,7 +325,7 @@ static void params_change(struct snd_pcm_substream *substream)
        struct loopback_pcm *dpcm = runtime->private_data;
        struct loopback_cable *cable = dpcm->cable;
 
-       cable->hw.formats = (1ULL << runtime->format);
+       cable->hw.formats = pcm_format_to_bits(runtime->format);
        cable->hw.rate_min = runtime->rate;
        cable->hw.rate_max = runtime->rate;
        cable->hw.channels_min = runtime->channels;