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 renoir platform resource structure

Refactor renoir 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-14-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Venkata Prasad Potturu and committed by
Mark Brown
e167e5b2 ee7ab0fd

+10 -10
+1
sound/soc/amd/acp/acp-pci.c
··· 135 135 switch (pci->revision) { 136 136 case 0x01: 137 137 chip->name = "acp_asoc_renoir"; 138 + chip->rsrc = &rn_rsrc; 138 139 chip->acp_hw_ops_init = acp31_hw_ops_init; 139 140 chip->machines = snd_soc_acpi_amd_acp_machines; 140 141 break;
-10
sound/soc/amd/acp/acp-renoir.c
··· 27 27 28 28 #define DRV_NAME "acp_asoc_renoir" 29 29 30 - static struct acp_resource rsrc = { 31 - .offset = 20, 32 - .no_of_ctrls = 1, 33 - .irqp_used = 0, 34 - .irq_reg_offset = 0x1800, 35 - .scratch_reg_offset = 0x12800, 36 - .sram_pte_offset = 0x02052800, 37 - }; 38 - 39 30 static struct snd_soc_dai_driver acp_renoir_dai[] = { 40 31 { 41 32 .name = "acp-i2s-sp", ··· 112 121 } 113 122 114 123 chip->dev = dev; 115 - chip->rsrc = &rsrc; 116 124 chip->dai_driver = acp_renoir_dai; 117 125 chip->num_dai = ARRAY_SIZE(acp_renoir_dai); 118 126
+9
sound/soc/amd/acp/amd.h
··· 238 238 ACP_CONFIG_20, 239 239 }; 240 240 241 + struct acp_resource rn_rsrc = { 242 + .offset = 20, 243 + .no_of_ctrls = 1, 244 + .irqp_used = 0, 245 + .irq_reg_offset = 0x1800, 246 + .scratch_reg_offset = 0x12800, 247 + .sram_pte_offset = 0x02052800, 248 + }; 249 + 241 250 struct acp_resource rmb_rsrc = { 242 251 .offset = 0, 243 252 .no_of_ctrls = 2,