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

Commit fa634a1a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Audio: KW fixes for audio-hal"

parents da2d6a6a a27605ea
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) {