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

Commit e6806f69 authored by Naresh Tanniru's avatar Naresh Tanniru Committed by Bruno Martins
Browse files

hal: configs: effects: update conf & lib paths

- Update config & make files to
  /vendor path instead /system for
  system and vendor image support

Change-Id: I2c1886441e3d31b9eb4e66caba0d70030a4a8f27
parent 79ef42e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -22,9 +22,9 @@
#include <dlfcn.h>

#ifdef __LP64__
        #define LIB_SPEAKER_BUNDLE "/system/lib64/soundfx/libspeakerbundle.so"
        #define LIB_SPEAKER_BUNDLE "/vendor/lib64/soundfx/libspeakerbundle.so"
#else
        #define LIB_SPEAKER_BUNDLE "/system/lib/soundfx/libspeakerbundle.so"
        #define LIB_SPEAKER_BUNDLE "/vendor/lib/soundfx/libspeakerbundle.so"
#endif

typedef void (*set_mode_t)(int);
+9 −9
Original line number Diff line number Diff line
@@ -42,15 +42,15 @@
#define SSR_PERIOD_SIZE             512
#define SSR_INPUT_FRAME_SIZE        (SSR_PERIOD_SIZE * SSR_PERIOD_COUNT)

#define SURROUND_FILE_1R "/system/etc/surround_sound/filter1r.pcm"
#define SURROUND_FILE_2R "/system/etc/surround_sound/filter2r.pcm"
#define SURROUND_FILE_3R "/system/etc/surround_sound/filter3r.pcm"
#define SURROUND_FILE_4R "/system/etc/surround_sound/filter4r.pcm"

#define SURROUND_FILE_1I "/system/etc/surround_sound/filter1i.pcm"
#define SURROUND_FILE_2I "/system/etc/surround_sound/filter2i.pcm"
#define SURROUND_FILE_3I "/system/etc/surround_sound/filter3i.pcm"
#define SURROUND_FILE_4I "/system/etc/surround_sound/filter4i.pcm"
#define SURROUND_FILE_1R "/vendor/etc/surround_sound/filter1r.pcm"
#define SURROUND_FILE_2R "/vendor/etc/surround_sound/filter2r.pcm"
#define SURROUND_FILE_3R "/vendor/etc/surround_sound/filter3r.pcm"
#define SURROUND_FILE_4R "/vendor/etc/surround_sound/filter4r.pcm"

#define SURROUND_FILE_1I "/vendor/etc/surround_sound/filter1i.pcm"
#define SURROUND_FILE_2I "/vendor/etc/surround_sound/filter2i.pcm"
#define SURROUND_FILE_3I "/vendor/etc/surround_sound/filter3i.pcm"
#define SURROUND_FILE_4I "/vendor/etc/surround_sound/filter4i.pcm"

#define LIB_SURROUND_PROC       "libsurround_proc.so"

+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@
 * This is the sysfs path for the HDMI audio data block
 */
#define AUDIO_DATA_BLOCK_PATH "/sys/class/graphics/fb1/audio_data_block"
#define MIXER_XML_PATH "/system/etc/mixer_paths.xml"
#define MIXER_XML_PATH "/vendor/etc/mixer_paths.xml"

/*
 * This file will have a maximum of 38 bytes:
+4 −4
Original line number Diff line number Diff line
@@ -40,9 +40,9 @@

#define SOUND_TRIGGER_DEVICE_HANDSET_MONO_LOW_POWER_ACDB_ID (100)

#define MIXER_XML_PATH "/system/etc/mixer_paths.xml"
#define MIXER_XML_PATH_AUXPCM "/system/etc/mixer_paths_auxpcm.xml"
#define MIXER_XML_PATH_WCD9330 "/system/etc/mixer_paths_wcd9330.xml"
#define MIXER_XML_PATH "/vendor/etc/mixer_paths.xml"
#define MIXER_XML_PATH_AUXPCM "/vendor/etc/mixer_paths_auxpcm.xml"
#define MIXER_XML_PATH_WCD9330 "/vendor/etc/mixer_paths_wcd9330.xml"
#define LIB_ACDB_LOADER "libacdbloader.so"
#define AUDIO_DATA_BLOCK_MIXER_CTL "HDMI EDID"

@@ -881,7 +881,7 @@ static void initialize_huawei_sound_param_path(void *acdb_handle)
                fclose(f);
            }

            snprintf(path, sizeof(path), "/system/etc/sound_param/%s/", product);
            snprintf(path, sizeof(path), "/vendor/etc/sound_param/%s/", product);
            ALOGI("%s: Using param_path %s", __func__, path);

            set_param_path(path);
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
#include "platform_api.h"
#include <platform.h>

#define PLATFORM_INFO_XML_PATH      "/system/etc/audio_platform_info.xml"
#define PLATFORM_INFO_XML_PATH      "/vendor/etc/audio_platform_info.xml"
#define BUF_SIZE                    1024

typedef enum {
Loading