ASoC: amd: ps: store acp revision id in SoundWire dma driver private data
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Fri, 7 Feb 2025 06:28:02 +0000 (11:58 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 7 Feb 2025 13:33:44 +0000 (13:33 +0000)
Store acp pci revision id in SoundWire dma driver private data structure.
It will be used to distinguish platform specific code.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20250207062819.1527184-9-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/acp63.h
sound/soc/amd/ps/ps-sdw-dma.c

index 9a20846d30ff84fab9a4f6deed84ef56d41aa21c..098597d92bf9dcbe1680d62999b0caba1b093b9d 100644 (file)
@@ -183,6 +183,7 @@ struct pdm_dev_data {
 struct sdw_dma_dev_data {
        void __iomem *acp_base;
        struct mutex *acp_lock; /* used to protect acp common register access */
+       u32 acp_rev;
        struct snd_pcm_substream *acp63_sdw0_dma_stream[ACP63_SDW0_DMA_MAX_STREAMS];
        struct snd_pcm_substream *acp63_sdw1_dma_stream[ACP63_SDW1_DMA_MAX_STREAMS];
 };
index 878683619a05bd4b37d6887c0ea01fe48243943b..b3c716371d156ff7d459d006abd4559531c9279e 100644 (file)
@@ -474,6 +474,7 @@ static int acp63_sdw_platform_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        sdw_data->acp_lock = &acp_data->acp_lock;
+       sdw_data->acp_rev = acp_data->acp_rev;
        dev_set_drvdata(&pdev->dev, sdw_data);
        status = devm_snd_soc_register_component(&pdev->dev,
                                                 &acp63_sdw_component,