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

Commit 0e0e846f authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Prepare for additional capture formats

Change-Id: Ib10b004f0029191b33a97671e41b0d86ebfbe0b9
parent 758799ce
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1342,9 +1342,9 @@ sp<IAudioRecord> AudioFlinger::openRecord(
        goto Exit;
    }

    // FIXME when we support more formats, add audio_is_valid_format(format)
    //       and any explicit restrictions if audio_is_linear_pcm(format)
    if (format != AUDIO_FORMAT_PCM_16_BIT) {
    // we don't yet support anything other than 16-bit PCM
    if (!(audio_is_valid_format(format) &&
            audio_is_linear_pcm(format) && format == AUDIO_FORMAT_PCM_16_BIT)) {
        ALOGE("openRecord() invalid format %#x", format);
        lStatus = BAD_VALUE;
        goto Exit;