diff options
author | Naveen Manohar <naveen.m@intel.com> | 2020-06-25 14:26:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-06-26 16:10:59 +0100 |
commit | be82e88895d17c1e69f3506e133dd4a24af1e3d7 (patch) | |
tree | d1937ae2c8b0cd26c9e06eb9a3396e317ada8b8a /sound/soc/intel/boards/sof_maxim_common.h | |
parent | f6de798eca429881ac7938fc31d55b3739c6387f (diff) | |
download | kernel_replicant_linux-be82e88895d17c1e69f3506e133dd4a24af1e3d7.tar.gz kernel_replicant_linux-be82e88895d17c1e69f3506e133dd4a24af1e3d7.tar.bz2 kernel_replicant_linux-be82e88895d17c1e69f3506e133dd4a24af1e3d7.zip |
ASoC: Intel: sof_sdw: Add MAX98373 support
Add max98373-sdw helper function, which configures 2x MAX98373 codecs to
Link1. This patch shares code between the I2S and SoundWire modes of
MAX98373 and adds the trigger already added for I2S.
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Naveen Manohar <naveen.m@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20200625192620.4312-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/sof_maxim_common.h')
-rw-r--r-- | sound/soc/intel/boards/sof_maxim_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/sof_maxim_common.h b/sound/soc/intel/boards/sof_maxim_common.h index 785b34335368..5240b1c9d379 100644 --- a/sound/soc/intel/boards/sof_maxim_common.h +++ b/sound/soc/intel/boards/sof_maxim_common.h @@ -18,7 +18,10 @@ extern struct snd_soc_dai_link_component max_98373_components[2]; extern struct snd_soc_ops max_98373_ops; +extern const struct snd_soc_dapm_route max_98373_dapm_routes[]; int max98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd); void sof_max98373_codec_conf(struct snd_soc_card *card); +int max98373_trigger(struct snd_pcm_substream *substream, int cmd); + #endif /* __SOF_MAXIM_COMMON_H */ |