projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc71a72
)
ASoC: tas2770: Fix setting of high sample rates
author
Martin Povišer
<povik@protonmail.com>
Mon, 6 Dec 2021 22:45:43 +0000
(22:45 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:29:01 +0000
(12:29 +0100)
commit
80d5be1a057e05f01d66e986cfd34d71845e5190
upstream.
Although the codec advertises support for 176.4 and 192 ksps, without
this fix setting those sample rates fails with EINVAL at hw_params time.
Signed-off-by: Martin Povišer <povik@protonmail.com>
Link:
https://lore.kernel.org/r/20211206224529.74656-1-povik@protonmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/tas2770.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tas2770.c
b/sound/soc/codecs/tas2770.c
index 172e79cbe0daf5e27df04a0200f73aa420890837..6549e7fef3e323ed31cab060f6f6d2b5212220b3 100644
(file)
--- a/
sound/soc/codecs/tas2770.c
+++ b/
sound/soc/codecs/tas2770.c
@@
-291,11
+291,11
@@
static int tas2770_set_samplerate(struct tas2770_priv *tas2770, int samplerate)
ramp_rate_val = TAS2770_TDM_CFG_REG0_SMP_44_1KHZ |
TAS2770_TDM_CFG_REG0_31_88_2_96KHZ;
break;
- case 19200:
+ case 19200
0
:
ramp_rate_val = TAS2770_TDM_CFG_REG0_SMP_48KHZ |
TAS2770_TDM_CFG_REG0_31_176_4_192KHZ;
break;
- case 17640:
+ case 17640
0
:
ramp_rate_val = TAS2770_TDM_CFG_REG0_SMP_44_1KHZ |
TAS2770_TDM_CFG_REG0_31_176_4_192KHZ;
break;