OSDN Git Service

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)
commit859fd6cbf1fb32b5428c26f837215c085b8a822e
treef04bf01ef8174408db8d0cc4d849674ada29fad3
parenta789adae592e3d28ae87902c0012a8b11c96eb79
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