summaryrefslogtreecommitdiff
path: root/android/audio-msg.h
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2014-05-26 15:16:34 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-06-01 10:17:16 +0300
commit27f17d4083f725c150f310186ca7d73d29064ccc (patch)
treea81f7d06de45d5b05b4a869522c8383ce1ec5064 /android/audio-msg.h
parent5dab4aaafaeff8d3a71e8e03eecbe62392075d19 (diff)
downloadbluez-27f17d4083f725c150f310186ca7d73d29064ccc.tar.gz
android/hal-audio: Allow to autoselect endpoint in open_stream IPC
audio_open_output_stream always tries to open 1st registered endpoint based on assumption that there is only one endpoint registered anyway (due to support for only one codec). With more endpoints available in future we need to be able to retrieve endpoint id which is connected and use it for streaming. This patch adds special case for id=0 in open_stream IPC to return 1st opened endpoint on BlueZ side which is enough for now since only one headset can be connected at any time (i.e. we should not have more than 1 endpoint opened).
Diffstat (limited to 'android/audio-msg.h')
-rw-r--r--android/audio-msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/audio-msg.h b/android/audio-msg.h
index 5981355da..7b9553ba3 100644
--- a/android/audio-msg.h
+++ b/android/audio-msg.h
@@ -61,6 +61,7 @@ struct audio_cmd_open_stream {
} __attribute__((packed));
struct audio_rsp_open_stream {
+ uint16_t id;
uint16_t mtu;
struct audio_preset preset[0];
} __attribute__((packed));