[alsa-devel] [PATCH 041/127] ASoC: use component probe/remove on alc5623
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Tue Aug 9 07:12:24 CEST 2016
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
codec driver and component driver has duplicated .probe/.remove
functions, and codec side is just relayed it. This was quick-hack,
but no longer needed.
This patch uses component .probe/.remove
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/codecs/alc5623.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c
index d2e3a3e..6b06c38 100644
--- a/sound/soc/codecs/alc5623.c
+++ b/sound/soc/codecs/alc5623.c
@@ -889,8 +889,9 @@ static int alc5623_resume(struct snd_soc_codec *codec)
return 0;
}
-static int alc5623_probe(struct snd_soc_codec *codec)
+static int alc5623_probe(struct snd_soc_component *component)
{
+ struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec);
struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
@@ -952,11 +953,13 @@ static int alc5623_probe(struct snd_soc_codec *codec)
}
static struct snd_soc_codec_driver soc_codec_device_alc5623 = {
- .probe = alc5623_probe,
.suspend = alc5623_suspend,
.resume = alc5623_resume,
.set_bias_level = alc5623_set_bias_level,
.suspend_bias_off = true,
+ .component_driver = {
+ .probe = alc5623_probe,
+ },
};
static const struct regmap_config alc5623_regmap = {
--
1.9.1
More information about the Alsa-devel
mailing list