diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2023-04-03 12:46:42 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-03 12:15:32 +0100 |
commit | 9eb48aeddd8dcf2defd94a837a65e052576cf42b (patch) | |
tree | 5bc49aca399861fb92a9da2dd02b40684cb6dc0c /sound/soc/sof/amd/acp-common.c | |
parent | 56e008146e5b46059c5469a8b47478ab78f5b895 (diff) | |
download | linux-9eb48aeddd8dcf2defd94a837a65e052576cf42b.tar.gz linux-9eb48aeddd8dcf2defd94a837a65e052576cf42b.tar.bz2 linux-9eb48aeddd8dcf2defd94a837a65e052576cf42b.zip |
ASoC: SOF: amd: remove acp_dai_probe() function
ACP SOF driver supports different audio configurations.
Explicit condition check for I2S configuration will break
other audio endpoint configurations.
acp_dai_probe() function is not required as we have
machine select logic to select the exact machine.
Remove acp_dai_probe() from existing AMD PCI driver code base.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230403071651.919027-2-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/amd/acp-common.c')
-rw-r--r-- | sound/soc/sof/amd/acp-common.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sound/soc/sof/amd/acp-common.c b/sound/soc/sof/amd/acp-common.c index 8ce4c8956933..df36b411a12e 100644 --- a/sound/soc/sof/amd/acp-common.c +++ b/sound/soc/sof/amd/acp-common.c @@ -18,22 +18,6 @@ #include "acp-dsp-offset.h" #include <sound/sof/xtensa.h> -int acp_dai_probe(struct snd_soc_dai *dai) -{ - struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(dai->component); - const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); - unsigned int val; - - val = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->i2s_pin_config_offset); - if (val != desc->i2s_mode) { - dev_err(sdev->dev, "I2S Mode is not supported (I2S_PIN_CONFIG: %#x)\n", val); - return -EINVAL; - } - - return 0; -} -EXPORT_SYMBOL_NS(acp_dai_probe, SND_SOC_SOF_AMD_COMMON); - /** * amd_sof_ipc_dump() - This function is called when IPC tx times out. * @sdev: SOF device. |