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

Commit 75346660 authored by vivek mehta's avatar vivek mehta Committed by Eric Laurent
Browse files

audioflinger: extend max i/p channel to 8 channels

- on open_input stream max channel check is for 2 (FCC_2),
  extend this to 8 (FCC_8)

Bug: 27348418

Change-Id: I0d7e5a101dee0a2effabc3637a1fb73e7ea78ffd
parent 5bdfad1a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2108,8 +2108,8 @@ sp<AudioFlinger::RecordThread> AudioFlinger::openInput_l(audio_module_handle_t m
        audio_is_linear_pcm(config->format) &&
        audio_is_linear_pcm(halconfig.format) &&
        (halconfig.sample_rate <= AUDIO_RESAMPLER_DOWN_RATIO_MAX * config->sample_rate) &&
        (audio_channel_count_from_in_mask(halconfig.channel_mask) <= FCC_2) &&
        (audio_channel_count_from_in_mask(config->channel_mask) <= FCC_2)) {
        (audio_channel_count_from_in_mask(halconfig.channel_mask) <= FCC_8) &&
        (audio_channel_count_from_in_mask(config->channel_mask) <= FCC_8)) {
        // FIXME describe the change proposed by HAL (save old values so we can log them here)
        ALOGV("openInput_l() reopening with proposed sampling rate and channel mask");
        inStream = NULL;