OSDN Git Service

Fix error type in microphone characteristics.
authorjiabin <jiabin@google.com>
Thu, 25 Jan 2018 00:11:27 +0000 (16:11 -0800)
committerjiabin <jiabin@google.com>
Thu, 25 Jan 2018 00:11:27 +0000 (16:11 -0800)
We should use device type instead of port type.
Bug: 64038649
Test: Manually test.

Change-Id: I06d3cd05577afefae46a2fce694c91850d9a97b2

audio/include/system/audio.h

index f68cd8c..44f4a2d 100644 (file)
@@ -1021,7 +1021,7 @@ typedef enum {
 struct audio_microphone_characteristic_t {
     char                               device_id[AUDIO_MICROPHONE_ID_MAX_LEN];
     audio_port_handle_t                id;
-    audio_port_type_t                  type;
+    audio_devices_t                    type;
     char                               address[AUDIO_DEVICE_MAX_ADDRESS_LEN];
     audio_microphone_channel_mapping_t channel_mapping[AUDIO_CHANNEL_COUNT_MAX];
     audio_microphone_location_t        location;