diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-31 08:46:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-24 14:40:09 -0400 |
commit | 6f88063c1474b8cdd9254d3934047b6087222145 (patch) | |
tree | bf57ad0da81bd1df1129ea7b9558676a72ad07d7 /sound/soc/codecs/cq93vc.c | |
parent | 8ecb5344fd6409c500c9d5757c3a7130d3d7db5b (diff) |
ASoC: cq93vc: Use table based control registration
Saves a little code.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/cq93vc.c')
-rw-r--r-- | sound/soc/codecs/cq93vc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c index e2c4c0a896e2..e538f4eca980 100644 --- a/sound/soc/codecs/cq93vc.c +++ b/sound/soc/codecs/cq93vc.c | |||
@@ -156,10 +156,6 @@ static int cq93vc_probe(struct snd_soc_codec *codec) | |||
156 | davinci_vc->cq93vc.codec = codec; | 156 | davinci_vc->cq93vc.codec = codec; |
157 | codec->control_data = davinci_vc; | 157 | codec->control_data = davinci_vc; |
158 | 158 | ||
159 | /* Set controls */ | ||
160 | snd_soc_add_codec_controls(codec, cq93vc_snd_controls, | ||
161 | ARRAY_SIZE(cq93vc_snd_controls)); | ||
162 | |||
163 | /* Off, with power on */ | 159 | /* Off, with power on */ |
164 | cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 160 | cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
165 | 161 | ||
@@ -180,6 +176,8 @@ static struct snd_soc_codec_driver soc_codec_dev_cq93vc = { | |||
180 | .probe = cq93vc_probe, | 176 | .probe = cq93vc_probe, |
181 | .remove = cq93vc_remove, | 177 | .remove = cq93vc_remove, |
182 | .resume = cq93vc_resume, | 178 | .resume = cq93vc_resume, |
179 | .controls = cq93vc_snd_controls, | ||
180 | .num_controls = ARRAY_SIZE(cq93vc_snd_controls), | ||
183 | }; | 181 | }; |
184 | 182 | ||
185 | static int cq93vc_platform_probe(struct platform_device *pdev) | 183 | static int cq93vc_platform_probe(struct platform_device *pdev) |