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

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

Merge "Hal: Add check for usb device"

parents d358d7aa 2ab8c5a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6724,7 +6724,7 @@ static bool platform_check_capture_codec_backend_cfg(struct audio_device* adev,
        bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH;
        sample_rate =  CODEC_BACKEND_DEFAULT_SAMPLE_RATE;
        channels = CODEC_BACKEND_DEFAULT_TX_CHANNELS;
    } else if (my_data->is_internal_codec) {
    } else if (my_data->is_internal_codec && !audio_is_usb_in_device(snd_device)) {
        sample_rate =  CODEC_BACKEND_DEFAULT_SAMPLE_RATE;
        channels = CODEC_BACKEND_DEFAULT_TX_CHANNELS;
        if (adev->active_input->bit_width == 24)