File tree Expand file tree Collapse file tree 6 files changed +996
-1
lines changed
Documentation/devicetree/bindings/sound
drivers/firmware/cirrus/test Expand file tree Collapse file tree 6 files changed +996
-1
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
+ %YAML 1.2
3
+ ---
4
+ $id : http://devicetree.org/schemas/sound/everest,es8375.yaml#
5
+ $schema : http://devicetree.org/meta-schemas/core.yaml#
6
+
7
+ title : Everest ES8375 audio CODEC
8
+
9
+ maintainers :
10
+ - Michael Zhang <zhangyi@everest-semi.com>
11
+
12
+ allOf :
13
+ - $ref : dai-common.yaml#
14
+
15
+ properties :
16
+ compatible :
17
+ const : everest,es8375
18
+
19
+ reg :
20
+ maxItems : 1
21
+
22
+ clocks :
23
+ items :
24
+ - description : clock for master clock (MCLK)
25
+
26
+ clock-names :
27
+ items :
28
+ - const : mclk
29
+
30
+ vdda-supply :
31
+ description :
32
+ Analogue power supply.
33
+
34
+ vddd-supply :
35
+ description :
36
+ Interface power supply.
37
+
38
+ everest,mclk-src :
39
+ $ref : /schemas/types.yaml#/definitions/uint8
40
+ description : |
41
+ Represents the MCLK/SCLK pair pins used as the internal clock.
42
+ 0 represents selecting MCLK.
43
+ 1 represents selecting SCLK.
44
+ enum : [0, 1]
45
+ default : 0
46
+
47
+ " #sound-dai-cells " :
48
+ const : 0
49
+
50
+ required :
51
+ - compatible
52
+ - reg
53
+ - " #sound-dai-cells"
54
+ - vdda-supply
55
+ - vddd-supply
56
+
57
+ additionalProperties : false
58
+
59
+ examples :
60
+ - |
61
+ i2c {
62
+ #address-cells = <1>;
63
+ #size-cells = <0>;
64
+ es8375: codec@18 {
65
+ compatible = "everest,es8375";
66
+ reg = <0x18>;
67
+ vdda-supply = <&vdd3v3>;
68
+ vddd-supply = <&vdd3v3>;
69
+ #sound-dai-cells = <0>;
70
+ };
71
+ };
Original file line number Diff line number Diff line change @@ -96,10 +96,11 @@ static void cs_dsp_mock_bin_add_name_or_info(struct cs_dsp_mock_bin_builder *bui
96
96
97
97
if (info_len % 4 ) {
98
98
/* Create a padded string with length a multiple of 4 */
99
+ size_t copy_len = info_len ;
99
100
info_len = round_up (info_len , 4 );
100
101
tmp = kunit_kzalloc (builder -> test_priv -> test , info_len , GFP_KERNEL );
101
102
KUNIT_ASSERT_NOT_ERR_OR_NULL (builder -> test_priv -> test , tmp );
102
- memcpy (tmp , info , info_len );
103
+ memcpy (tmp , info , copy_len );
103
104
info = tmp ;
104
105
}
105
106
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ config SND_SOC_ALL_CODECS
120
120
imply SND_SOC_ES8326
121
121
imply SND_SOC_ES8328_SPI
122
122
imply SND_SOC_ES8328_I2C
123
+ imply SND_SOC_ES8375
123
124
imply SND_SOC_ES8389
124
125
imply SND_SOC_ES7134
125
126
imply SND_SOC_ES7241
@@ -1212,6 +1213,10 @@ config SND_SOC_ES8328_SPI
1212
1213
depends on SPI_MASTER
1213
1214
select SND_SOC_ES8328
1214
1215
1216
+ config SND_SOC_ES8375
1217
+ tristate "Everest Semi ES8375 CODEC"
1218
+ depends on I2C
1219
+
1215
1220
config SND_SOC_ES8389
1216
1221
tristate "Everest Semi ES8389 CODEC"
1217
1222
depends on I2C
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ snd-soc-es8326-y := es8326.o
134
134
snd-soc-es8328-y := es8328.o
135
135
snd-soc-es8328-i2c-y := es8328-i2c.o
136
136
snd-soc-es8328-spi-y := es8328-spi.o
137
+ snd-soc-es8375-y := es8375.o
137
138
snd-soc-es8389-y := es8389.o
138
139
snd-soc-framer-y := framer-codec.o
139
140
snd-soc-gtm601-y := gtm601.o
@@ -557,6 +558,7 @@ obj-$(CONFIG_SND_SOC_ES8326) += snd-soc-es8326.o
557
558
obj-$(CONFIG_SND_SOC_ES8328) += snd-soc-es8328.o
558
559
obj-$(CONFIG_SND_SOC_ES8328_I2C)+ = snd-soc-es8328-i2c.o
559
560
obj-$(CONFIG_SND_SOC_ES8328_SPI)+ = snd-soc-es8328-spi.o
561
+ obj-$(CONFIG_SND_SOC_ES8375) += snd-soc-es8375.o
560
562
obj-$(CONFIG_SND_SOC_ES8389) += snd-soc-es8389.o
561
563
obj-$(CONFIG_SND_SOC_FRAMER) += snd-soc-framer.o
562
564
obj-$(CONFIG_SND_SOC_GTM601) += snd-soc-gtm601.o
You can’t perform that action at this time.
0 commit comments