summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2021-10-27 10:18:23 +0800
committerMark Brown <broonie@kernel.org>2021-11-15 13:26:58 +0000
commit4ed65d6ead29a992c4803e1138a6042caa6ec2a3 (patch)
tree788db92e4976172cc0b38b2b065208575bafb491 /sound/soc/intel/boards
parentbd98394a811c7dc39bcd189cf5f33925f0c30ae2 (diff)
downloadlinux-4ed65d6ead29a992c4803e1138a6042caa6ec2a3.tar.bz2
ASoC: intel: sof_sdw: remove get_next_be_id
DAI link id will not be set from sdw codec init feedback function, and be_id is changed by create_sdw_dailink() now. So we don't need get_next_be_id() anymore. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20211027021824.24776-10-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r--sound/soc/intel/boards/sof_sdw.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index aac493aea002..df29f7b478a4 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -1044,17 +1044,6 @@ static int create_sdw_dailink(struct snd_soc_card *card,
return 0;
}
-/*
- * DAI link ID of SSP & DMIC & HDMI are based on last
- * link ID used by sdw link. Since be_id may be changed
- * in init func of sdw codec, it is not equal to be_id
- */
-static inline int get_next_be_id(struct snd_soc_dai_link *links,
- int be_id)
-{
- return links[be_id - 1].id + 1;
-}
-
#define IDISP_CODEC_MASK 0x4
static int sof_card_codec_conf_alloc(struct device *dev,
@@ -1223,9 +1212,6 @@ static int sof_card_dai_links_create(struct device *dev,
}
}
- /* get BE ID for non-sdw DAI */
- be_id = get_next_be_id(links, link_index);
-
SSP:
/* SSP */
if (!ssp_num)