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

Commit b93cee2e authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "Virtualizer: Fix channel configuration capability"

parents 11746099 18862186
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);