[alsa-devel] [PATCH 0/6] ASoC: rsnd: tidyup .remove method

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Feb 9 09:04:42 CET 2015


Hi Mark

> > > If we unbind CPU here, it still has CARD infomation.
> > > And, kernel doesn't call initialize function when re-bind,
> > > and it will panic when playback
> 
> > Is this open bug ?
> > Or, Renesas sound only ?
> > fsi/rsnd both have this issue.
> 
> I'm not aware of anything here - when we rebuild the card we should be
> reinitializing everything.  It's possible this is just broken for
> everyone though, most people don't unload devices and where they do they
> tend to remove the card first.

These are v2 of unbind/bind issue fixup for ASoC.
It adds new snd_soc_remove_card() and temporally remove card from system.
and rebind it again if next component was binded.

Kuninori Morimoto (6):
      ASoC: rsnd: set device data before snd_soc_register_platform/component
      ASoC: soc-core: indicate unregister debug message once
      ASoC: soc-core: add snd_soc_remove_card()
      ASoC: soc-core: deactivate pins in snd_soc_instantiate_card()
      ASoC: soc-core: call soc_cleanup_card_debugfs() from snd_soc_unregister_card()
      ASoC: soc-core: call snd_soc_remove_card() when component del

 include/sound/soc.h      |    1 +
 sound/soc/sh/rcar/core.c |    4 +--
 sound/soc/soc-core.c     |   78 +++++++++++++++++++++++++++++++++-------------
 3 files changed, 59 insertions(+), 24 deletions(-)


More information about the Alsa-devel mailing list