Commit: 27f17d4083f725c150f310186ca7d73d29064ccc
Parent: 5dab4aaafaeff8d3a71e8e03eecbe62392075d19
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-06-01 10:17:16
Tree: a81f7d06de45d5b05b4a869522c8383ce1ec5064

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

M android/a2dp.c | 6 +++++-
M android/audio-msg.h | 1 +
M android/hal-audio.c | 36 ++++++++++++++++++++++++++++- - - - - - - -

3 files changed, 34 insertions(+), 9 deletions(-)

View Full Diff | Patch