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

Commit d192fab5 authored by Kumar Anurag Singh's avatar Kumar Anurag Singh
Browse files

hal: kona: Fix playback for 32bit float file.

32-bit float audio file was unable to get played as float to fixed conversion
was not happening. Add support so that conversion from float to fix happens.

Additionally the hdmi caps are now read as "adev_set_parameters" api is called with
respective controller/stream values.

Change-Id: I45174a45c68453edb1ffea05395fad06ebd8320a
(cherry picked from commit e2195922d4da8c88ea3aee323a28e5c7f23aac4a)
parent b33b4428
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8329,7 +8329,8 @@ int adev_open_output_stream(struct audio_hw_device *dev,

    if (direct_dev &&
        (audio_is_linear_pcm(out->format) ||
         config->format == AUDIO_FORMAT_DEFAULT)) {
         config->format == AUDIO_FORMAT_DEFAULT) &&
        out->flags == AUDIO_OUTPUT_FLAG_NONE) {
        audio_format_t req_format = config->format;
        audio_channel_mask_t req_channel_mask = config->channel_mask;
        uint32_t req_sample_rate = config->sample_rate;