Skip to content

Commit 70fa390

Browse files
vijendarmukundabroonie
authored andcommitted
ASoC: amd: acp: remove i2s configuration check in acp_i2s_probe()
ACP supports different pin configurations for I2S IO. Checking ACP pin configuration value against specific value breaks the functionality for other I2S pin configurations. This check is no longer required in i2s dai driver probe call as i2s configuration check will be verified during acp platform device creation sequence. Remove i2s_mode check in acp_i2s_probe() function. Fixes: b24484c ("ASoC: amd: acp: ACP code generic to support newer platforms") Signed-off-by: Vijendar Mukunda <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 98d919d commit 70fa390

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sound/soc/amd/acp/acp-i2s.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -588,20 +588,12 @@ static int acp_i2s_probe(struct snd_soc_dai *dai)
588588
{
589589
struct device *dev = dai->component->dev;
590590
struct acp_dev_data *adata = dev_get_drvdata(dev);
591-
struct acp_resource *rsrc = adata->rsrc;
592-
unsigned int val;
593591

594592
if (!adata->acp_base) {
595593
dev_err(dev, "I2S base is NULL\n");
596594
return -EINVAL;
597595
}
598596

599-
val = readl(adata->acp_base + rsrc->i2s_pin_cfg_offset);
600-
if (val != rsrc->i2s_mode) {
601-
dev_err(dev, "I2S Mode not supported val %x\n", val);
602-
return -EINVAL;
603-
}
604-
605597
return 0;
606598
}
607599

0 commit comments

Comments
 (0)