'Twas brillig, and Luiz Augusto von Dentz at 18/03/11 17:01 did gyre and gimble: >> Let me know if it's OK to run it and commit the results (or feel free to >> do it in your tree and an I can pull again). > > Please go ahead.
OK, I've done this now :) There was however a slight problem in that a patch you did to ipc.h in PA code back in 8f3ef04b[1] was not merged to upstream bluez and thus I had to reapply the hunk manually. Is it possible to push this hunk upstream or should we look at a way to do this without patching the upstream files? I've attached the code change to this message. Col 1. commit 8f3ef04b4310bfbbe0aa8042585340e1832cacf6 Author: Luiz Augusto von Dentz <luiz.dentz-...@nokia.com> Date: Thu Oct 7 17:22:41 2010 +0300 bluetooth: Add support for Media API Make use of D-Bus to transfer file descriptors. -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mageia Contributor [http://www.mageia.org/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]
const char* pa_bluetooth_get_form_factor(uint32_t class); diff --git a/src/modules/bluetooth/ipc.h b/src/modules/bluetooth/ipc.h index 2e170f5..9537886 100644 --- a/src/modules/bluetooth/ipc.h +++ b/src/modules/bluetooth/ipc.h @@ -201,6 +201,34 @@ typedef struct { uint8_t max_bitpool; } __attribute__ ((packed)) sbc_capabilities_t; +#if __BYTE_ORDER == __LITTLE_ENDIAN + +typedef struct { + uint8_t channel_mode:4; + uint8_t frequency:4; + uint8_t allocation_method:2; + uint8_t subbands:2; + uint8_t block_length:4; + uint8_t min_bitpool; + uint8_t max_bitpool; +} __attribute__ ((packed)) sbc_capabilities_raw_t; + +#elif __BYTE_ORDER == __BIG_ENDIAN + +typedef struct { + uint8_t frequency:4; + uint8_t channel_mode:4; + uint8_t block_length:4; + uint8_t subbands:2; + uint8_t allocation_method:2; + uint8_t min_bitpool; + uint8_t max_bitpool; +} __attribute__ ((packed)) sbc_capabilities_raw_t; + +#else +#error "Unknown byte order" +#endif + typedef struct { codec_capabilities_t capability; uint8_t channel_mode;
_______________________________________________ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss