diff options
author | Xingyu Wu <xingyu.wu@starfivetech.com> | 2022-12-22 10:00:48 +0300 |
---|---|---|
committer | Xingyu Wu <xingyu.wu@starfivetech.com> | 2022-12-22 10:50:01 +0300 |
commit | 850a5769cdb4658ddf51dff11d21ab020b46cfb2 (patch) | |
tree | 80526031a173eb0263329777a2576055c1b4ce00 | |
parent | b85f8dd876e2e579b169c397a03ff41b6dff9489 (diff) | |
download | linux-850a5769cdb4658ddf51dff11d21ab020b46cfb2.tar.xz |
sound: codecs: ac101: Fixed warning when compiling
Removed the useless part and fixed warning.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
-rw-r--r--[-rwxr-xr-x] | sound/soc/codecs/ac101.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sound/soc/codecs/ac101.c b/sound/soc/codecs/ac101.c index f0064b168968..b8df5f9ad144 100755..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*/ |