[pulseaudio-discuss] [RFC v0 5/5] bluetooth: Dynamically change outgoing MTU

Tanu Kaskinen tanuk at iki.fi
Sun Dec 16 01:08:21 PST 2012


On Wed, 2012-04-11 at 09:00 +0200, Mikel Astiz wrote:
> From: Mikel Astiz <mikel.astiz at bmw-carit.de>
> 
> Dynamically change the size of the outgoing SCO packets according to
> the size of the received ones.
> ---
>  src/modules/bluetooth/module-bluetooth-device.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
> index 6ab2c81..9f6d288 100644
> --- a/src/modules/bluetooth/module-bluetooth-device.c
> +++ b/src/modules/bluetooth/module-bluetooth-device.c
> @@ -600,6 +600,10 @@ static int hsp_process_push(struct userdata *u) {
>  
>          pa_assert((size_t) l <= pa_memblock_get_length(memchunk.memblock));
>  
> +        /* Adapt size of outgoing blocks accordign to the size we just got */
> +        if (u->write_block_size != (size_t) l)
> +            u->write_block_size = (size_t) l;
> +
>          memchunk.length = (size_t) l;
>          u->read_index += (uint64_t) l;
>  

Is this still something that you'd like to have in pulseaudio? Luiz
said[1] that there's need for more investigation, has any such
investigation been done?

[1] http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/12982/focus=13309

-- 
Tanu



More information about the pulseaudio-discuss mailing list