summaryrefslogtreecommitdiffstats
path: root/audio/audio_hw.h
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2013-06-10 11:04:08 -0400
committersbrissen <sbrissen@hotmail.com>2013-06-13 09:34:25 -0400
commit56b68617e0dff7e1f4cf879b8531ad57037d9fac (patch)
tree89d7935374b1c409040b8901bbe33dba6242f733 /audio/audio_hw.h
parentd4f8a12bef518d8af58f89707f297b557c298f02 (diff)
downloaddevice_samsung_t0lte-56b68617e0dff7e1f4cf879b8531ad57037d9fac.tar.gz
device_samsung_t0lte-56b68617e0dff7e1f4cf879b8531ad57037d9fac.tar.bz2
device_samsung_t0lte-56b68617e0dff7e1f4cf879b8531ad57037d9fac.zip
t0lte: user configureable voice/streaming volumes [1/2]
This uses 4 files to store the voice volume: incall_earpiece, incall_headphone, incall_speaker, incall_bt, and 2 for streaming volume: out_speaker, out_headphone located /data/local/audio. Change-Id: I4269dc65d48e04b5e908b20704128241683d5a80
Diffstat (limited to 'audio/audio_hw.h')
-rw-r--r--audio/audio_hw.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/audio/audio_hw.h b/audio/audio_hw.h
index a35fd5a..97c9737 100644
--- a/audio/audio_hw.h
+++ b/audio/audio_hw.h
@@ -66,9 +66,18 @@
/* sampling rate when using VX port for wide band */
#define VX_WB_SAMPLING_RATE 16000
-/* product-specific defines */
-#define PRODUCT_DEVICE_PROPERTY "ro.product.device"
-#define PRODUCT_NAME_PROPERTY "ro.product.name"
+#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"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
@@ -106,6 +115,15 @@ 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
@@ -157,6 +175,8 @@ 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