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

Commit 5986218a authored by Haynes Mathew George's avatar Haynes Mathew George
Browse files

audio: Disallow HiFi record for input stream created with FAST flag

Giving priority to HiFi record adversely affects RTD numbers

Change-Id: Ia988c6525cc0b2a06ca6e689e1f9c0bb3ace6032
CRs-Fixed: 2131918
parent adbbe4f9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6498,8 +6498,9 @@ static bool adev_input_allow_hifi_record(struct audio_device *adev,

    switch (flags) {
        case AUDIO_INPUT_FLAG_NONE:
        case AUDIO_INPUT_FLAG_FAST: // just fast, not fast|raw || fast|mmap
            break;
        case AUDIO_INPUT_FLAG_FAST: // disallow hifi record for FAST as
                                    // it affects RTD numbers over USB
        default:
            return !allowed;
    }