OSDN Git Service

Add audio_input_flags_t to HAL open_input_stream
authorGlenn Kasten <gkasten@google.com>
Tue, 15 Jul 2014 18:10:38 +0000 (11:10 -0700)
committerGlenn Kasten <gkasten@google.com>
Wed, 16 Jul 2014 19:29:35 +0000 (12:29 -0700)
Change-Id: I3519bfa45809e064d19473ebe6489c5249d306a8

include/hardware/audio.h
modules/audio/audio_hw.c
modules/audio_remote_submix/audio_hw.cpp
modules/usbaudio/audio_hw.c

index 7ff5b78..95111dd 100644 (file)
@@ -579,7 +579,8 @@ struct audio_hw_device {
                              audio_io_handle_t handle,
                              audio_devices_t devices,
                              struct audio_config *config,
-                             struct audio_stream_in **stream_in);
+                             struct audio_stream_in **stream_in,
+                             audio_input_flags_t flags);
 
     void (*close_input_stream)(struct audio_hw_device *dev,
                                struct audio_stream_in *stream_in);
index 2f44d95..ef070c1 100644 (file)
@@ -327,7 +327,8 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
                                   audio_io_handle_t handle,
                                   audio_devices_t devices,
                                   struct audio_config *config,
-                                  struct audio_stream_in **stream_in)
+                                  struct audio_stream_in **stream_in,
+                                  audio_input_flags_t flags __unused)
 {
     struct stub_audio_device *ladev = (struct stub_audio_device *)dev;
     struct stub_stream_in *in;
index c7e4305..9e824b1 100644 (file)
@@ -1373,7 +1373,8 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
                                   audio_io_handle_t handle,
                                   audio_devices_t devices,
                                   struct audio_config *config,
-                                  struct audio_stream_in **stream_in)
+                                  struct audio_stream_in **stream_in,
+                                  audio_input_flags_t flags __unused)
 {
     struct submix_audio_device *rsxadev = audio_hw_device_get_submix_audio_device(dev);
     struct submix_stream_in *in;
index 4af01af..8fbd528 100644 (file)
@@ -1659,7 +1659,8 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
                                   audio_io_handle_t handle,
                                   audio_devices_t devices,
                                   struct audio_config *config,
-                                  struct audio_stream_in **stream_in)
+                                  struct audio_stream_in **stream_in,
+                                  audio_input_flags_t flags __unused)
 {
     ALOGV("usb: in adev_open_input_stream() rate:%" PRIu32 ", chanMask:0x%" PRIX32 ", fmt:%" PRIu8,
           config->sample_rate, config->channel_mask, config->format);