Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: amd: acp: Refactor acp63 platform resource structure

Refactor acp63 platform resource private structure to amd.h
header file.

Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://patch.msgid.link/20250310183201.11979-12-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Venkata Prasad Potturu and committed by
Mark Brown
d08220b6 f8b4f3f5

+12 -12
+1
sound/soc/amd/acp/acp-pci.c
··· 145 145 break; 146 146 case 0x63: 147 147 chip->name = "acp_asoc_acp63"; 148 + chip->rsrc = &acp63_rsrc; 148 149 chip->acp_hw_ops_init = acp63_hw_ops_init; 149 150 chip->machines = snd_soc_acpi_amd_acp63_acp_machines; 150 151 break;
+1 -12
sound/soc/amd/acp/acp63.c
··· 52 52 u32 clk_pll_req_no_reg; 53 53 }; 54 54 55 - static struct acp_resource rsrc = { 56 - .offset = 0, 57 - .no_of_ctrls = 2, 58 - .irqp_used = 1, 59 - .soc_mclk = true, 60 - .irq_reg_offset = 0x1a00, 61 - .scratch_reg_offset = 0x12800, 62 - .sram_pte_offset = 0x03802800, 63 - }; 64 - 65 55 static struct snd_soc_dai_driver acp63_dai[] = { 66 56 { 67 57 .name = "acp-i2s-sp", ··· 212 222 } 213 223 214 224 chip->dev = dev; 215 - chip->rsrc = &rsrc; 216 225 chip->dai_driver = acp63_dai; 217 226 chip->num_dai = ARRAY_SIZE(acp63_dai); 218 227 219 - if (chip->is_i2s_config && rsrc.soc_mclk) { 228 + if (chip->is_i2s_config && chip->rsrc->soc_mclk) { 220 229 ret = acp63_i2s_master_clock_generate(chip); 221 230 if (ret) 222 231 return ret;
+10
sound/soc/amd/acp/amd.h
··· 238 238 ACP_CONFIG_20, 239 239 }; 240 240 241 + struct acp_resource acp63_rsrc = { 242 + .offset = 0, 243 + .no_of_ctrls = 2, 244 + .irqp_used = 1, 245 + .soc_mclk = true, 246 + .irq_reg_offset = 0x1a00, 247 + .scratch_reg_offset = 0x12800, 248 + .sram_pte_offset = 0x03802800, 249 + }; 250 + 241 251 struct acp_resource acp70_rsrc = { 242 252 .offset = 0, 243 253 .no_of_ctrls = 2,