aboutsummaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorGravatar Pavel Hofman <pavel.hofman@ivitera.com> 2024-04-16 14:17:25 +0200
committerGravatar Takashi Iwai <tiwai@suse.de> 2024-04-18 09:30:34 +0200
commitad88ea67b135f74a9f32dc5404a35c773b2a3925 (patch)
tree285ab4036c40ef2a9423f66613d8484a2165c2ce /sound/core
parentALSA: aloop: add DSD formats (diff)
downloadlinux-ad88ea67b135f74a9f32dc5404a35c773b2a3925.tar.gz
linux-ad88ea67b135f74a9f32dc5404a35c773b2a3925.tar.bz2
linux-ad88ea67b135f74a9f32dc5404a35c773b2a3925.zip
ALSA: pcm: add support for 705.6kHz and 768kHz sample rates
Many modern codecs support 705.6kHz and 768kHz sample rates. Current HW params fail to set 705.6kHz and 768kHz sample rates as these are not in the known-rates list. Add these new rates to the known-rates list to allow them. Also add defines in pcm.h so that drivers can use it. Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com> Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Message-ID: <20240416121726.628679-3-pavel.hofman@ivitera.com>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 0b76e76823d2..521ba56392a0 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -2416,7 +2416,7 @@ static int snd_pcm_hw_rule_sample_bits(struct snd_pcm_hw_params *params,
static const unsigned int rates[] = {
5512, 8000, 11025, 16000, 22050, 32000, 44100,
- 48000, 64000, 88200, 96000, 176400, 192000, 352800, 384000
+ 48000, 64000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 768000
};
const struct snd_pcm_hw_constraint_list snd_pcm_known_rates = {