diff options
author | Ziyan <jaraidaniel@gmail.com> | 2014-12-03 12:59:00 +0100 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-04-11 20:24:51 +0200 |
commit | 0b21a0ee34476c934374f0d329a5a54837bf6ee7 (patch) | |
tree | 752bf2b534be20ed33e9750e14316bfa804aa5c8 /audio | |
parent | e4e25a6a70f3ae277b28df777f6c3e16adfeba6d (diff) | |
download | device_samsung_tuna-0b21a0ee34476c934374f0d329a5a54837bf6ee7.zip device_samsung_tuna-0b21a0ee34476c934374f0d329a5a54837bf6ee7.tar.gz device_samsung_tuna-0b21a0ee34476c934374f0d329a5a54837bf6ee7.tar.bz2 |
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.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |