summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98373.c
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.c
parentd7ee0c722117a6a0830637a3408f2ce1b78afedd (diff)
downloadlinux-56a5b7910e965c6905d112ce94fd9a9f5561f326.tar.gz
linux-56a5b7910e965c6905d112ce94fd9a9f5561f326.tar.bz2
linux-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.c')
-rw-r--r--sound/soc/codecs/max98373.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c
index a8ed9f12682b..67b5faa64ec3 100644
--- a/sound/soc/codecs/max98373.c
+++ b/sound/soc/codecs/max98373.c
@@ -404,6 +404,20 @@ const struct snd_soc_component_driver soc_codec_dev_max98373 = {
};
EXPORT_SYMBOL_GPL(soc_codec_dev_max98373);
+const struct snd_soc_component_driver soc_codec_dev_max98373_sdw = {
+ .probe = NULL,
+ .controls = max98373_snd_controls,
+ .num_controls = ARRAY_SIZE(max98373_snd_controls),
+ .dapm_widgets = max98373_dapm_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(max98373_dapm_widgets),
+ .dapm_routes = max98373_audio_map,
+ .num_dapm_routes = ARRAY_SIZE(max98373_audio_map),
+ .use_pmdown_time = 1,
+ .endianness = 1,
+ .non_legacy_dai_naming = 1,
+};
+EXPORT_SYMBOL_GPL(soc_codec_dev_max98373_sdw);
+
void max98373_slot_config(struct device *dev,
struct max98373_priv *max98373)
{