]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: snd-usb-caiaq: use snd_pcm_rate_to_rate_bit
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 8 Aug 2024 13:48:54 +0000 (15:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Aug 2024 16:32:56 +0000 (18:32 +0200)
commite95b9f7f2ee05bbef3bf6a4cd7da6e887f17f652
tree7ee656d020a2d08fba722c518879faf1e5680c6a
parenta1066453b5e49a28523f3ecbbfe4e06c6a29561c
ALSA: snd-usb-caiaq: use snd_pcm_rate_to_rate_bit

Use snd_pcm_rate_to_rate_bit() helper provided by Alsa instead
re-implementing it. This reduce code duplication and helps when
changing some Alsa definition is necessary.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20240808134857.86749-1-jbrunet@baylibre.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/audio.c