]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Intel: sof_sdw: remove get_codec_dai_by_name
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 27 May 2024 19:35:41 +0000 (14:35 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 10:10:50 +0000 (11:10 +0100)
get_codec_dai_by_name() is not used anymore. Remove it.

Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240527193552.165567-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw_common.h

index e41b0d95e0ff77856951a1e211e1d8d81638cc91..9dc50a6d53014a997c6714f89a0392c30822c7be 100644 (file)
@@ -559,24 +559,6 @@ static const struct snd_kcontrol_new rt700_controls[] = {
        SOC_DAPM_PIN_SWITCH("Speaker"),
 };
 
-struct snd_soc_dai *get_codec_dai_by_name(struct snd_soc_pcm_runtime *rtd,
-                                         const char * const dai_name[],
-                                         int num_dais)
-{
-       struct snd_soc_dai *dai;
-       int index;
-       int i;
-
-       for (index = 0; index < num_dais; index++)
-               for_each_rtd_codec_dais(rtd, i, dai)
-                       if (strstr(dai->name, dai_name[index])) {
-                               dev_dbg(rtd->card->dev, "get dai %s\n", dai->name);
-                               return dai;
-                       }
-
-       return NULL;
-}
-
 /* these wrappers are only needed to avoid typecast compilation errors */
 int sdw_startup(struct snd_pcm_substream *substream)
 {
index 3dfba6f6b95dc64ef493892193b9dae1af414205..4e92ff65b53736f97aebd3c9351fcc9a576388e9 100644 (file)
@@ -134,10 +134,6 @@ struct mc_private {
 
 extern unsigned long sof_sdw_quirk;
 
-struct snd_soc_dai *get_codec_dai_by_name(struct snd_soc_pcm_runtime *rtd,
-                                         const char * const dai_name[],
-                                         int num_dais);
-
 int sdw_startup(struct snd_pcm_substream *substream);
 int sdw_prepare(struct snd_pcm_substream *substream);
 int sdw_trigger(struct snd_pcm_substream *substream, int cmd);