Skip to contentSkip to conversation

Add SDCA support for the cs42l49

PATCH In review Charles Keepax 2 participants 5 messages Mar 13 – Mar 16

Subsystems (3)
lore
Share & tools
lore

Charles Keepax

author maintainer
#0 lore raw

cover Add SDCA support for the cs42l49

Add support to the class driver (just adding the driver match) and to the Intel machine driver for cs42l49. This part is very similar to cs42l45 so for now it will just be supported using the same UCM, hence reuses the name prefix in the machine driver.

Charles Keepax (2):
ASoC: SDCA: Add support for the Cirrus Logic cs42l49
ASoC: sdw_utils: Add codec_info for cs42l49

 sound/soc/sdca/sdca_class.c         |  1 +
 sound/soc/sdw_utils/soc_sdw_utils.c | 36 +++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
Signature · 1 line
2.47.3
author maintainer
#1 lore raw

PATCH 1/2 ASoC: SDCA: Add support for the Cirrus Logic cs42l49

The cs42l49 is an audio codec with integrated MIPI SoundWire interface (Version 1.2.1 compliant) with SDCA v1.0 support, I2C, and I2S/TDM interfaces designed for portable applications.

---
 sound/soc/sdca/sdca_class.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/sdca/sdca_class.c +1 -0
index 55c33ff63ca21..7af4e5d1b347f 100644
@@ -317,6 +317,7 @@ static const struct dev_pm_ops class_pm_ops = {
 
 static const struct sdw_device_id class_sdw_id[] = {
 	SDW_SLAVE_ENTRY(0x01FA, 0x4245, 0),
+	SDW_SLAVE_ENTRY(0x01FA, 0x4249, 0),
 	SDW_SLAVE_ENTRY(0x01FA, 0x4747, 0),
 	{}
 };
Signature · 1 line
2.47.3
author maintainer
#2 lore raw

PATCH 2/2 ASoC: sdw_utils: Add codec_info for cs42l49

In reply to Charles Keepax

The cs42l49 is an audio codec with integrated MIPI SoundWire interface (Version 1.2.1 compliant) with SDCA v1.0 support, I2C, and I2S/TDM interfaces designed for portable applications.

---
 sound/soc/sdw_utils/soc_sdw_utils.c | 36 +++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
sound/soc/sdw_utils/soc_sdw_utils.c +36 -0
index becc223282300..d1e98f95735b2 100644
@@ -813,6 +813,42 @@ struct asoc_sdw_codec_info codec_info_list[] = {
 		},
 		.aux_num = 1,
 	},
+	{
+		.part_id = 0x4249,
+		.name_prefix = "cs42l45", /* Use same user-space as cs42l45 */
+		.dais = {
+			{
+				.direction = {true, false},
+				.codec_name = "snd_soc_sdca.UAJ",
+				.dai_name = "IT 41",
+				.dai_type = SOC_SDW_DAI_TYPE_JACK,
+				.dailink = {SOC_SDW_JACK_OUT_DAI_ID, SOC_SDW_UNUSED_DAI_ID},
+				.rtd_init = asoc_sdw_cs42l45_hs_rtd_init,
+			},
+			{
+				.direction = {false, true},
+				.codec_name = "snd_soc_sdca.SmartMic",
+				.dai_name = "OT 113",
+				.dai_type = SOC_SDW_DAI_TYPE_MIC,
+				.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
+				.rtd_init = asoc_sdw_cs42l45_dmic_rtd_init,
+			},
+			{
+				.direction = {false, true},
+				.codec_name = "snd_soc_sdca.UAJ",
+				.dai_name = "OT 36",
+				.dai_type = SOC_SDW_DAI_TYPE_JACK,
+				.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_JACK_IN_DAI_ID},
+			},
+		},
+		.dai_num = 3,
+		.auxs = {
+			{
+				.codec_name = "snd_soc_sdca.HID",
+			},
+		},
+		.aux_num = 1,
+	},
 	{
 		.part_id = 0x4747,
 		.name_prefix = "cs47l47",
Signature · 1 line
2.47.3
maintainer
#3 lore raw
In reply to Charles Keepax
Quoted 8 lines · Charles Keepax

Add SDCA support for the cs42l49

Add support to the class driver (just adding the driver match) and to the Intel machine driver for cs42l49. This part is very similar to cs42l45 so for now it will just be supported using the same UCM, hence reuses the name prefix in the machine driver.

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.1

Thanks!

[1/2] ASoC: SDCA: Add support for the Cirrus Logic cs42l49

      https://git.kernel.org/broonie/sound/c/7699b12a32b9
[2/2] ASoC: sdw_utils: Add codec_info for cs42l49
      https://git.kernel.org/broonie/sound/c/5e2f19ce90d5

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

maintainer
#4 lore raw
In reply to Charles Keepax
Quoted 10 lines · Charles Keepax

Add support to the class driver (just adding the driver match) and to the Intel machine driver for cs42l49. This part is very similar to cs42l45 so for now it will just be supported using the same UCM, hence reuses the name prefix in the machine driver.

Charles Keepax (2):
ASoC: SDCA: Add support for the Cirrus Logic cs42l49
ASoC: sdw_utils: Add codec_info for cs42l49

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: SDCA: Add support for the Cirrus Logic cs42l49

      https://git.kernel.org/broonie/misc/c/7699b12a32b9
[2/2] ASoC: sdw_utils: Add codec_info for cs42l49
      https://git.kernel.org/broonie/misc/c/5e2f19ce90d5

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark