Home
last modified time | relevance | path

Searched hist:fac110cbcddec115c7d4b79d7491aebebbe44469 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/soc/
H A Dsoc-pcm.cdiff fac110cbcddec115c7d4b79d7491aebebbe44469 Thu Jan 14 22:56:35 CST 2021 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ASoC: soc-pcm: cleanup soc_pcm_apply_symmetry()

soc_pcm_apply_symmetry() want to call snd_pcm_hw_constraint_single()
for rate/channel/sample_bits, but, it needs many condition checks.
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/87a6tan6sm.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>