ASoC: rmmod fixes for audio drivers

For remove module(rmmod), update drivers
to cleanup resources and allow insert module
again without any issue.

Change-Id: Iddc6e5e11d986359afd3100bf3c5eab70cb1c1eb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2017-11-28 12:40:22 +05:30
committed by Meng Wang
parent da56c67bc4
commit 30ad751aac
11 changed files with 120 additions and 72 deletions

View File

@@ -7636,6 +7636,12 @@ int __init afe_init(void)
void afe_exit(void)
{
if (this_afe.apr) {
apr_reset(this_afe.apr);
atomic_set(&this_afe.state, 0);
this_afe.apr = NULL;
rtac_set_afe_handle(this_afe.apr);
}
afe_delete_cal_data();
config_debug_fs_exit();