mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
ASoC: amd: acp: replace adata->platform conditional check
Replace adata->platform condition check with acp pci revision id variable in config_acp_dma() & acp70_i2s_master_clock_generate() functions. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/20240924061821.1127054-9-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2e609185e1
commit
b33d93990e
|
|
@ -205,9 +205,9 @@ void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int s
|
|||
u32 low, high, val;
|
||||
u16 page_idx;
|
||||
|
||||
switch (adata->platform) {
|
||||
case ACP70:
|
||||
case ACP71:
|
||||
switch (adata->acp_rev) {
|
||||
case ACP70_PCI_ID:
|
||||
case ACP71_PCI_ID:
|
||||
switch (stream->dai_id) {
|
||||
case I2S_SP_INSTANCE:
|
||||
if (stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
|
||||
|
|
|
|||
|
|
@ -142,9 +142,9 @@ static int acp70_i2s_master_clock_generate(struct acp_dev_data *adata)
|
|||
struct pci_dev *smn_dev;
|
||||
u32 device_id;
|
||||
|
||||
if (adata->platform == ACP70)
|
||||
if (adata->acp_rev == ACP70_PCI_ID)
|
||||
device_id = 0x1507;
|
||||
else if (adata->platform == ACP71)
|
||||
else if (adata->acp_rev == ACP71_PCI_ID)
|
||||
device_id = 0x1122;
|
||||
else
|
||||
return -ENODEV;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user