ASoC: soc-dai: remove .digital_mute
All drivers are now using .mute_stream. Let's remove .digital_mute. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/87h7u72dqz.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
22e9b54307
commit
e2978c45e5
|
@ -246,7 +246,6 @@ struct snd_soc_dai_ops {
|
|||
* DAI digital mute - optional.
|
||||
* Called by soc-core to minimise any pops.
|
||||
*/
|
||||
int (*digital_mute)(struct snd_soc_dai *dai, int mute);
|
||||
int (*mute_stream)(struct snd_soc_dai *dai, int mute, int stream);
|
||||
|
||||
/*
|
||||
|
|
|
@ -307,10 +307,6 @@ int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute,
|
|||
(direction == SNDRV_PCM_STREAM_PLAYBACK ||
|
||||
!dai->driver->ops->no_capture_mute))
|
||||
ret = dai->driver->ops->mute_stream(dai, mute, direction);
|
||||
else if (direction == SNDRV_PCM_STREAM_PLAYBACK &&
|
||||
dai->driver->ops &&
|
||||
dai->driver->ops->digital_mute)
|
||||
ret = dai->driver->ops->digital_mute(dai, mute);
|
||||
|
||||
return soc_dai_ret(dai, ret);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue