summaryrefslogtreecommitdiffstats
path: root/audio/audio_hw.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audio_hw.h')
-rw-r--r--audio/audio_hw.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/audio/audio_hw.h b/audio/audio_hw.h
index 33050c3..4d99bc7 100644
--- a/audio/audio_hw.h
+++ b/audio/audio_hw.h
@@ -64,18 +64,9 @@
/* sampling rate when using VX port for wide band */
#define VX_WB_SAMPLING_RATE 16000
-#define MAX_NUM_VOLUME_FILES 6
-#define AUDIO_DIR "/data/local/audio"
-
-/* in-call files */
-#define INCALL_EARPIECE "/data/local/audio/incall_earpiece"
-#define INCALL_HEADPHONE "/data/local/audio/incall_headphone"
-#define INCALL_SPEAKER "/data/local/audio/incall_speaker"
-#define INCALL_BT "/data/local/audio/incall_bt"
-
-/* out stream files */
-#define OUT_HEADPHONE "/data/local/audio/out_headphone"
-#define OUT_SPEAKER "/data/local/audio/out_speaker"
+/* product-specific defines */
+#define PRODUCT_DEVICE_PROPERTY "ro.product.device"
+#define PRODUCT_NAME_PROPERTY "ro.product.name"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
@@ -113,14 +104,6 @@ enum tty_modes {
TTY_MODE_FULL
};
-char *volume_file[MAX_NUM_VOLUME_FILES] = {
- INCALL_EARPIECE,
- INCALL_HEADPHONE,
- INCALL_SPEAKER,
- INCALL_BT,
- OUT_HEADPHONE,
- OUT_SPEAKER
-};
/* ACDB Device ID macros */
#define DEVICE_HANDSET_RX_ACDB_ID 7 // HANDSET_SPKR
#define DEVICE_HANDSET_TX_ACDB_ID 4 // HANDSET_MIC
@@ -172,8 +155,6 @@ struct mixer_ctls
{
struct mixer_ctl *mixinl_in1l_volume;
struct mixer_ctl *mixinl_in2l_volume;
- struct mixer_ctl *speaker_volume;
- struct mixer_ctl *headphone_volume;
};
struct route_setting