ASoC: soc-pcm: cleanup soc_pcm_params_symmetry()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 15 Jan 2021 04:56:39 +0000 (13:56 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 12:38:22 +0000 (12:38 +0000)
commit3a906721112263f1698d7752f6f0133c78fc12c2
treed1e91794524de638adede205059e26422a44d412
parentfac110cbcddec115c7d4b79d7491aebebbe44469
ASoC: soc-pcm: cleanup soc_pcm_params_symmetry()

soc_pcm_params_symmetry() checks rate/channel/sample_bits state.
These are very similar but different, thus, it needs to have very
verbose code.
This patch use macro for it and make code more simple.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/878s8un6si.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c