OSDN Git Service

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)
commit39c66b6ef6f3aaf5bac61555db70ffb2864161c6
tree385035e1f15061ef5eeb1c1a3f51e195cd06d0eb
parent6fb035502956ad1f338ca61c057653d5372ffd8c
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