]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: Intel: bytcht_es8316: remove useless code
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 12 Oct 2017 23:38:01 +0000 (18:38 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 18 Oct 2017 11:30:18 +0000 (12:30 +0100)
get_codec_dai() is not used, remove it

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcht_es8316.c

index 52635462dac63ec3dbb1f61bf6d0d33ee14b0d0e..9ed4400c13b8ed322c0504a16558d985712e2947 100644 (file)
@@ -37,20 +37,6 @@ struct byt_cht_es8316_private {
        struct clk *mclk;
 };
 
-#define CODEC_DAI1     "ES8316 HiFi"
-
-static inline struct snd_soc_dai *get_codec_dai(struct snd_soc_card *card)
-{
-       struct snd_soc_pcm_runtime *rtd;
-
-       list_for_each_entry(rtd, &card->rtd_list, list) {
-               if (!strncmp(rtd->codec_dai->name, CODEC_DAI1,
-                            strlen(CODEC_DAI1)))
-                       return rtd->codec_dai;
-       }
-       return NULL;
-}
-
 static const struct snd_soc_dapm_widget byt_cht_es8316_widgets[] = {
        SND_SOC_DAPM_HP("Headphone", NULL),