diff --git a/ac108.c b/ac108.c index 67edeae..4663df0 100644 --- a/ac108.c +++ b/ac108.c @@ -1124,7 +1124,7 @@ void ac108_aif_shutdown(struct snd_pcm_substream *substream, } } -int ac108_aif_mute(struct snd_soc_dai *dai, int mute) { +int ac108_aif_mute(struct snd_soc_dai *dai, int mute, int direction) { struct snd_soc_codec *codec = dai->codec; struct ac10x_priv *ac10x = snd_soc_codec_get_drvdata(codec); @@ -1145,12 +1145,13 @@ static const struct snd_soc_dai_ops ac108_dai_ops = { .hw_params = ac108_hw_params, .prepare = ac108_prepare, .trigger = ac108_trigger, - .digital_mute = ac108_aif_mute, + .mute_stream = ac108_aif_mute, /*DAI format configuration*/ .set_fmt = ac108_set_fmt, // .hw_free = ac108_hw_free, + .no_capture_mute = 1, }; static struct snd_soc_dai_driver ac108_dai0 = { diff --git a/wm8960.c b/wm8960.c index 34d4dad..465c6dc 100644 --- a/wm8960.c +++ b/wm8960.c @@ -796,7 +796,7 @@ static int wm8960_hw_free(struct snd_pcm_substream *substream, return 0; } -static int wm8960_mute(struct snd_soc_dai *dai, int mute) +static int wm8960_mute(struct snd_soc_dai *dai, int mute, int direction) { struct snd_soc_codec *codec = dai->codec; @@ -1236,11 +1236,12 @@ static int wm8960_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, static const struct snd_soc_dai_ops wm8960_dai_ops = { .hw_params = wm8960_hw_params, .hw_free = wm8960_hw_free, - .digital_mute = wm8960_mute, + .mute_stream = wm8960_mute, .set_fmt = wm8960_set_dai_fmt, .set_clkdiv = wm8960_set_dai_clkdiv, .set_pll = wm8960_set_dai_pll, .set_sysclk = wm8960_set_dai_sysclk, + .no_capture_mute = 1, }; static struct snd_soc_dai_driver wm8960_dai = {