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

Commit afe17c76 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Shiv Maliyappanahalli
Browse files

hal: Fix data initialization errors

-initialize uninitialized variables to avoid error.

Change-Id: Ic11eeceec4b770100efc0e480e351bf477fbf496
parent 1b9b30c2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6699,6 +6699,7 @@ bool platform_send_gain_dep_cal(void *platform,

                ALOGV("%s: out device is %d", __func__,  usecase->out_snd_device);
                app_type = usecase->stream.out->app_type_cfg.app_type;
                acdb_dev_id = acdb_device_table[usecase->out_snd_device];

                if (platform_split_snd_device(my_data, usecase->out_snd_device,
                                              &num_devices, new_snd_device) < 0)
+1 −0
Original line number Diff line number Diff line
@@ -979,6 +979,7 @@ bool platform_send_gain_dep_cal(void *platform, int level) {

                ALOGV("%s: out device is %d", __func__,  usecase->out_snd_device);
                app_type = usecase->stream.out->app_type_cfg.app_type;
                acdb_dev_id = acdb_device_table[usecase->out_snd_device];

                if (platform_split_snd_device(my_data, usecase->out_snd_device,
                                              &num_devices, new_snd_device) < 0)