Merge series "ASoC: codecs: add MAX98373 Soundwire driver" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
V2 with a number of cleanups:
split between I2C and SoundWire modes, as done for rt5682, and updated
Kconfigs.
removed useless initializations common to both modes
removed idle_bias on
fixed register classified as volatile in error
fixed SPDX comments
Pierre-Louis Bossart (2):
ASoC: codecs: max98373: split I2C and common parts
ASoC: Intel: sof-sdw: add MAX98373 I2C dependencies
Ryan Lee (2):
ASoC: codecs: max98373: Removed superfluous volume control from chip
default
ASoC: codecs: max98373: add SoundWire support
randerwang (2):
ASoc: codecs: max98373: remove Idle_bias_on to let codec suspend
ASoC: Intel: sdw_max98373: add card_late_probe support
sound/soc/codecs/Kconfig | 20 +-
sound/soc/codecs/Makefile | 4 +
sound/soc/codecs/max98373-i2c.c | 612 +++++++++++++++
sound/soc/codecs/max98373-sdw.c | 887 ++++++++++++++++++++++
sound/soc/codecs/max98373-sdw.h | 72 ++
sound/soc/codecs/max98373.c | 619 +--------------
sound/soc/codecs/max98373.h | 17 +-
sound/soc/intel/boards/Kconfig | 7 +-
sound/soc/intel/boards/sof_sdw.c | 19 +-
sound/soc/intel/boards/sof_sdw_common.h | 6 +
sound/soc/intel/boards/sof_sdw_max98373.c | 12 +
11 files changed, 1668 insertions(+), 607 deletions(-)
create mode 100644 sound/soc/codecs/max98373-i2c.c
create mode 100644 sound/soc/codecs/max98373-sdw.c
create mode 100644 sound/soc/codecs/max98373-sdw.h
base-commit: a5911ac579
--
2.25.1
This commit is contained in:
commit
5f886d7d2c
@ -779,13 +779,6 @@ static int max98373_probe(struct snd_soc_component *component)
|
||||
regmap_write(max98373->regmap,
|
||||
MAX98373_R202A_PCM_TO_SPK_MONO_MIX_2,
|
||||
0x1);
|
||||
/* Set inital volume (0dB) */
|
||||
regmap_write(max98373->regmap,
|
||||
MAX98373_R203D_AMP_DIG_VOL_CTRL,
|
||||
0x00);
|
||||
regmap_write(max98373->regmap,
|
||||
MAX98373_R203E_AMP_PATH_GAIN,
|
||||
0x00);
|
||||
/* Enable DC blocker */
|
||||
regmap_write(max98373->regmap,
|
||||
MAX98373_R203F_AMP_DSP_CFG,
|
||||
@ -869,7 +862,6 @@ static const struct snd_soc_component_driver soc_codec_dev_max98373 = {
|
||||
.num_dapm_widgets = ARRAY_SIZE(max98373_dapm_widgets),
|
||||
.dapm_routes = max98373_audio_map,
|
||||
.num_dapm_routes = ARRAY_SIZE(max98373_audio_map),
|
||||
.idle_bias_on = 1,
|
||||
.use_pmdown_time = 1,
|
||||
.endianness = 1,
|
||||
.non_legacy_dai_naming = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user