mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	ASoC: Intel: soc-acpi-intel-ptl-match: Add cs42l43 support
Patch adds driver data & match table for cs42l43 multi-function codec on PTL-RVP at sdw link3. Signed-off-by: Naveen Manohar <naveen.m@intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20250311003101.80967-1-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
		
							parent
							
								
									89be3c15a5
								
							
						
					
					
						commit
						ac5b4a24f1
					
				
					 1 changed files with 50 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -185,6 +185,33 @@ static const struct snd_soc_acpi_endpoint cs42l43_amp_spkagg_endpoints[] = {
 | 
			
		|||
	},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct snd_soc_acpi_endpoint cs42l43_endpoints[] = {
 | 
			
		||||
	{ /* Jack Playback Endpoint */
 | 
			
		||||
		.num = 0,
 | 
			
		||||
		.aggregated = 0,
 | 
			
		||||
		.group_position = 0,
 | 
			
		||||
		.group_id = 0,
 | 
			
		||||
	},
 | 
			
		||||
	{ /* DMIC Capture Endpoint */
 | 
			
		||||
		.num = 1,
 | 
			
		||||
		.aggregated = 0,
 | 
			
		||||
		.group_position = 0,
 | 
			
		||||
		.group_id = 0,
 | 
			
		||||
	},
 | 
			
		||||
	{ /* Jack Capture Endpoint */
 | 
			
		||||
		.num = 2,
 | 
			
		||||
		.aggregated = 0,
 | 
			
		||||
		.group_position = 0,
 | 
			
		||||
		.group_id = 0,
 | 
			
		||||
	},
 | 
			
		||||
	{ /* Speaker Playback Endpoint */
 | 
			
		||||
		.num = 3,
 | 
			
		||||
		.aggregated = 0,
 | 
			
		||||
		.group_position = 0,
 | 
			
		||||
		.group_id = 0,
 | 
			
		||||
	},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct snd_soc_acpi_adr_device cs42l43_2_adr[] = {
 | 
			
		||||
	{
 | 
			
		||||
		.adr = 0x00023001fa424301ull,
 | 
			
		||||
| 
						 | 
				
			
			@ -236,6 +263,15 @@ static const struct snd_soc_acpi_adr_device cs35l56_3_3amp_adr[] = {
 | 
			
		|||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct snd_soc_acpi_adr_device cs42l43_3_adr[] = {
 | 
			
		||||
	{
 | 
			
		||||
		.adr = 0x00033001FA424301ull,
 | 
			
		||||
		.num_endpoints = ARRAY_SIZE(cs42l43_endpoints),
 | 
			
		||||
		.endpoints = cs42l43_endpoints,
 | 
			
		||||
		.name_prefix = "cs42l43"
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
 | 
			
		||||
	{
 | 
			
		||||
		.adr = 0x000030025D071101ull,
 | 
			
		||||
| 
						 | 
				
			
			@ -390,6 +426,14 @@ static const struct snd_soc_acpi_link_adr ptl_cs42l43_l2_cs35l56x6_l13[] = {
 | 
			
		|||
	{}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l3[] = {
 | 
			
		||||
	{
 | 
			
		||||
		.mask = BIT(3),
 | 
			
		||||
		.num_adr = ARRAY_SIZE(cs42l43_3_adr),
 | 
			
		||||
		.adr_d = cs42l43_3_adr,
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const struct snd_soc_acpi_link_adr ptl_rt722_only[] = {
 | 
			
		||||
	{
 | 
			
		||||
		.mask = BIT(0),
 | 
			
		||||
| 
						 | 
				
			
			@ -531,6 +575,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
 | 
			
		|||
		.drv_name = "sof_sdw",
 | 
			
		||||
		.sof_tplg_filename = "sof-ptl-rt711.tplg",
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		.link_mask = BIT(3),
 | 
			
		||||
		.links = ptl_cs42l43_l3,
 | 
			
		||||
		.drv_name = "sof_sdw",
 | 
			
		||||
		.sof_tplg_filename = "sof-ptl-cs42l43-l3.tplg",
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		.link_mask = BIT(3),
 | 
			
		||||
		.links = ptl_rt721_l3,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue