From 0d6a62ff2458cad42b24c9e8e8eab5939b4b456a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 7 Jan 2014 17:21:08 +0200 Subject: [PATCH] android/audio-ipc: Fix Open command pdu The uuid field is 16 bytes long not 16 bits, also make the first preset to be the codec capability to avoid having 2 fields with variable length. --- android/audio-msg.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/audio-msg.h b/android/audio-msg.h index 438bc1812..1e0d5cf67 100644 --- a/android/audio-msg.h +++ b/android/audio-msg.h @@ -42,10 +42,9 @@ struct audio_preset { } __attribute__((packed)); struct audio_cmd_open { - uint16_t uuid; + uint8_t uuid[16]; uint8_t codec; uint8_t presets; - uint8_t len; struct audio_preset preset[0]; } __attribute__((packed)); -- 2.47.3