aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-11-26 14:57:51 -0500
committerMark Brown <broonie@kernel.org>2014-11-27 06:11:50 -0500
commit6200b75a8bbc16e434bf3d8ca54538ea678ccbd7 (patch)
treeaa649432a2033e979486e8bf757c66c2f684f49e
parent002fe7c831404d179266cfe0dad00a67333256f1 (diff)
ASoC: cq93vc: Cleanup manual bias level transitions
Remove the manual transition back to SND_SOC_BIAS_STANDBY in resume. This is already be automatically handled by the ASoC core. Since the ASoC core now takes care of setting the bias level to SND_SOC_BIAS_OFF when removing the CODEC there is no need to do it manually anymore either. The manual transition to SND_SOC_BIAS_STANDBY at the end of CODEC probe() can also be removed as the core will automatically do this after the CODEC has been probed. While we are at it also remove the unused codec field from the cq93vc struct so the whole probe function can be removed. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/cq93vc.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c
index 036a877746b9..8d638e8aa8eb 100644
--- a/sound/soc/codecs/cq93vc.c
+++ b/sound/soc/codecs/cq93vc.c
@@ -122,28 +122,6 @@ static struct snd_soc_dai_driver cq93vc_dai = {
122 .ops = &cq93vc_dai_ops, 122 .ops = &cq93vc_dai_ops,
123}; 123};
124 124
125static int cq93vc_resume(struct snd_soc_codec *codec)
126{
127 cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
128
129 return 0;
130}
131
132static int cq93vc_probe(struct snd_soc_codec *codec)
133{
134 /* Off, with power on */
135 cq93vc_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
136
137 return 0;
138}
139
140static int cq93vc_remove(struct snd_soc_codec *codec)
141{
142 cq93vc_set_bias_level(codec, SND_SOC_BIAS_OFF);
143
144 return 0;
145}
146
147static struct regmap *cq93vc_get_regmap(struct device *dev) 125static struct regmap *cq93vc_get_regmap(struct device *dev)
148{ 126{
149 struct davinci_vc *davinci_vc = dev->platform_data; 127 struct davinci_vc *davinci_vc = dev->platform_data;
@@ -153,9 +131,6 @@ static struct regmap *cq93vc_get_regmap(struct device *dev)
153 131
154static struct snd_soc_codec_driver soc_codec_dev_cq93vc = { 132static struct snd_soc_codec_driver soc_codec_dev_cq93vc = {
155 .set_bias_level = cq93vc_set_bias_level, 133 .set_bias_level = cq93vc_set_bias_level,
156 .probe = cq93vc_probe,
157 .remove = cq93vc_remove,
158 .resume = cq93vc_resume,
159 .get_regmap = cq93vc_get_regmap, 134 .get_regmap = cq93vc_get_regmap,
160 .controls = cq93vc_snd_controls, 135 .controls = cq93vc_snd_controls,
161 .num_controls = ARRAY_SIZE(cq93vc_snd_controls), 136 .num_controls = ARRAY_SIZE(cq93vc_snd_controls),