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

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

authored by

Venkata Prasad Potturu and committed by
Mark Brown
f8b4f3f5 c8b5f251

+11 -11
+1
sound/soc/amd/acp/acp-pci.c
··· 151 151 case 0x70: 152 152 case 0x71: 153 153 chip->name = "acp_asoc_acp70"; 154 + chip->rsrc = &acp70_rsrc; 154 155 chip->acp_hw_ops_init = acp70_hw_ops_init; 155 156 chip->machines = snd_soc_acpi_amd_acp70_acp_machines; 156 157 break;
-11
sound/soc/amd/acp/acp70.c
··· 30 30 #define CLK7_CLK0_DFS_CNTL_N1 0X0006C1A4 31 31 #define CLK0_DIVIDER 0X19 32 32 33 - static struct acp_resource rsrc = { 34 - .offset = 0, 35 - .no_of_ctrls = 2, 36 - .irqp_used = 1, 37 - .soc_mclk = true, 38 - .irq_reg_offset = 0x1a00, 39 - .scratch_reg_offset = 0x10000, 40 - .sram_pte_offset = 0x03800000, 41 - }; 42 - 43 33 static struct snd_soc_dai_driver acp70_dai[] = { 44 34 { 45 35 .name = "acp-i2s-sp", ··· 143 153 } 144 154 145 155 chip->dev = dev; 146 - chip->rsrc = &rsrc; 147 156 chip->dai_driver = acp70_dai; 148 157 chip->num_dai = ARRAY_SIZE(acp70_dai); 149 158
+10
sound/soc/amd/acp/amd.h
··· 238 238 ACP_CONFIG_20, 239 239 }; 240 240 241 + struct acp_resource acp70_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 = 0x10000, 248 + .sram_pte_offset = 0x03800000, 249 + }; 250 + 241 251 struct snd_soc_acpi_codecs amp_rt1019 = { 242 252 .num_codecs = 1, 243 253 .codecs = {"10EC1019"}