diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-03-28 02:31:23 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-29 12:01:10 +0100 |
commit | e0c4211854bfebd5507761a2bfddaa9e37074230 (patch) | |
tree | 50c8fd5e22e55e326e0d87e199dccc0324bae9dd /sound/soc/sh/rcar/rsnd.h | |
parent | 6b8530cc056efd4a11b034ca5b1e9f7e9563f553 (diff) | |
download | op-kernel-dev-e0c4211854bfebd5507761a2bfddaa9e37074230.zip op-kernel-dev-e0c4211854bfebd5507761a2bfddaa9e37074230.tar.gz |
ASoC: rcar: remove rsnd_kctrl_remove()
Current rcar driver is trying to remove kctrl when remove time.
But, 1) rcar driver can't/shouldn't remove before removing sound
card driver, 2) sound card driver will call snd_ctl_dev_free()
and removes all kctrls by snd_ctl_remove().
Thus, rsnd_kctrl_remove() is not necessary. Current implementation
will get Oops when removing rcar driver after sound card.
This patch fix this issue.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/rsnd.h')
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 7410ec0..81ef3f1 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -611,9 +611,6 @@ struct rsnd_kctrl_cfg_s { u32 val; }; -void _rsnd_kctrl_remove(struct rsnd_kctrl_cfg *cfg); -#define rsnd_kctrl_remove(_cfg) _rsnd_kctrl_remove(&((_cfg).cfg)) - int rsnd_kctrl_new_m(struct rsnd_mod *mod, struct rsnd_dai_stream *io, struct snd_soc_pcm_runtime *rtd, |