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

Commit 218512dc authored by mpang's avatar mpang Committed by Gerrit - the friendly Code Review server
Browse files

audio-hal: fix variables used uninitialized

Fix variables used uninitialized in hal.

CRs-Fixed: 2356801
Change-Id: Ic2c9f3c75fa30216ab4c4d314c5348e8d202c56f
parent 9cc13492
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -546,6 +546,12 @@ bool audio_extn_passthru_is_supported_backend_edid_cfg(struct audio_device *adev
                                                   struct stream_out *out)
{
    struct audio_backend_cfg backend_cfg;
    backend_cfg.sample_rate = CODEC_BACKEND_DEFAULT_SAMPLE_RATE;
    backend_cfg.channels = CODEC_BACKEND_DEFAULT_CHANNELS;
    backend_cfg.bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH;
    backend_cfg.format = AUDIO_FORMAT_PCM_16_BIT;
    backend_cfg.passthrough_enabled = false;

    snd_device_t out_snd_device = SND_DEVICE_NONE;
    int max_edid_channels = platform_edid_get_max_channels(out->dev->platform);

+1 −1
Original line number Diff line number Diff line
@@ -747,7 +747,7 @@ static int spkr_calibrate(int t0_spk_1, int t0_spk_2)
    struct timespec ts;
    bool acquire_device = false;

    status.status = 0;
    memset(&status, 0, sizeof(status));
    memset(&protCfg, 0, sizeof(protCfg));
    if (!adev) {
        ALOGE("%s: Invalid params", __func__);