exynos: audiohal_comv1: Add missing device and stream definitions
Change-Id: Iab83813fbeae00e09b1b77f7d13fa0a2738e320a
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/include/libaudio/audiohal_comv1/audio_devices.h b/include/libaudio/audiohal_comv1/audio_devices.h
index 9f94dc6..b3bca3f 100644
--- a/include/libaudio/audiohal_comv1/audio_devices.h
+++ b/include/libaudio/audiohal_comv1/audio_devices.h
@@ -26,6 +26,8 @@
// Playback single output Devices
DEVICE_HANDSET = 0, // handset or receiver
DEVICE_SPEAKER,
+ DEVICE_SPEAKER_DEX,
+ DEVICE_SPEAKER_DUAL,
DEVICE_HEADSET, // headphone + mic
DEVICE_HEADPHONE, // headphone or earphone
DEVICE_USB_HEADSET,
@@ -54,9 +56,12 @@
DEVICE_HEADSET_MAIN_MIC,
DEVICE_HEADPHONE_MIC,
DEVICE_SPEAKER_MIC,
+ DEVICE_SPEAKER_DEX_MIC,
DEVICE_STEREO_MIC,
DEVICE_FULL_MIC,
+ DEVICE_USB_FULL_MIC,
+ DEVICE_USB_HCO_MIC,
DEVICE_HCO_MIC,
DEVICE_VCO_MIC,
diff --git a/include/libaudio/audiohal_comv1/audio_tables.h b/include/libaudio/audiohal_comv1/audio_tables.h
index c1a00cb..2234b6e 100644
--- a/include/libaudio/audiohal_comv1/audio_tables.h
+++ b/include/libaudio/audiohal_comv1/audio_tables.h
@@ -60,6 +60,8 @@
[AUSAGE_VOICE_CALL_HAC] = "incall_hac",
[AUSAGE_TTY] = "tty_mode",
[AUSAGE_INCALL_MUSIC] = "incall_music",
+ [AUSAGE_CALL_FORWARDING_PRIMARY] = "call_forwarding_primary",
+ [AUSAGE_SPECTRO] = "call_spectro",
[AUSAGE_WIFI_CALL] = "wificall",
[AUSAGE_VIDEO_CALL] = "video_call",
@@ -75,6 +77,9 @@
[AUSAGE_FM_RADIO_TUNER] = "fm_radio",
[AUSAGE_FM_RADIO_CAPTURE] = "fm_radio",
+ [AUSAGE_USB_FM_RADIO] = "usbfm_radio",
+ [AUSAGE_REMOTE_MIC] = "remote_mic",
+
#ifdef SUPPORT_STHAL_INTERFACE
[AUSAGE_HOTWORD_SEAMLESS] = "hotword_seamless",
[AUSAGE_HOTWORD_RECORD] = "hotword_record",
@@ -101,6 +106,8 @@
[AUSAGE_VOICE_CALL_HAC] = "incall_hac",
[AUSAGE_TTY] = "tty_mode",
[AUSAGE_INCALL_MUSIC] = "incall_music",
+ [AUSAGE_CALL_FORWARDING_PRIMARY] = "call_forwarding_primary",
+ [AUSAGE_SPECTRO] = "call_spectro",
[AUSAGE_WIFI_CALL] = "wificall",
[AUSAGE_VIDEO_CALL] = "video_call",
@@ -116,6 +123,8 @@
[AUSAGE_FM_RADIO_TUNER] = "fm_radio",
[AUSAGE_FM_RADIO_CAPTURE] = "fm_radio",
+ [AUSAGE_USB_FM_RADIO] = "usbfm_radio",
+ [AUSAGE_REMOTE_MIC] = "remote_mic",
#ifdef SUPPORT_STHAL_INTERFACE
[AUSAGE_HOTWORD_SEAMLESS] = "hotword_seamless", //dummy definition not used
@@ -138,6 +147,8 @@
// Playback single output Devices
[DEVICE_HANDSET] = "handset",
[DEVICE_SPEAKER] = "speaker",
+ [DEVICE_SPEAKER_DEX] = "dex-speaker",
+ [DEVICE_SPEAKER_DUAL] = "dual-speaker",
[DEVICE_HEADSET] = "headset",
[DEVICE_HEADPHONE] = "headphone",
[DEVICE_USB_HEADSET] = "usb-headset",
@@ -166,9 +177,12 @@
[DEVICE_HEADSET_MAIN_MIC] = "headset-main-mic",
[DEVICE_HEADPHONE_MIC] = "headphone-mic",
[DEVICE_SPEAKER_MIC] = "speaker-mic",
+ [DEVICE_SPEAKER_DEX_MIC] = "dex-speaker-mic",
[DEVICE_STEREO_MIC] = "dualmic",
[DEVICE_FULL_MIC] = "full-mic",
+ [DEVICE_USB_FULL_MIC] = "usb-full-mic",
+ [DEVICE_USB_HCO_MIC] = "usb-hco-mic",
[DEVICE_HCO_MIC] = "hco-mic",
[DEVICE_VCO_MIC] = "vco-mic",
diff --git a/include/libaudio/audiohal_comv1/audio_usages.h b/include/libaudio/audiohal_comv1/audio_usages.h
index ed6a99f..ecf38a2 100644
--- a/include/libaudio/audiohal_comv1/audio_usages.h
+++ b/include/libaudio/audiohal_comv1/audio_usages.h
@@ -41,7 +41,9 @@
AUSAGE_VOICE_CALL_HAC,
AUSAGE_TTY,
AUSAGE_INCALL_MUSIC, //Music playback during CP call, sent to other device as CP Tx
- AUSAGE_CPCALL_MAX = AUSAGE_INCALL_MUSIC,
+ AUSAGE_CALL_FORWARDING_PRIMARY,
+ AUSAGE_SPECTRO,
+ AUSAGE_CPCALL_MAX = AUSAGE_SPECTRO,
AUSAGE_APCALL_MIN,
AUSAGE_WIFI_CALL = AUSAGE_APCALL_MIN,
@@ -62,6 +64,8 @@
// Other Audio Usages
AUSAGE_FM_RADIO_TUNER, // for FM radio playback
AUSAGE_FM_RADIO_CAPTURE, // for FM radio capture
+ AUSAGE_USB_FM_RADIO,
+ AUSAGE_REMOTE_MIC,
// Voice WakeUp Usages
#ifdef SUPPORT_STHAL_INTERFACE