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>
This commit is contained in:
Jerome Brunet 2024-08-08 15:48:54 +02:00 • committed by Takashi Iwai
commit e95b9f7f2e