diff options
-rw-r--r-- | sound/soc/codecs/wm8741.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c index 2895c8d3b5e4..dd02ebf88015 100644 --- a/sound/soc/codecs/wm8741.c +++ b/sound/soc/codecs/wm8741.c | |||
@@ -44,7 +44,7 @@ struct wm8741_priv { | |||
44 | struct regmap *regmap; | 44 | struct regmap *regmap; |
45 | struct regulator_bulk_data supplies[WM8741_NUM_SUPPLIES]; | 45 | struct regulator_bulk_data supplies[WM8741_NUM_SUPPLIES]; |
46 | unsigned int sysclk; | 46 | unsigned int sysclk; |
47 | struct snd_pcm_hw_constraint_list *sysclk_constraints; | 47 | const struct snd_pcm_hw_constraint_list *sysclk_constraints; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static const struct reg_default wm8741_reg_defaults[] = { | 50 | static const struct reg_default wm8741_reg_defaults[] = { |
@@ -122,74 +122,74 @@ static struct { | |||
122 | { 6, 768 }, | 122 | { 6, 768 }, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | static unsigned int rates_11289[] = { | 125 | static const unsigned int rates_11289[] = { |
126 | 44100, 88235, | 126 | 44100, 88235, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static struct snd_pcm_hw_constraint_list constraints_11289 = { | 129 | static const struct snd_pcm_hw_constraint_list constraints_11289 = { |
130 | .count = ARRAY_SIZE(rates_11289), | 130 | .count = ARRAY_SIZE(rates_11289), |
131 | .list = rates_11289, | 131 | .list = rates_11289, |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static unsigned int rates_12288[] = { | 134 | static const unsigned int rates_12288[] = { |
135 | 32000, 48000, 96000, | 135 | 32000, 48000, 96000, |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static struct snd_pcm_hw_constraint_list constraints_12288 = { | 138 | static const struct snd_pcm_hw_constraint_list constraints_12288 = { |
139 | .count = ARRAY_SIZE(rates_12288), | 139 | .count = ARRAY_SIZE(rates_12288), |
140 | .list = rates_12288, | 140 | .list = rates_12288, |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static unsigned int rates_16384[] = { | 143 | static const unsigned int rates_16384[] = { |
144 | 32000, | 144 | 32000, |
145 | }; | 145 | }; |
146 | 146 | ||
147 | static struct snd_pcm_hw_constraint_list constraints_16384 = { | 147 | static const struct snd_pcm_hw_constraint_list constraints_16384 = { |
148 | .count = ARRAY_SIZE(rates_16384), | 148 | .count = ARRAY_SIZE(rates_16384), |
149 | .list = rates_16384, | 149 | .list = rates_16384, |
150 | }; | 150 | }; |
151 | 151 | ||
152 | static unsigned int rates_16934[] = { | 152 | static const unsigned int rates_16934[] = { |
153 | 44100, 88235, | 153 | 44100, 88235, |
154 | }; | 154 | }; |
155 | 155 | ||
156 | static struct snd_pcm_hw_constraint_list constraints_16934 = { | 156 | static const struct snd_pcm_hw_constraint_list constraints_16934 = { |
157 | .count = ARRAY_SIZE(rates_16934), | 157 | .count = ARRAY_SIZE(rates_16934), |
158 | .list = rates_16934, | 158 | .list = rates_16934, |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static unsigned int rates_18432[] = { | 161 | static const unsigned int rates_18432[] = { |
162 | 48000, 96000, | 162 | 48000, 96000, |
163 | }; | 163 | }; |
164 | 164 | ||
165 | static struct snd_pcm_hw_constraint_list constraints_18432 = { | 165 | static const struct snd_pcm_hw_constraint_list constraints_18432 = { |
166 | .count = ARRAY_SIZE(rates_18432), | 166 | .count = ARRAY_SIZE(rates_18432), |
167 | .list = rates_18432, | 167 | .list = rates_18432, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | static unsigned int rates_22579[] = { | 170 | static const unsigned int rates_22579[] = { |
171 | 44100, 88235, 1764000 | 171 | 44100, 88235, 1764000 |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static struct snd_pcm_hw_constraint_list constraints_22579 = { | 174 | static const struct snd_pcm_hw_constraint_list constraints_22579 = { |
175 | .count = ARRAY_SIZE(rates_22579), | 175 | .count = ARRAY_SIZE(rates_22579), |
176 | .list = rates_22579, | 176 | .list = rates_22579, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | static unsigned int rates_24576[] = { | 179 | static const unsigned int rates_24576[] = { |
180 | 32000, 48000, 96000, 192000 | 180 | 32000, 48000, 96000, 192000 |
181 | }; | 181 | }; |
182 | 182 | ||
183 | static struct snd_pcm_hw_constraint_list constraints_24576 = { | 183 | static const struct snd_pcm_hw_constraint_list constraints_24576 = { |
184 | .count = ARRAY_SIZE(rates_24576), | 184 | .count = ARRAY_SIZE(rates_24576), |
185 | .list = rates_24576, | 185 | .list = rates_24576, |
186 | }; | 186 | }; |
187 | 187 | ||
188 | static unsigned int rates_36864[] = { | 188 | static const unsigned int rates_36864[] = { |
189 | 48000, 96000, 19200 | 189 | 48000, 96000, 19200 |
190 | }; | 190 | }; |
191 | 191 | ||
192 | static struct snd_pcm_hw_constraint_list constraints_36864 = { | 192 | static const struct snd_pcm_hw_constraint_list constraints_36864 = { |
193 | .count = ARRAY_SIZE(rates_36864), | 193 | .count = ARRAY_SIZE(rates_36864), |
194 | .list = rates_36864, | 194 | .list = rates_36864, |
195 | }; | 195 | }; |