Skip to content

Commit dea4138

Browse files
udaymbbroonie
authored andcommitted
ASoC: Intel: sof_sdw: Add support for MAX98363 codec
Add support for MAX98363 soundwire codec. Update build configuration to include this codec. Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Yong Zhi <yong.zhi@intel.com> Signed-off-by: Uday M Bhat <uday.m.bhat@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20230602202225.249209-27-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fcb3f0f commit dea4138

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

sound/soc/intel/boards/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ config SND_SOC_INTEL_SOUNDWIRE_SOF_MACH
662662
depends on MFD_INTEL_LPSS || COMPILE_TEST
663663
depends on SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES || COMPILE_TEST
664664
depends on SOUNDWIRE
665+
select SND_SOC_MAX98363
665666
select SND_SOC_MAX98373_I2C
666667
select SND_SOC_MAX98373_SDW
667668
select SND_SOC_RT700_SDW

sound/soc/intel/boards/sof_sdw.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,19 @@ static struct sof_sdw_codec_info codec_info_list[] = {
810810
},
811811
.dai_num = 1,
812812
},
813+
{
814+
.part_id = 0x8363,
815+
.dais = {
816+
{
817+
.direction = {true, false},
818+
.dai_name = "max98363-aif1",
819+
.dai_type = SOF_SDW_DAI_TYPE_AMP,
820+
.dailink = {SDW_AMP_OUT_DAI_ID, SDW_UNUSED_DAI_ID},
821+
.init = sof_sdw_maxim_init,
822+
},
823+
},
824+
.dai_num = 1,
825+
},
813826
{
814827
.part_id = 0x5682,
815828
.dais = {

sound/soc/intel/boards/sof_sdw_maxim.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "sof_maxim_common.h"
1515

1616
static int maxim_part_id;
17+
#define SOF_SDW_PART_ID_MAX98363 0x8363
1718
#define SOF_SDW_PART_ID_MAX98373 0x8373
1819

1920
static const struct snd_soc_dapm_widget maxim_widgets[] = {
@@ -148,6 +149,11 @@ int sof_sdw_maxim_init(struct snd_soc_card *card,
148149

149150
maxim_part_id = info->part_id;
150151
switch (maxim_part_id) {
152+
case SOF_SDW_PART_ID_MAX98363:
153+
/* Default ops are set in function init_dai_link.
154+
* called as part of function create_sdw_dailink
155+
*/
156+
break;
151157
case SOF_SDW_PART_ID_MAX98373:
152158
info->codec_card_late_probe = mx8373_sdw_late_probe;
153159
dai_links->ops = &max_98373_sdw_ops;

0 commit comments

Comments
 (0)