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

Refactor rembrandt platform resource private structure to amd.h
header fle.

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

authored by

Venkata Prasad Potturu and committed by
Mark Brown
ee7ab0fd d08220b6

+12 -12
+1
sound/soc/amd/acp/acp-pci.c
··· 140 140 break; 141 141 case 0x6f: 142 142 chip->name = "acp_asoc_rembrandt"; 143 + chip->rsrc = &rmb_rsrc; 143 144 chip->acp_hw_ops_init = acp6x_hw_ops_init; 144 145 chip->machines = snd_soc_acpi_amd_rmb_acp_machines; 145 146 break;
+1 -12
sound/soc/amd/acp/acp-rembrandt.c
··· 34 34 #define MP1_C2PMSG_85 0x3B10A54 35 35 #define MP1_C2PMSG_93 0x3B10A74 36 36 37 - static struct acp_resource rsrc = { 38 - .offset = 0, 39 - .no_of_ctrls = 2, 40 - .irqp_used = 1, 41 - .soc_mclk = true, 42 - .irq_reg_offset = 0x1a00, 43 - .scratch_reg_offset = 0x12800, 44 - .sram_pte_offset = 0x03802800, 45 - }; 46 - 47 37 static struct snd_soc_dai_driver acp_rmb_dai[] = { 48 38 { 49 39 .name = "acp-i2s-sp", ··· 161 171 } 162 172 163 173 chip->dev = dev; 164 - chip->rsrc = &rsrc; 165 174 chip->dai_driver = acp_rmb_dai; 166 175 chip->num_dai = ARRAY_SIZE(acp_rmb_dai); 167 176 168 - if (chip->is_i2s_config && rsrc.soc_mclk) { 177 + if (chip->is_i2s_config && chip->rsrc->soc_mclk) { 169 178 ret = acp6x_master_clock_generate(dev); 170 179 if (ret) 171 180 return ret;
+10
sound/soc/amd/acp/amd.h
··· 238 238 ACP_CONFIG_20, 239 239 }; 240 240 241 + struct acp_resource rmb_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 acp63_rsrc = { 242 252 .offset = 0, 243 253 .no_of_ctrls = 2,