diff options
author | Kuninori Morimoto <[email protected]> | 2018-11-27 07:35:34 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2018-11-28 09:56:45 +0000 |
commit | 9c698e8481a15237a5b1db5f8391dd66d59e42a4 (patch) | |
tree | 8c155be4f878f6687a23842595591719f058cc19 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ffdcc3638c58d55a6fa68b6e5dfd4fb4109652eb (diff) |
ASoC: rsnd: tidyup registering method for rsnd_kctrl_new()
Current rsnd dvc.c is using flags to avoid duplicating register for
MIXer case. OTOH, commit e894efef9ac7 ("ASoC: core: add support to card
rebind") allows to rebind sound card without rebinding all drivers.
Because of above patch and dvc.c flags, it can't re-register kctrl if
only sound card was rebinded, because dvc is keeping old flags.
(Of course it will be no problem if rsnd driver also be rebinded,
but it is not purpose of above patch).
This patch checks current card registered kctrl when registering.
In MIXer case, it can avoid duplicate register if card already has same
kctrl. In rebind case, it can re-register kctrl because card registered
kctl had been removed when unbinding.
This patch is updated version of commit b918f1bc7f1ce ("ASoC: rsnd: DVC
kctrl sets once")
Reported-by: Nguyen Viet Dung <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Tested-by: Nguyen Viet Dung <[email protected]>
Cc: Hiroyuki Yokoyama <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions