ASoC: rsnd: add common mod confirm method
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 10 Sep 2015 07:03:08 +0000 (07:03 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 14 Sep 2015 18:47:31 +0000 (19:47 +0100)
commitf1df12290722f998f5eb173ae30434d313aea54c
tree3f320642d581fc8ebf29a90b7dd560cb017204c6
parent1665a9e5e224a44798ea6ae16b507d48752eb4a1
ASoC: rsnd: add common mod confirm method

Renesas sound has SSI/SRC/DVC/MIX/ADG modules, and these have original
register mapping. Thus this driver is using regmap field, and each module
is using it based on each module ID.

Sometimes, each module needs other module to controlling. but current each
function is using just "mod" as parameter name. This is confusable.
For example, if SSI0 and SRC2 are connected, and if SRC module function
has bug of module access, and if it needs to control connected SSI,
SRC function will access to SSI2 (It should access to SSI0, but it uses
SRC's ID 2). This is easy to happen in current driver style.

To avoid this kind of confusable trouble, this patch adds module confirm
macro for debug purpose.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h
This page took 0.039604 seconds and 5 git commands to generate.