summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5682s.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2023-01-31 02:00:16 +0000
committerMark Brown <broonie@kernel.org>2023-01-31 11:04:57 +0000
commit8ec352362848d8cc9500ccfb051810597c0abf8a (patch)
tree372dba638b1edceb7874956939a44b48cb65dae2 /sound/soc/codecs/rt5682s.c
parent812c2852c59f1f532ea9b53d9bbe86231dd83fea (diff)
downloadlinux-8ec352362848d8cc9500ccfb051810597c0abf8a.tar.gz
linux-8ec352362848d8cc9500ccfb051810597c0abf8a.tar.bz2
linux-8ec352362848d8cc9500ccfb051810597c0abf8a.zip
ASoC: rt: use helper function
Current ASoC has many helper function. This patch use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87zg9zea4w.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682s.c')
-rw-r--r--sound/soc/codecs/rt5682s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c
index f5e5dbc3b0f0..77dc62219bb8 100644
--- a/sound/soc/codecs/rt5682s.c
+++ b/sound/soc/codecs/rt5682s.c
@@ -834,8 +834,8 @@ static void rt5682s_jack_detect_handler(struct work_struct *work)
struct snd_soc_dapm_context *dapm;
int val, btn_type;
- if (!rt5682s->component || !rt5682s->component->card ||
- !rt5682s->component->card->instantiated) {
+ if (!rt5682s->component ||
+ !snd_soc_card_is_instantiated(rt5682s->component->card)) {
/* card not yet ready, try later */
mod_delayed_work(system_power_efficient_wq,
&rt5682s->jack_detect_work, msecs_to_jiffies(15));