aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98373.h
diff options
context:
space:
mode:
authorRyan Lee <ryans.lee@maximintegrated.com>2020-07-08 15:32:13 -0500
committerMark Brown <broonie@kernel.org>2020-07-09 21:01:26 +0100
commit56a5b7910e965c6905d112ce94fd9a9f5561f326 (patch)
treeaa7a581e16ee9252026edfd80a2cd9531dff57f0 /sound/soc/codecs/max98373.h
parentASoC: codecs: max98373: split I2C and common parts (diff)
downloadlinux-dev-56a5b7910e965c6905d112ce94fd9a9f5561f326.tar.xz
linux-dev-56a5b7910e965c6905d112ce94fd9a9f5561f326.zip
ASoC: codecs: max98373: add SoundWire support
Add SoundWire specific parts and extend common ones already split from I2C. Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com> Signed-off-by: Naveen Manohar <naveen.m@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200708203215.231776-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98373.h')
-rw-r--r--sound/soc/codecs/max98373.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98373.h b/sound/soc/codecs/max98373.h
index 30e02e7afb6d..4ab29b9d51c7 100644
--- a/sound/soc/codecs/max98373.h
+++ b/sound/soc/codecs/max98373.h
@@ -212,9 +212,16 @@ struct max98373_priv {
bool interleave_mode;
unsigned int ch_size;
bool tdm_mode;
+ /* variables to support soundwire */
+ struct sdw_slave *slave;
+ bool hw_init;
+ bool pm_init_once;
+ int slot;
+ unsigned int rx_mask;
};
extern const struct snd_soc_component_driver soc_codec_dev_max98373;
+extern const struct snd_soc_component_driver soc_codec_dev_max98373_sdw;
void max98373_reset(struct max98373_priv *max98373, struct device *dev);
void max98373_slot_config(struct device *dev,