Merge "sound: usb: qmi: Prevent usb_audio_disconnect from getting blocked"

This commit is contained in:
qctecmdr 2023-11-24 04:24:19 -08:00 committed by Gerrit - the friendly Code Review server
commit 9b44d5e6d1

View File

@ -1610,7 +1610,8 @@ static void handle_uaudio_stream_req(struct qmi_handle *handle,
disable_audio_stream(subs);
}
atomic_dec(&chip->usage_count);
if (atomic_dec_and_test(&chip->usage_count) && atomic_read(&chip->shutdown))
wake_up(&chip->shutdown_wait);
response:
if (!req_msg->enable && ret != -EINVAL && ret != -ENODEV) {