aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/sof_board_helpers.c
diff options
context:
space:
mode:
authorBrent Lu <[email protected]>2024-03-27 16:23:53 +0000
committerMark Brown <[email protected]>2024-03-28 13:58:12 +0000
commita17fea3880aea23fd8821ff0660268a680e0326b (patch)
tree1a0f8c028afbe26cc5f1e6928266268d39f24dc6 /sound/soc/intel/boards/sof_board_helpers.c
parentASoC: Intel: ssp-common: relocate header file (diff)
downloadkernel-a17fea3880aea23fd8821ff0660268a680e0326b.tar.gz
kernel-a17fea3880aea23fd8821ff0660268a680e0326b.zip
ASoC: Intel: ssp-common: naming convention change
As we moved ssp-common files to new locations with new names, changing the naming convention from sof_ssp_ to snd_soc_acpi_intel_. Reviewed-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Brent Lu <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'sound/soc/intel/boards/sof_board_helpers.c')
-rw-r--r--sound/soc/intel/boards/sof_board_helpers.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sound/soc/intel/boards/sof_board_helpers.c b/sound/soc/intel/boards/sof_board_helpers.c
index 586600680e84..8819ab5694bf 100644
--- a/sound/soc/intel/boards/sof_board_helpers.c
+++ b/sound/soc/intel/boards/sof_board_helpers.c
@@ -103,13 +103,13 @@ static struct snd_soc_dai_link_component platform_component[] = {
};
static int set_ssp_codec_link(struct device *dev, struct snd_soc_dai_link *link,
- int be_id, enum sof_ssp_codec codec_type,
+ int be_id, enum snd_soc_acpi_intel_codec codec_type,
int ssp_codec)
{
struct snd_soc_dai_link_component *cpus;
dev_dbg(dev, "link %d: ssp codec %s, ssp %d\n", be_id,
- sof_ssp_get_codec_name(codec_type), ssp_codec);
+ snd_soc_acpi_intel_get_codec_name(codec_type), ssp_codec);
/* link name */
link->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_codec);
@@ -259,12 +259,13 @@ static int set_idisp_hdmi_link(struct device *dev, struct snd_soc_dai_link *link
}
static int set_ssp_amp_link(struct device *dev, struct snd_soc_dai_link *link,
- int be_id, enum sof_ssp_codec amp_type, int ssp_amp)
+ int be_id, enum snd_soc_acpi_intel_codec amp_type,
+ int ssp_amp)
{
struct snd_soc_dai_link_component *cpus;
dev_dbg(dev, "link %d: ssp amp %s, ssp %d\n", be_id,
- sof_ssp_get_codec_name(amp_type), ssp_amp);
+ snd_soc_acpi_intel_get_codec_name(amp_type), ssp_amp);
/* link name */
link->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_amp);
@@ -598,8 +599,8 @@ sof_intel_board_get_ctx(struct device *dev, unsigned long board_quirk)
if (!ctx)
return NULL;
- ctx->codec_type = sof_ssp_detect_codec_type(dev);
- ctx->amp_type = sof_ssp_detect_amp_type(dev);
+ ctx->codec_type = snd_soc_acpi_intel_detect_codec_type(dev);
+ ctx->amp_type = snd_soc_acpi_intel_detect_amp_type(dev);
ctx->dmic_be_num = 2;
ctx->hdmi_num = (board_quirk & SOF_NUM_IDISP_HDMI_MASK) >>