diff options
Diffstat (limited to 'sound/soc/meson/aiu-encoder-i2s.c')
| -rw-r--r-- | sound/soc/meson/aiu-encoder-i2s.c | 33 | 
1 files changed, 0 insertions, 33 deletions
| diff --git a/sound/soc/meson/aiu-encoder-i2s.c b/sound/soc/meson/aiu-encoder-i2s.c index 932224552146..67729de41a73 100644 --- a/sound/soc/meson/aiu-encoder-i2s.c +++ b/sound/soc/meson/aiu-encoder-i2s.c @@ -18,7 +18,6 @@  #define AIU_RST_SOFT_I2S_FAST		BIT(0)  #define AIU_I2S_DAC_CFG_MSB_FIRST	BIT(2) -#define AIU_I2S_MISC_HOLD_EN		BIT(2)  #define AIU_CLK_CTRL_I2S_DIV_EN		BIT(0)  #define AIU_CLK_CTRL_I2S_DIV		GENMASK(3, 2)  #define AIU_CLK_CTRL_AOCLK_INVERT	BIT(6) @@ -36,37 +35,6 @@ static void aiu_encoder_i2s_divider_enable(struct snd_soc_component *component,  				      enable ? AIU_CLK_CTRL_I2S_DIV_EN : 0);  } -static void aiu_encoder_i2s_hold(struct snd_soc_component *component, -				 bool enable) -{ -	snd_soc_component_update_bits(component, AIU_I2S_MISC, -				      AIU_I2S_MISC_HOLD_EN, -				      enable ? AIU_I2S_MISC_HOLD_EN : 0); -} - -static int aiu_encoder_i2s_trigger(struct snd_pcm_substream *substream, int cmd, -				   struct snd_soc_dai *dai) -{ -	struct snd_soc_component *component = dai->component; - -	switch (cmd) { -	case SNDRV_PCM_TRIGGER_START: -	case SNDRV_PCM_TRIGGER_RESUME: -	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: -		aiu_encoder_i2s_hold(component, false); -		return 0; - -	case SNDRV_PCM_TRIGGER_STOP: -	case SNDRV_PCM_TRIGGER_SUSPEND: -	case SNDRV_PCM_TRIGGER_PAUSE_PUSH: -		aiu_encoder_i2s_hold(component, true); -		return 0; - -	default: -		return -EINVAL; -	} -} -  static int aiu_encoder_i2s_setup_desc(struct snd_soc_component *component,  				      struct snd_pcm_hw_params *params)  { @@ -353,7 +321,6 @@ static void aiu_encoder_i2s_shutdown(struct snd_pcm_substream *substream,  }  const struct snd_soc_dai_ops aiu_encoder_i2s_dai_ops = { -	.trigger	= aiu_encoder_i2s_trigger,  	.hw_params	= aiu_encoder_i2s_hw_params,  	.hw_free	= aiu_encoder_i2s_hw_free,  	.set_fmt	= aiu_encoder_i2s_set_fmt, |