summaryrefslogtreecommitdiff
path: root/tizen-audio-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'tizen-audio-internal.h')
-rw-r--r--tizen-audio-internal.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/tizen-audio-internal.h b/tizen-audio-internal.h
index b2ab3b7..81ec92a 100644
--- a/tizen-audio-internal.h
+++ b/tizen-audio-internal.h
@@ -118,7 +118,10 @@ typedef struct device_type {
#define ALSA_DEFAULT_CARD "universal7270la"
#define PLAYBACK_PCM_DEVICE "hw:0,0"
#define CAPTURE_PCM_DEVICE "hw:0,0"
+
+/* DAI PCM DEVICE */
#define VOICE_PCM_DEVICE "hw:0,1"
+#define BT_PCM_DEVICE "hw:0,2"
/* hw:0,0 */
#define PLAYBACK_CARD_ID 0
@@ -148,14 +151,18 @@ typedef enum audio_route_mode {
VERB_VOIP,
} audio_route_mode_t;
+typedef struct {
+ snd_pcm_t *in;
+ snd_pcm_t *out;
+} audio_pcm_devices_t;
+
typedef struct audio_hal_device {
uint32_t active_in;
uint32_t active_out;
- snd_pcm_t *pcm_in;
- snd_pcm_t *pcm_out;
- pthread_mutex_t pcm_lock;
- uint32_t pcm_count;
+ audio_pcm_devices_t voice_pcm;
+ audio_pcm_devices_t bt_pcm;
audio_route_mode_t mode;
+ uint32_t bt_wideband;
} audio_hal_device_t;
/* Volume */
@@ -194,6 +201,11 @@ typedef struct audio_volume_value_table {
} audio_volume_value_table_t;
enum {
+ AUDIO_DEVICE_DIRECTION_IN = 0x01,
+ AUDIO_DEVICE_DIRECTION_OUT = 0x02
+};
+
+enum {
AUDIO_VOLUME_DEVICE_DEFAULT,
AUDIO_VOLUME_DEVICE_MAX,
};