Skip to contentSkip to conversation

ASoC: Intel: Add support for KBL

PATCH In review Vinod Koul 2 participants 9 messages Jul 11, 2016

Subsystems (4)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

cover ASoC: Intel: Add support for KBL

Kabylake is next generation Intel SoC which also sports a DSP. This controller is quite similar to Skylake.

This patch series add KBL IDs to SKL driver, hdmi driver, sets combo jack for rt286 codec and finally adds entry to skl machine driver

Shreyas NC (1):
ASoC: hdac_hdmi: Add device id for Kabylake

Vinod Koul (3):
ASoC: Intel: add kablake device IDs
ASoC: rt286: set combo jack for Kabylake
ASoC: Intel: board: add kabylake machine id

 sound/soc/codecs/hdac_hdmi.c           | 1 +
 sound/soc/codecs/rt286.c               | 7 +++++++
 sound/soc/intel/boards/skl_rt286.c     | 9 +++++++++
 sound/soc/intel/skylake/skl-messages.c | 6 ++++++
 sound/soc/intel/skylake/skl.c          | 8 ++++++++
 5 files changed, 31 insertions(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/4 ASoC: Intel: add kablake device IDs

Kabylake is next generation Intel platform which has similar audio controller to Skylake, so add the ID and driver data in SKL driver.

---
 sound/soc/intel/skylake/skl-messages.c | 6 ++++++
 sound/soc/intel/skylake/skl.c          | 8 ++++++++
 2 files changed, 14 insertions(+)
sound/soc/intel/skylake/skl-messages.c +6 -0
index 6902020df946..44ab595ce21a 100644
@@ -206,6 +206,12 @@ static const struct skl_dsp_ops dsp_ops[] = {
 		.cleanup = skl_sst_dsp_cleanup
 	},
 	{
+		.id = 0x9d71,
+		.loader_ops = skl_get_loader_ops,
+		.init = skl_sst_dsp_init,
+		.cleanup = skl_sst_dsp_cleanup
+	},
+	{
 		.id = 0x5a98,
 		.loader_ops = bxt_get_loader_ops,
 		.init = bxt_sst_dsp_init,
sound/soc/intel/skylake/skl.c +8 -0
index d5d7c53e07bc..4e30effc5469 100644
@@ -813,6 +813,11 @@ static struct sst_acpi_mach sst_bxtp_devdata[] = {
 	{ "DLGS7219", "bxt_da7219_max98357a_i2s", "intel/dsp_fw_bxtn.bin", NULL, NULL, NULL },
 };
 
+static struct sst_acpi_mach sst_kbl_devdata[] = {
+	{ "INT343A", "kbl_alc286s_i2s", "intel/dsp_fw_kbl.bin", NULL, NULL, NULL },
+	{}
+};
+
 /* PCI IDs */
 static const struct pci_device_id skl_ids[] = {
 	/* Sunrise Point-LP */
@@ -821,6 +826,9 @@ static const struct pci_device_id skl_ids[] = {
 	/* BXT-P */
 	{ PCI_DEVICE(0x8086, 0x5a98),
 		.driver_data = (unsigned long)&sst_bxtp_devdata},
+	/* KBL */
+	{ PCI_DEVICE(0x8086, 0x9D71),
+		.driver_data = (unsigned long)&sst_kbl_devdata},
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, skl_ids);
Signature · 1 line
1.9.1
maintainer
#2 lore raw

Applied "ASoC: Intel: add kablake device IDs" to the asoc tree

The patch

ASoC: Intel: add kablake device IDs

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From 451dfb5f82c7ed5f691be5f6409637e03d5f9c65 Mon Sep 17 00:00:00 2001

From: Vinod Koul <[email protected]>
Date: Mon, 11 Jul 2016 22:02:08 +0530
Subject: [PATCH] ASoC: Intel: add kablake device IDs

Kabylake is next generation Intel platform which has similar audio controller to Skylake, so add the ID and driver data in SKL driver.

---
 sound/soc/intel/skylake/skl-messages.c | 6 ++++++
 sound/soc/intel/skylake/skl.c          | 8 ++++++++
 2 files changed, 14 insertions(+)
sound/soc/intel/skylake/skl-messages.c +6 -0
index 6902020df946..44ab595ce21a 100644
@@ -206,6 +206,12 @@ static const struct skl_dsp_ops dsp_ops[] = {
 		.cleanup = skl_sst_dsp_cleanup
 	},
 	{
+		.id = 0x9d71,
+		.loader_ops = skl_get_loader_ops,
+		.init = skl_sst_dsp_init,
+		.cleanup = skl_sst_dsp_cleanup
+	},
+	{
 		.id = 0x5a98,
 		.loader_ops = bxt_get_loader_ops,
 		.init = bxt_sst_dsp_init,
sound/soc/intel/skylake/skl.c +8 -0
index d5d7c53e07bc..4e30effc5469 100644
@@ -813,6 +813,11 @@ static struct sst_acpi_mach sst_bxtp_devdata[] = {
 	{ "DLGS7219", "bxt_da7219_max98357a_i2s", "intel/dsp_fw_bxtn.bin", NULL, NULL, NULL },
 };
 
+static struct sst_acpi_mach sst_kbl_devdata[] = {
+	{ "INT343A", "kbl_alc286s_i2s", "intel/dsp_fw_kbl.bin", NULL, NULL, NULL },
+	{}
+};
+
 /* PCI IDs */
 static const struct pci_device_id skl_ids[] = {
 	/* Sunrise Point-LP */
@@ -821,6 +826,9 @@ static const struct pci_device_id skl_ids[] = {
 	/* BXT-P */
 	{ PCI_DEVICE(0x8086, 0x5a98),
 		.driver_data = (unsigned long)&sst_bxtp_devdata},
+	/* KBL */
+	{ PCI_DEVICE(0x8086, 0x9D71),
+		.driver_data = (unsigned long)&sst_kbl_devdata},
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, skl_ids);
Signature · 1 line
2.8.1
author
#3 lore raw

PATCH 2/4 ASoC: hdac_hdmi: Add device id for Kabylake

In reply to Vinod Koul

From: Shreyas NC <[email protected]>

Kabylake platform is similar to Skylake. So, add the device id.

---
 sound/soc/codecs/hdac_hdmi.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/hdac_hdmi.c +1 -0
index 62d21812b9b8..a38e8f56003d 100644
@@ -1798,6 +1798,7 @@ static const struct dev_pm_ops hdac_hdmi_pm = {
 static const struct hda_device_id hdmi_list[] = {
 	HDA_CODEC_EXT_ENTRY(0x80862809, 0x100000, "Skylake HDMI", 0),
 	HDA_CODEC_EXT_ENTRY(0x8086280a, 0x100000, "Broxton HDMI", 0),
+	HDA_CODEC_EXT_ENTRY(0x8086280b, 0x100000, "Kabylake HDMI", 0),
 	{}
 };
 
Signature · 1 line
1.9.1
maintainer
#4 lore raw

Applied "ASoC: hdac_hdmi: Add device id for Kabylake" to the asoc tree

The patch

ASoC: hdac_hdmi: Add device id for Kabylake

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From cc21688703ee5090a6f1204b501c55034152c65e Mon Sep 17 00:00:00 2001

From: Shreyas NC <[email protected]>
Date: Mon, 11 Jul 2016 22:02:09 +0530
Subject: [PATCH] ASoC: hdac_hdmi: Add device id for Kabylake

Kabylake platform is similar to Skylake. So, add the device id.

---
 sound/soc/codecs/hdac_hdmi.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/hdac_hdmi.c +1 -0
index 62d21812b9b8..a38e8f56003d 100644
@@ -1798,6 +1798,7 @@ static const struct dev_pm_ops hdac_hdmi_pm = {
 static const struct hda_device_id hdmi_list[] = {
 	HDA_CODEC_EXT_ENTRY(0x80862809, 0x100000, "Skylake HDMI", 0),
 	HDA_CODEC_EXT_ENTRY(0x8086280a, 0x100000, "Broxton HDMI", 0),
+	HDA_CODEC_EXT_ENTRY(0x8086280b, 0x100000, "Kabylake HDMI", 0),
 	{}
 };
 
Signature · 1 line
2.8.1
author
#5 lore raw

PATCH 3/4 ASoC: rt286: set combo jack for Kabylake

In reply to Vinod Koul

Like in Skylake, Kabylake also uses combo jack so add Kabylake to DMI match for combo jack configuration.

---
 sound/soc/codecs/rt286.c | 7 +++++++
 1 file changed, 7 insertions(+)
sound/soc/codecs/rt286.c +7 -0
index 1bd31644a782..74c0e4eb3788 100644
@@ -1100,6 +1100,13 @@ static const struct dmi_system_id force_combo_jack_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Skylake Client platform")
 		}
 	},
+	{
+		.ident = "Intel Kabylake RVP",
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Kabylake Client platform")
+		}
+	},
+
 	{ }
 };
 
Signature · 1 line
1.9.1
maintainer
#6 lore raw

Applied "ASoC: rt286: set combo jack for Kabylake" to the asoc tree

The patch

ASoC: rt286: set combo jack for Kabylake

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From d06de6d9f113bfdb62ce7b9dfe33a0709122dec2 Mon Sep 17 00:00:00 2001

From: Vinod Koul <[email protected]>
Date: Mon, 11 Jul 2016 22:02:10 +0530
Subject: [PATCH] ASoC: rt286: set combo jack for Kabylake

Like in Skylake, Kabylake also uses combo jack so add Kabylake to DMI match for combo jack configuration.

---
 sound/soc/codecs/rt286.c | 7 +++++++
 1 file changed, 7 insertions(+)
sound/soc/codecs/rt286.c +7 -0
index 1bd31644a782..74c0e4eb3788 100644
@@ -1100,6 +1100,13 @@ static const struct dmi_system_id force_combo_jack_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Skylake Client platform")
 		}
 	},
+	{
+		.ident = "Intel Kabylake RVP",
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "Kabylake Client platform")
+		}
+	},
+
 	{ }
 };
 
Signature · 1 line
2.8.1
author
#7 lore raw

PATCH 4/4 ASoC: Intel: board: add kabylake machine id

In reply to Vinod Koul

Kabylake platform is similar to Skylake. So, add machine id. Since same machine driver supports both, add these in id table.

---
 sound/soc/intel/boards/skl_rt286.c | 9 +++++++++
 1 file changed, 9 insertions(+)
sound/soc/intel/boards/skl_rt286.c +9 -0
index 426b48233fdb..88c61e8cb87f 100644
@@ -505,12 +505,20 @@ static int skylake_audio_probe(struct platform_device *pdev)
 	return devm_snd_soc_register_card(&pdev->dev, &skylake_rt286);
 }
 
+static const struct platform_device_id skl_board_ids[] = {
+	{ .name = "skl_alc286s_i2s" },
+	{ .name = "kbl_alc286s_i2s" },
+	{ }
+};
+
 static struct platform_driver skylake_audio = {
 	.probe = skylake_audio_probe,
 	.driver = {
 		.name = "skl_alc286s_i2s",
 		.pm = &snd_soc_pm_ops,
 	},
+	.id_table = skl_board_ids,
+
 };
 
 module_platform_driver(skylake_audio)
@@ -520,3 +528,4 @@ MODULE_AUTHOR("Omair Mohammed Abdullah <[email protected]>");
 MODULE_DESCRIPTION("Intel SST Audio for Skylake");
 MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:skl_alc286s_i2s");
+MODULE_ALIAS("platform:kbl_alc286s_i2s");
Signature · 1 line
1.9.1
maintainer
#8 lore raw

Applied "ASoC: Intel: board: add kabylake machine id" to the asoc tree

The patch

ASoC: Intel: board: add kabylake machine id

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From 894a16db293c5383f1d9c819909a27bd6738efde Mon Sep 17 00:00:00 2001

From: Vinod Koul <[email protected]>
Date: Mon, 11 Jul 2016 22:02:11 +0530
Subject: [PATCH] ASoC: Intel: board: add kabylake machine id

Kabylake platform is similar to Skylake. So, add machine id. Since same machine driver supports both, add these in id table.

---
 sound/soc/intel/boards/skl_rt286.c | 9 +++++++++
 1 file changed, 9 insertions(+)
sound/soc/intel/boards/skl_rt286.c +9 -0
index 426b48233fdb..88c61e8cb87f 100644
@@ -505,12 +505,20 @@ static int skylake_audio_probe(struct platform_device *pdev)
 	return devm_snd_soc_register_card(&pdev->dev, &skylake_rt286);
 }
 
+static const struct platform_device_id skl_board_ids[] = {
+	{ .name = "skl_alc286s_i2s" },
+	{ .name = "kbl_alc286s_i2s" },
+	{ }
+};
+
 static struct platform_driver skylake_audio = {
 	.probe = skylake_audio_probe,
 	.driver = {
 		.name = "skl_alc286s_i2s",
 		.pm = &snd_soc_pm_ops,
 	},
+	.id_table = skl_board_ids,
+
 };
 
 module_platform_driver(skylake_audio)
@@ -520,3 +528,4 @@ MODULE_AUTHOR("Omair Mohammed Abdullah <[email protected]>");
 MODULE_DESCRIPTION("Intel SST Audio for Skylake");
 MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:skl_alc286s_i2s");
+MODULE_ALIAS("platform:kbl_alc286s_i2s");
Signature · 1 line
2.8.1