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

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

Merge "hal: fix misc audio hal errors"

parents 99c855a6 2995f669
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@

#include <stdlib.h>
#include <dlfcn.h>
#include <cutils/log.h>
#include <log/log.h>
#include <cutils/list.h>
#include <time.h>
#include "acdb.h"
+1 −1
Original line number Diff line number Diff line
@@ -62,8 +62,8 @@ void AHalConfigHelper::initConfigHelper(bool isVendorEnhancedFwk)
                     dlsym(handle, "getAudioHalExtConfigs");
        if (!getAHalConfigs) {
            ALOGE("%s: Could not find symbol: %s", __FUNCTION__, dlerror());
            handle = nullptr;
            dlclose(handle);
            handle = nullptr;
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@
#include <stdlib.h>
#include <sys/resource.h>
#include <sys/prctl.h>
#include <cutils/log.h>
#include <log/log.h>
#include <cutils/sched_policy.h>
#include <system/thread_defs.h>
#include <sound/asound.h>
+2 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ void audio_extn_set_snd_card_split(const char* in_snd_card_name)
       <target name>-<sound card name>-<form factor>-snd-card
       parse target name, sound card name and form factor
    */
    char *snd_card_name = strdup(in_snd_card_name);
    char *snd_card_name = NULL;
    char *tmp = NULL;
    char *device = NULL;
    char *snd_card = NULL;
@@ -122,6 +122,7 @@ void audio_extn_set_snd_card_split(const char* in_snd_card_name)
        ALOGE("%s: snd_card_name passed is NULL", __func__);
        goto on_error;
    }
    snd_card_name = strdup(in_snd_card_name);

    device = strtok_r(snd_card_name, "-", &tmp);
    if (device == NULL) {
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@

#include <errno.h>
#include <pthread.h>
#include <cutils/log.h>
#include <log/log.h>
#include <math.h>
#include <audio_hw.h>
#include "audio_extn.h"
Loading