]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ASoC: amd: acp: update mach_params subsystem_rev field
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Tue, 24 Sep 2024 06:18:18 +0000 (11:48 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:10:39 +0000 (01:10 +0200)
Update mach_params subsystem_rev field in acp_machine_select()
function with acp pci revision id value.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20240924061821.1127054-7-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-platform.c

index a6e5cb26337718eb77ee53c46f6c380eb7ebb54d..78fcff6ea65785c84d4425ac7cc0296575b5c36c 100644 (file)
@@ -125,6 +125,7 @@ int acp_machine_select(struct acp_dev_data *adata)
                        dev_err(adata->dev, "warning: No matching ASoC machine driver found\n");
                        return -EINVAL;
                }
+               mach->mach_params.subsystem_rev = adata->acp_rev;
                adata->mach_dev = platform_device_register_data(adata->dev, mach->drv_name,
                                                                PLATFORM_DEVID_NONE, mach, size);
        }