kernel-fxtec-pro1x/sound
Kuninori Morimoto 9852d0c676 ASoC: rsnd: fixup MIX kctrl registration
commit 7aea8a9d71d54f449f49e20324df06341cc18395 upstream.

Renesas sound device has many IPs and many situations.
If platform/board uses MIXer, situation will be more complex.
To avoid duplicate DVC kctrl registration when MIXer was used,
it had original flags.
But it was issue when sound card was re-binded, because
no one can't cleanup this flags then.

To solve this issue, commit 9c698e8481a15237a ("ASoC: rsnd: tidyup
registering method for rsnd_kctrl_new()") checks registered
card->controls, because if card was re-binded, these were cleanuped
automatically. This patch could solve re-binding issue.
But, it start to avoid MIX kctrl.

To solve these issues, we need below.
To avoid card re-binding issue: check registered card->controls
To avoid duplicate DVC registration: check registered rsnd_kctrl_cfg
To allow multiple MIX registration: check registered rsnd_kctrl_cfg
This patch do it.

Fixes: 9c698e8481a15237a ("ASoC: rsnd: tidyup registering method for rsnd_kctrl_new()")
Reported-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-By: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-13 08:52:57 +01:00
..
ac97 ALSA: ac97: Fix double free of ac97_codec_device 2019-07-31 07:27:11 +02:00
aoa
arm
atmel
core ALSA: pcm: oss: Avoid potential buffer overflows 2019-12-13 08:52:37 +01:00
drivers
firewire ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback 2019-12-01 09:16:13 +01:00
hda ALSA: hda: Fix mismatch for register mask and value in ext controller. 2019-11-24 08:19:47 +01:00
i2c ALSA: i2c/cs8427: Fix int to char conversion 2019-12-01 09:16:36 +01:00
isa
mips
oss
parisc
pci ALSA: hda - Fix pending unsol events at shutdown 2019-12-13 08:52:53 +01:00
pcmcia
ppc
sh
soc ASoC: rsnd: fixup MIX kctrl registration 2019-12-13 08:52:57 +01:00
sparc
spi
synth
usb ALSA: usb-audio: Fix NULL dereference at parsing BADD 2019-12-01 09:17:38 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c sound: fix a memory leak bug 2019-08-16 10:12:39 +02:00