projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e92f042
)
ASoC: codecs: pcm3168a: Allow for 24-bit in provider mode
author
Cezary Rojewski
<cezary.rojewski@intel.com>
Mon, 3 Feb 2025 14:10:43 +0000
(15:10 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 3 Feb 2025 14:04:54 +0000
(14:04 +0000)
As per codec device specification, 24-bit is allowed in provider mode.
Update the code to reflect that.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link:
https://patch.msgid.link/20250203141051.2361323-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3168a.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/pcm3168a.c
b/sound/soc/codecs/pcm3168a.c
index 43c0cb5e538e8530676429abc33217cd8781cd6b..df6836a652ef26e0846b88a6bafca0b8cd5546cc 100644
(file)
--- a/
sound/soc/codecs/pcm3168a.c
+++ b/
sound/soc/codecs/pcm3168a.c
@@
-493,9
+493,9
@@
static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
}
break;
case 24:
- if (
provider_mode ||
(format == SND_SOC_DAIFMT_DSP_A) ||
-
(format == SND_SOC_DAIFMT_DSP_B
)) {
- dev_err(component->dev, "24-bit slots not supported in
provider mode, or
consumer mode using DSP\n");
+ if (
!provider_mode && (
(format == SND_SOC_DAIFMT_DSP_A) ||
+
(format == SND_SOC_DAIFMT_DSP_B)
)) {
+ dev_err(component->dev, "24-bit slots not supported in consumer mode using DSP\n");
return -EINVAL;
}
break;