From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-id: <506E8AA5.7090709@gmail.com> Date: Fri, 05 Oct 2012 16:22:13 +0900 From: Chan-yeol Park MIME-version: 1.0 To: Luiz Augusto von Dentz Cc: chanyeol.park@samsung.com, linux-bluetooth@vger.kernel.org Subject: Re: [PATCH 4/4] audio: Add check for non-a2dp codec References: <1349356447-8369-1-git-send-email-chanyeol.park@samsung.com> In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Luiz, On 10/04/2012 11:02 PM, Luiz Augusto von Dentz wrote: > #define SBC_SAMPLING_FREQ_16000 (1 << 3) > #define SBC_SAMPLING_FREQ_32000 (1 << 2) > @@ -114,3 +115,8 @@ typedef struct { > #else > #error "Unknown byte order" > #endif > + > +typedef struct { > + uint8_t vendor_id[4]; > + uint8_t codec_id[2]; > +} __attribute__ ((packed)) non_a2dp_vendor_codec_t; > We normally don't typedef this type of structs, besides > a2dp_vendor_codec should be enough so this should be named struct > a2dp_vendor_codec. You're right. originally I didn't use typedef. but in order to achieve harmony in a2dp-codecs.h like sbc,mpeg, I've changed it. If you make decision about this, I will raise a second patch. Regards Chanyeol