forked from rubenslte/android_kernel_samsung_msm8226
rtac: Check active asm clients before removing adm device
Change-Id: I2c666d5caeb955bf8bbefdc1fbf3074583bbd42d Signed-off-by: Ramjee Singh <ramjee@codeaurora.org>
This commit is contained in:
@@ -487,7 +487,7 @@ static void rtac_remove_adm_device_v2(u32 port_id)
|
||||
|
||||
/* look for device */
|
||||
for (i = 0; i < rtac_adm_data_v2.num_of_dev; i++) {
|
||||
if (rtac_adm_data_v2.device[i].afe_port == port_id) {
|
||||
if (rtac_adm_data_v2.device[i].afe_port == port_id && rtac_adm_data_v2.device[i].num_of_popp == 0) {
|
||||
memset(&rtac_adm_data_v2.device[i], 0,
|
||||
sizeof(rtac_adm_data_v2.device[i]));
|
||||
rtac_adm_data_v2.num_of_dev--;
|
||||
|
||||
Reference in New Issue
Block a user