[alsa-devel] Unregister and register the sound card
bramacha at codeaurora.org
Thu Jul 26 07:48:50 CEST 2012
After the kernel has booted up and sound card detection is also fine, if
there is a requirement
To unregister the sound card and re-register it back to ALSA SOC framework,
what is the recommendation,
Especially when platform, codec & cpu dai drivers are registering with ALSA
framework only at bootime ?
Am noticing that when sound card is
unregistered(platform_device_unregister), all dai links gets deregistered
(pls note the driver is not removed from kernel, only the device is removed
from alsa framework)
but when I try to add the same using platform_device_add(soc-audio),
observe that dai links registration doesn't go thru fine as the cpu dais are
not re-registered back to ALSA framework.
This is because the probes of the cpu dais weren't called as it was not
never unregistered with the kernel.
What is the best way to overcome this pbm ?
More information about the Alsa-devel