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

Commit d08ce327 authored by Meng Wang's avatar Meng Wang
Browse files

hal: update channel for haptics usecase

Channel for audio stream in haptics content doesn't
remove haptics channel and assign incorrect channel
when calling pcm_open. Update channel for haptics
usecase.

Change-Id: I87f795ddb3f20008093c1827a7ff9cb338e0ce48
parent ee00824d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8142,7 +8142,7 @@ int adev_open_output_stream(struct audio_hw_device *dev,
            else
                adev->haptics_config = pcm_config_haptics;

            out->config.channels =
            channels =
                audio_channel_count_from_out_mask(out->channel_mask & ~AUDIO_CHANNEL_HAPTIC_ALL);

            if (force_haptic_path) {