]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: audio-graph: indicate rebind issue
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 3 Sep 2019 08:16:05 +0000 (17:16 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2019 11:36:24 +0000 (12:36 +0100)
commita3fb48d4f52209db84e77fce4270d8ade726b4f2
tree9da77369231a7a16a71b8145ffac01d65061fb44
parentbba6d5d38669505ca3e754421b261e4e07501d80
ASoC: audio-graph: indicate rebind issue

ALSA SoC try to rebind Sound Card if Card/CPU/Codec/Platform
were unbinded and re-binded again.
But, Audio Graph Card might can't rebind again if user do for example

unbind CPU or Codec driver
bind   CPU or Codec driver

Because Audio Graph Card is still pointing old/unbinded
CPU or Codec driver's DAI name at dlc->dai_name.

To avoid this issue, it needs to alloc memory and keep DAI name
even though if CPU or Codec driver was unbinded.
Or, always do unbind/bind at Sound Card.

For now, this patch indicates this issue as FIXME.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87sgpdu75m.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c