]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: Support hw_free() callback at DAI level
authorTimo Wischer <twischer@de.adit-jv.com>
Mon, 22 Jul 2019 07:24:01 +0000 (16:24 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 23 Jul 2019 17:14:13 +0000 (18:14 +0100)
commit1f536abbd81cf3072e74b70137e299e1f32f7459
treef04bf01ef8174408db8d0cc4d849674ada29fad3
parent562f2af4fcd017ded30c475b268c4d91dd28f498
ASoC: rsnd: Support hw_free() callback at DAI level

This patch provides the needed infrastructure to support calling hw_free()
at the DAI level. This is for example required to free resources allocated
in hw_params() callback.

The modification of __rsnd_mod_add_hw_params does not have any side
effects because rsnd_mod_ops::hw_params callback is not used by anyone
until now.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Link: https://lore.kernel.org/r/20190722072403.11008-2-jiada_wang@mentor.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h