Load bluetooth firmwares from /vendor
Change-Id: Icf45a73a615c46410a2b69b98d90efd491644edc
Signed-off-by: FireLord1 <firelord.xda@lineageos.org>
diff --git a/libbt-vendor/include/hw_ar3k.h b/libbt-vendor/include/hw_ar3k.h
index 1b22f4f..03a9f42 100644
--- a/libbt-vendor/include/hw_ar3k.h
+++ b/libbt-vendor/include/hw_ar3k.h
@@ -48,7 +48,7 @@
#error "Unknown byte order"
#endif
-#define FW_PATH "/system/etc/firmware/ar3k/"
+#define FW_PATH "/vendor/firmware/ar3k/"
#define STREAM_TO_UINT16(u16, p) \
{u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) += 2;}
diff --git a/libbt-vendor/include/hw_rome.h b/libbt-vendor/include/hw_rome.h
index 08efb39..8383a60 100644
--- a/libbt-vendor/include/hw_rome.h
+++ b/libbt-vendor/include/hw_rome.h
@@ -151,13 +151,13 @@
#define EXTRACT_BYTE(val, pos) (char) (((val) >> (8 * (pos))) & 0xFF)
#define CALC_SEG_SIZE(len, max) ((plen) % (max))?((plen/max)+1) : ((plen) / (max))
-#define ROME_FW_PATH "/system/etc/firmware/rampatch.img"
-#define ROME_RAMPATCH_TLV_PATH "/system/etc/firmware/rampatch_tlv.img"
-#define ROME_NVM_TLV_PATH "/system/etc/firmware/nvm_tlv.bin"
-#define ROME_RAMPATCH_TLV_1_0_3_PATH "/system/etc/firmware/rampatch_tlv_1.3.tlv"
-#define ROME_NVM_TLV_1_0_3_PATH "/system/etc/firmware/nvm_tlv_1.3.bin"
-#define ROME_RAMPATCH_TLV_2_0_1_PATH "/system/etc/firmware/rampatch_tlv_2.1.tlv"
-#define ROME_NVM_TLV_2_0_1_PATH "/system/etc/firmware/nvm_tlv_2.1.bin"
+#define ROME_FW_PATH "/vendor/firmware/rampatch.img"
+#define ROME_RAMPATCH_TLV_PATH "/vendor/firmware/rampatch_tlv.img"
+#define ROME_NVM_TLV_PATH "/vendor/firmware/nvm_tlv.bin"
+#define ROME_RAMPATCH_TLV_1_0_3_PATH "/vendor/firmware/rampatch_tlv_1.3.tlv"
+#define ROME_NVM_TLV_1_0_3_PATH "/vendor/firmware/nvm_tlv_1.3.bin"
+#define ROME_RAMPATCH_TLV_2_0_1_PATH "/vendor/firmware/rampatch_tlv_2.1.tlv"
+#define ROME_NVM_TLV_2_0_1_PATH "/vendor/firmware/nvm_tlv_2.1.bin"
#define ROME_RAMPATCH_TLV_3_0_0_PATH "/bt_firmware/image/btfw30.tlv"
#define ROME_NVM_TLV_3_0_0_PATH "/bt_firmware/image/btnv30.bin"
#define ROME_RAMPATCH_TLV_3_0_2_PATH "/bt_firmware/image/btfw32.tlv"