Merge "sound: usb: qmi: Prevent usb_audio_disconnect from getting blocked"
This commit is contained in:
commit
9b44d5e6d1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user