forked from Minki/linux
be82e88895
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>
28 lines
813 B
C
28 lines
813 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright(c) 2020 Intel Corporation.
|
|
*/
|
|
|
|
/*
|
|
* This file defines data structures used in Machine Driver for Intel
|
|
* platforms with Maxim Codecs.
|
|
*/
|
|
#ifndef __SOF_MAXIM_COMMON_H
|
|
#define __SOF_MAXIM_COMMON_H
|
|
|
|
#include <sound/soc.h>
|
|
|
|
#define MAX_98373_CODEC_DAI "max98373-aif1"
|
|
#define MAX_98373_DEV0_NAME "i2c-MX98373:00"
|
|
#define MAX_98373_DEV1_NAME "i2c-MX98373:01"
|
|
|
|
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 */
|