Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b1a0967 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audio: check for USB device state when opening in/out stream"

parents fe514bae f6ba0ba1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ bool audio_extn_usb_connected(struct str_parms *parms) {
    struct usb_card_config *usb_card_info;
    bool usb_connected = false;

    if (str_parms_get_int(parms, "card", &card) >= 0) {
    if ((parms != NULL) && str_parms_get_int(parms, "card", &card) >= 0) {
        usb_connected = audio_extn_usb_alive(card);
    } else {
        list_for_each(node_i, &usbmod->usb_card_conf_list) {