From: Seung-Woo Kim Date: Thu, 7 Dec 2023 10:00:00 +0000 (+0900) Subject: sound: soc: ac108: Remove unused function ac101_set_clock() X-Git-Tag: accepted/tizen/unified/riscv/20231211.043621^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0c2693d6b6d002886c8c688d0e9a1d760969cb6;p=platform%2Fkernel%2Flinux-starfive.git sound: soc: ac108: Remove unused function ac101_set_clock() 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 --- diff --git a/sound/soc/codecs/ac101.c b/sound/soc/codecs/ac101.c index 0a32950b4ed9..2d56e3fa4daf 100644 --- a/sound/soc/codecs/ac101.c +++ b/sound/soc/codecs/ac101.c @@ -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*/