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:
657efd9
)
ASoC: nau8825: Declare 2 channels for DAI of capture stream
author
David Lin
<CTLIN0@nuvoton.com>
Fri, 8 Jul 2022 05:46:48 +0000
(13:46 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 8 Jul 2022 10:52:55 +0000
(11:52 +0100)
The patch is to make driver with flexibility for more platforms support even if
the internal design is just one ADC. Besides, many I2S controllers only support
2 channels.
Signed-off-by: David Lin <CTLIN0@nuvoton.com>
Link:
https://lore.kernel.org/r/20220708054647.540621-1-CTLIN0@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8825.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/nau8825.c
b/sound/soc/codecs/nau8825.c
index 907ec88c759a874459163fa553265594ba33885f..54ef7b0fa87860ec7d6199f884dd7a5aa255492c 100644
(file)
--- a/
sound/soc/codecs/nau8825.c
+++ b/
sound/soc/codecs/nau8825.c
@@
-1440,7
+1440,7
@@
static struct snd_soc_dai_driver nau8825_dai = {
.capture = {
.stream_name = "Capture",
.channels_min = 1,
- .channels_max =
1,
+ .channels_max =
2, /* Only 1 channel of data */
.rates = NAU8825_RATES,
.formats = NAU8825_FORMATS,
},