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

Commit 18862186 authored by Andy Hung's avatar Andy Hung
Browse files

Virtualizer: Fix channel configuration capability

Channel masks beyond stereo are not supported by Concert Surround
virtualization at this time.

Test: VirtualizerTest#test4_1SpeakerAnglesCapaMatchesFormatModeCapa
Bug: 122358150
Change-Id: Ib5ea0f8655c1845d5974ec9cc18a821652fac9b4
parent decf9a51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1544,7 +1544,7 @@ int VirtualizerIsDeviceSupported(audio_devices_t deviceType) {
int VirtualizerIsConfigurationSupported(audio_channel_mask_t channelMask,
        audio_devices_t deviceType) {
    uint32_t channelCount = audio_channel_count_from_out_mask(channelMask);
    if (channelCount < 1 || channelCount > LVM_MAX_CHANNELS) {
    if (channelCount < 1 || channelCount > FCC_2) { // TODO: update to 8 channels when supported.
        return -EINVAL;
    }
    return VirtualizerIsDeviceSupported(deviceType);