ASoC: soc-core: accept zero format at snd_soc_runtime_set_dai_fmt()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 18 Oct 2021 02:05:44 +0000 (11:05 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 18 Oct 2021 12:56:40 +0000 (13:56 +0100)
commit7db07e37e13cfd46039d82aed91092185eac6565
tree271cc60b3c7b6eae6cbfcc73282acd2addcf9ffc
parent41b1774fb814544d2224bdfd893c060fdfed995b
ASoC: soc-core: accept zero format at snd_soc_runtime_set_dai_fmt()

Do nothing if format was zero at snd_soc_runtime_set_dai_fmt().
soc-core.c can be more simple code by this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87ee8jt7d3.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/meson-codec-glue.c
sound/soc/soc-core.c