sound: soc: ac108: Remove unused function ac101_set_clock() 74/302474/1 accepted/tizen/unified/riscv/20231211.043621
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 7 Dec 2023 10:00:00 +0000 (19:00 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 7 Dec 2023 10:00:03 +0000 (19:00 +0900)
Remove unused function ac101_set_clock() which causes following
build warning:

  sound/soc/codecs/ac101.c:1240:12: warning: 'ac101_set_clock' defined but not used [-Wunused-function]
   1240 | static int ac101_set_clock(int y_start_n_stop) {
        |            ^~~~~~~~~~~~~~~

Change-Id: Ic7adb2d90f59738f9f1acbec0c5db1606a0205b4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
sound/soc/codecs/ac101.c

index 0a32950..2d56e3f 100644 (file)
@@ -1236,22 +1236,6 @@ int ac101_audio_startup(struct snd_pcm_substream *substream,
        return 0;
 }
 
-#if _MASTER_MULTI_CODEC == _MASTER_AC101
-static int ac101_set_clock(int y_start_n_stop) {
-       int r;
-
-       if (y_start_n_stop) {
-               /* enable global clock */
-               r = ac101_aif1clk(static_ac10x->codec, SND_SOC_DAPM_PRE_PMU, 1);
-       } else {
-               /* disable global clock */
-               static_ac10x->aif1_clken = 1;
-               r = ac101_aif1clk(static_ac10x->codec, SND_SOC_DAPM_POST_PMD, 0);
-       }
-       return r;
-}
-#endif
-
 int ac101_trigger(struct snd_pcm_substream *substream, int cmd,
                  struct snd_soc_dai *dai)
 {
@@ -1405,10 +1389,6 @@ int ac101_codec_probe(struct snd_soc_codec *codec)
        ac10x->aif1_clken = 0;
        mutex_init(&ac10x->dac_mutex);
 
-       #if _MASTER_MULTI_CODEC == _MASTER_AC101
-       //seeed_voice_card_register_set_clock(SNDRV_PCM_STREAM_PLAYBACK, ac101_set_clock);
-       #endif
-
        set_configuration(ac10x->codec);
 
        /*enable this bit to prevent leakage from ldoin*/