summaryrefslogtreecommitdiff
authorRongjun Chen <rongjun.chen@amlogic.com>2017-06-26 09:57:31 (GMT)
committer Rongjun Chen <rongjun.chen@amlogic.com>2017-06-26 09:57:31 (GMT)
commit149751f768db31d8b18ef762a4c22c7a30a4320f (patch)
tree54aadb76e8275fd6c619ca6c4d3a6cc50263d839
parent95dfd303531407aae6dabe3a1bc275b6aad0f544 (diff)
downloadlibbt-149751f768db31d8b18ef762a4c22c7a30a4320f.zip
libbt-149751f768db31d8b18ef762a4c22c7a30a4320f.tar.gz
libbt-149751f768db31d8b18ef762a4c22c7a30a4320f.tar.bz2
PD#146292 bt: fix o-amlogic make fail issue
Change-Id: Ia6169c24d315a0a1f6d1c1b2f5f48a7a39d0685e
Diffstat
-rw-r--r--include/bt_vendor_brcm.h4
-rwxr-xr-xsrc/hardware.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/include/bt_vendor_brcm.h b/include/bt_vendor_brcm.h
index 9887081..8583279 100644
--- a/include/bt_vendor_brcm.h
+++ b/include/bt_vendor_brcm.h
@@ -51,8 +51,12 @@
/* Run-time configuration file */
#ifndef VENDOR_LIB_CONF_FILE
+#ifdef O_AMLOGIC
+#define VENDOR_LIB_CONF_FILE "/vendor/etc/bluetooth/bt_vendor.conf"
+#else
#define VENDOR_LIB_CONF_FILE "/etc/bluetooth/bt_vendor.conf"
#endif
+#endif
/* Device port name where Bluetooth controller attached */
#ifndef BLUETOOTH_UART_DEVICE_PORT
diff --git a/src/hardware.c b/src/hardware.c
index 435f1a4..ac4f240 100755
--- a/src/hardware.c
+++ b/src/hardware.c
@@ -1497,9 +1497,11 @@ int hw_set_audio_state(bt_vendor_op_audio_state_t *p_state)
*******************************************************************************/
int hw_set_patch_file_path(char *p_conf_name, char *p_conf_value, int param)
{
-
- strcpy(fw_patchfile_path, p_conf_value);
-
+#ifdef O_AMLOGIC
+ strcpy(fw_patchfile_path, "/vendor/etc/bluetooth/");
+#else
+ strcpy(fw_patchfile_path, "/etc/bluetooth/");
+#endif
return 0;
}