summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5651.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-02-25 11:46:46 +0100
committerMark Brown <broonie@kernel.org>2018-03-01 18:32:25 +0100
commit5f293d4354f8aae3c8617f83a3cbd30047676b4d (patch)
treea4bac43171d79e9f99e358509535112dc47dce4d /sound/soc/codecs/rt5651.h
parentASoC: rt5651: Use standard component set_jack callback (diff)
downloadlinux-5f293d4354f8aae3c8617f83a3cbd30047676b4d.tar.xz
linux-5f293d4354f8aae3c8617f83a3cbd30047676b4d.zip
ASoC: rt5651: Add rt5651_apply_properties() helper function
Move the applying of the differential input and dmic properties to a new rt5651_apply_properties() helper function. This new function can be called by platform code which attaches properties after probe() has run to apply these new properties. Note this also moves the time when we apply these properties for DT platforms from i2c-probe to snd-component-probe time, this should not result in any functional difference. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5651.h')
-rw-r--r--sound/soc/codecs/rt5651.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5651.h b/sound/soc/codecs/rt5651.h
index f3158488fc89..7d9d5fa09d6f 100644
--- a/sound/soc/codecs/rt5651.h
+++ b/sound/soc/codecs/rt5651.h
@@ -2080,4 +2080,6 @@ struct rt5651_priv {
bool hp_mute;
};
+void rt5651_apply_properties(struct snd_soc_component *component);
+
#endif /* __RT5651_H__ */