OSDN Git Service

android/audio-msg: Simplify audio_rsp_open_stream
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Jan 2014 13:03:34 +0000 (15:03 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 11 Jan 2014 09:24:31 +0000 (11:24 +0200)
Reuse audio_preset in audio_rsp_open_stream since the data type is the
same.

android/audio-msg.h

index 1e0d5cf..8f03274 100644 (file)
@@ -63,8 +63,7 @@ struct audio_cmd_open_stream {
 } __attribute__((packed));
 
 struct audio_rsp_open_stream {
-       uint8_t len;
-       uint8_t data[0];
+       struct audio_preset preset[0];
 } __attribute__((packed));
 
 #define AUDIO_OP_CLOSE_STREAM          0x04