Explorar o código

Merge "Revert "Revert "dsp: voice_mhi: use modified mhi sync/put api""" into audio-drivers.lnx.4.0

Linux Build Service Account %!s(int64=5) %!d(string=hai) anos
pai
achega
586382a701
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      dsp/voice_mhi.c

+ 3 - 2
dsp/voice_mhi.c

@@ -228,7 +228,8 @@ int voice_mhi_start(void)
 			goto done;
 		}
 		if (voice_mhi_lcl.vote_count == 0) {
-			ret = mhi_device_get_sync(voice_mhi_lcl.mhi_dev);
+			ret = mhi_device_get_sync(voice_mhi_lcl.mhi_dev,
+					MHI_VOTE_DEVICE);
 			if (ret) {
 				pr_err("%s: mhi_device_get_sync failed\n",
 					   __func__);
@@ -269,7 +270,7 @@ int voice_mhi_end(void)
 		}
 
 		if (voice_mhi_lcl.vote_count == 1)
-			mhi_device_put(voice_mhi_lcl.mhi_dev);
+			mhi_device_put(voice_mhi_lcl.mhi_dev, MHI_VOTE_DEVICE);
 		voice_mhi_lcl.vote_count--;
 	}
 	mutex_unlock(&voice_mhi_lcl.mutex);