]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: pcm: add more sample rate definitions
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 5 Sep 2024 14:12:52 +0000 (16:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Sep 2024 07:23:54 +0000 (09:23 +0200)
commit090624b7dc8389a516df3adb447a25dc0723adfe
tree42766109d53f0ae8c50e1708f6938eae4ace0549
parent2994586e2c484c5a3e799ba8e3f218894b8b0bb7
ALSA: pcm: add more sample rate definitions

This adds a sample rate definition for 12kHz, 24kHz and 128kHz.

Admittedly, just a few drivers are currently using these sample
rates but there is enough of a recurrence to justify adding a definition
for them and remove some custom rate constraint code while at it.

The new definitions are not added to the interval definitions, such as
SNDRV_PCM_RATE_8000_44100, because it would silently add new supported
rates to drivers that may or may not support them. For sure the drivers
have not been tested for these new rates so it is better to leave them out
of interval definitions.

That being said, the added rates are multiples of well know rates families,
it is very likely that a lot of devices out there actually supports them.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240905-alsa-12-24-128-v1-1-8371948d3921@baylibre.com
include/sound/pcm.h
sound/core/pcm_native.c