]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: indicate rebind issue
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 3 Sep 2019 08:15:54 +0000 (17:15 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2019 11:36:06 +0000 (12:36 +0100)
commitbba6d5d38669505ca3e754421b261e4e07501d80
tree385035e1f15061ef5eeb1c1a3f51e195cd06d0eb
parent55806231a987a80b87738f9df5577925e2bd95da
ASoC: simple-card: indicate rebind issue

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

unbind CPU or Codec driver
bind   CPU or Codec driver

Because Simple 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/87tv9tu75x.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c