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

Commit 5857aebf authored by Ramjee Singh's avatar Ramjee Singh Committed by Shiv Maliyappanahalli
Browse files

hal: VTS fix for supported channel mask

- HAL output stream does not override default supported
  channel mask value. VTS client fails as requested
  channel mask(MONO) is not listed in supported channel
  mask

- HAL Output is opened based on config passed and
  local supported configuration. Output supported
  channel mask should be overridden with output stream
  channel mask

Change-Id: Ifaee3e5756b7cfe9dd91e627826683f39473120d
parent 44dd7704
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4305,7 +4305,10 @@ int adev_open_output_stream(struct audio_hw_device *dev,
    format = out->format = config->format;
    out->sample_rate = config->sample_rate;
    out->channel_mask = config->channel_mask;
    if (out->channel_mask == AUDIO_CHANNEL_NONE)
        out->supported_channel_masks[0] = AUDIO_CHANNEL_OUT_STEREO;
    else
        out->supported_channel_masks[0] = out->channel_mask;
    out->handle = handle;
    out->bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH;
    out->non_blocking = 0;