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

Commit a27605ea authored by E V Ravi's avatar E V Ravi Committed by Derek Chen
Browse files

Audio: KW fixes for audio-hal



Fix KW in auto_hal for audio-hal component.

Signed-off-by: default avatarE V Ravi <evenka@codeaurora.org>
Change-Id: I501cfe37538262738cbc142d509f92b8799a5d0c
parent d4b3e7c7
Loading
Loading
Loading
Loading

hal/audio_extn/auto_hal.c

100644 → 100755
+10 −0
Original line number Diff line number Diff line
@@ -151,6 +151,11 @@ int auto_hal_create_audio_patch(struct audio_hw_device *dev,
                                                sources->ext.device.address);
        } else {
            address = (char *)calloc(1, 1);
            if (address == NULL) {
                ALOGE("%s: failed to get address",__func__);
                ret = -EFAULT;
                goto error;
            }
        }
        parms = str_parms_create_str(address);
        if (!parms) {
@@ -185,6 +190,11 @@ int auto_hal_create_audio_patch(struct audio_hw_device *dev,
                                                sinks->ext.device.address);
        } else {
            address = (char *)calloc(1, 1);
            if (address == NULL) {
                ALOGE("%s: failed to get address",__func__);
                ret = -EFAULT;
                goto error;
            }
        }
        parms = str_parms_create_str(address);
        if (!parms) {