From 0b21a0ee34476c934374f0d329a5a54837bf6ee7 Mon Sep 17 00:00:00 2001 From: Ziyan Date: Wed, 3 Dec 2014 12:59:00 +0100 Subject: tuna: audio: add parameters to open stream functions Pass device address (and audio source for inputs) to open_output_stream() and open_input_stream() audio HAL functions. Bug: 14815883. --- audio/audio_hw.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/audio_hw.c b/audio/audio_hw.c index b07ad08..0bd0aa7 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -3225,7 +3225,8 @@ static int adev_open_output_stream(struct audio_hw_device *dev, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, - struct audio_stream_out **stream_out) + struct audio_stream_out **stream_out, + const char *address __unused) { struct tuna_audio_device *ladev = (struct tuna_audio_device *)dev; struct tuna_stream_out *out; @@ -3493,7 +3494,9 @@ static int adev_open_input_stream(struct audio_hw_device *dev, audio_devices_t devices, struct audio_config *config, struct audio_stream_in **stream_in, - audio_input_flags_t flags __unused) + audio_input_flags_t flags __unused, + const char *address __unused, + audio_source_t source __unused) { struct tuna_audio_device *ladev = (struct tuna_audio_device *)dev; struct tuna_stream_in *in; -- cgit v1.1