Skip to content

Commit 8055c0c

Browse files
jbrun3ttiwai
authored andcommitted
ASoC: spdif: extend supported rates to 768kHz
IEC958-3 defines sampling rate up to 768 kHz. Such rates maybe used with high bandwidth IEC958 links, such as eARC. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: David Rhodes <drhodes@opensource.cirrus.com> 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-13-8371948d3921@baylibre.com
1 parent 7bc09f7 commit 8055c0c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

sound/soc/codecs/spdif_receiver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ static const struct snd_soc_dapm_route dir_routes[] = {
2828
{ "Capture", NULL, "spdif-in" },
2929
};
3030

31-
#define STUB_RATES SNDRV_PCM_RATE_8000_192000
31+
#define STUB_RATES (SNDRV_PCM_RATE_8000_768000 | \
32+
SNDRV_PCM_RATE_128000)
3233
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
3334
SNDRV_PCM_FMTBIT_S20_3LE | \
3435
SNDRV_PCM_FMTBIT_S24_LE | \

sound/soc/codecs/spdif_transmitter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
#define DRV_NAME "spdif-dit"
2323

24-
#define STUB_RATES SNDRV_PCM_RATE_8000_192000
24+
#define STUB_RATES (SNDRV_PCM_RATE_8000_768000 | \
25+
SNDRV_PCM_RATE_128000)
2526
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
2627
SNDRV_PCM_FMTBIT_S20_3LE | \
2728
SNDRV_PCM_FMTBIT_S24_LE | \

0 commit comments

Comments
 (0)