Already have it. That and this patch: http://gitorious.org/pulseaudio/mainline/commit/4163b44f1fd39be030dda282417f1aa167e7cb55 Without the second one my PulseAudio would crash when trying to connect to my phone with the following error:

E: module-bluetooth-device.c: Assertion '(size_t) decoded == a2dp->frame_length' failed at ../../src/modules/bluetooth/module-bluetooth-device.c:1467, function a2dp_process_push(). Aborting.
I attached a more complete log.

Thanks,
Cristina




On 02/22/2011 10:58 PM, Luiz Augusto von Dentz wrote:
Hi,

On Tue, Feb 22, 2011 at 7:27 PM, Cristina Cristea
<[email protected]>  wrote:
Thanks Maarten, that really makes the sample rate adjustment to not be
noticed by the listener.
Unfortunately, I still get the underrun issues. Here is a log snippet:

D: module-loopback.c: Loopback overall latency is 46.98 ms + 150.19 ms +
135.29 ms = 332.46 ms
D: module-loopback.c: Should buffer 23600 bytes, buffered at minimum 0 bytes
I: module-loopback.c: New rate of 43510 Hz not within 2‰ of 44264 Hz,
forcing smaller adjustment
D: module-loopback.c: [alsa_output.pci-0000_00_1b.0.analog-stereo] Updated
sampling rate to 44175 Hz.
D: module-loopback.c: Loopback overall latency is 45.68 ms + 115.25 ms +
137.67 ms = 298.60 ms
D: module-loopback.c: Should buffer 23552 bytes, buffered at minimum 0 bytes
I: module-loopback.c: New rate of 43512 Hz not within 2‰ of 44175 Hz,
forcing smaller adjustment
D: module-loopback.c: [alsa_output.pci-0000_00_1b.0.analog-stereo] Updated
sampling rate to 44086 Hz.
D: alsa-sink.c: Wakeup from ALSA!
I: module-loopback.c: Coud not peek into queue
I: module-loopback.c: Coud not peek into queue
I: module-loopback.c: Coud not peek into queue
I: module-loopback.c: Coud not peek into queue
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Requesting rewind due to end of underrun.
D: module-loopback.c: Loopback overall latency is 52.43 ms + 268.86 ms +
135.29 ms = 456.58 ms
D: module-loopback.c: Should buffer 23512 bytes, buffered at minimum 0 bytes
I: module-loopback.c: New rate of 43513 Hz not within 2‰ of 44086 Hz,
forcing smaller adjustment
D: module-loopback.c: [alsa_output.pci-0000_00_1b.0.analog-stereo] Updated
sampling rate to 43997 Hz.
D: alsa-sink.c: Wakeup from ALSA!

Maybe the bitpool reduction patch helps in this case, you can pull it from here:

http://gitorious.org/pulseaudio/mainline/commit/0af8374547c0b41d0b2669fd67b3f02140129ade

I should probably be sending it upstream pretty soon since it helps
with many old headset.


D: module-bluetooth-discover.c: Loading module-bluetooth-device 
address="00:23:76:E3:F3:C5" path="/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5" 
profile="a2dp_source" auto_connect=no
I: card.c: Created 2 "bluez_card.00_23_76_E3_F3_C5"
D: module-bluetooth-device.c: Connected to the bluetooth audio service
D: module-bluetooth-device.c: Sending BT_REQUEST -> BT_GET_CAPABILITIES
D: module-bluetooth-device.c: Trying to receive message from audio service...
D: module-bluetooth-device.c: Received BT_RESPONSE <- BT_GET_CAPABILITIES
D: module-bluetooth-device.c: Payload size is 13 6
D: module-bluetooth-device.c: Sending BT_REQUEST -> BT_GET_CAPABILITIES
D: module-bluetooth-device.c: Trying to receive message from audio service...
D: module-bluetooth-device.c: Received BT_RESPONSE <- BT_GET_CAPABILITIES
D: module-bluetooth-device.c: Payload size is 13 6
D: module-bluetooth-device.c: Got device capabilities
D: module-bluetooth-device.c: Sending BT_REQUEST -> BT_OPEN
D: module-bluetooth-device.c: Trying to receive message from audio service...
D: module-bluetooth-device.c: Received BT_RESPONSE <- BT_OPEN
D: module-bluetooth-device.c: Sending BT_REQUEST -> BT_SET_CONFIGURATION
D: module-bluetooth-device.c: Trying to receive message from audio service...
D: module-bluetooth-device.c: Received BT_RESPONSE <- BT_SET_CONFIGURATION
I: module-bluetooth-device.c: SBC parameters:
I: module-bluetooth-device.c:   allocation=0
I: module-bluetooth-device.c:   subbands=1
I: module-bluetooth-device.c:   blocks=3
I: module-bluetooth-device.c:   bitpool=53
D: module-bluetooth-device.c: Connection to the device configured
D: module-bluetooth-device.c: Got the stream socket
I: source.c: Created source 3 "bluez_source.00_23_76_E3_F3_C5" with sample spec 
s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     bluetooth.protocol = "a2dp_source"
I: source.c:     device.description = "HTC"
I: source.c:     device.string = "00:23:76:E3:F3:C5"
I: source.c:     device.api = "bluez"
I: source.c:     device.class = "sound"
I: source.c:     device.bus = "bluetooth"
I: source.c:     bluez.path = "/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5"
I: source.c:     bluez.class = "0x5a020c"
I: source.c:     bluez.name = "HTC"
I: source.c:     device.icon_name = "audio-card-bluetooth"
D: module-bluetooth-device.c: IO Thread starting up
D: core-util.c: SCHED_RR|SCHED_RESET_ON_FORK worked.
I: core-util.c: Successfully enabled SCHED_RR scheduling for thread, with 
priority 5.
D: module-bluetooth-device.c: Sending BT_REQUEST -> BT_START_STREAM
D: module-bluetooth-device.c: Trying to receive message from audio service...
D: module-bluetooth-device.c: Received BT_RESPONSE <- BT_START_STREAM
D: module-bluetooth-device.c: Trying to receive message from audio service...
D: module-bluetooth-device.c: Received BT_RESPONSE <- BT_NEW_STREAM
D: module-bluetooth-device.c: Stream properly set up, we're ready to roll!
D: protocol-dbus.c: Interface org.PulseAudio.Core1.Device added for object 
/org/pulseaudio/core1/source3
D: protocol-dbus.c: Interface org.PulseAudio.Core1.Source added for object 
/org/pulseaudio/core1/source3
D: module-suspend-on-idle.c: Source bluez_source.00_23_76_E3_F3_C5 becomes 
idle, timeout in 5 seconds.
I: module.c: Loaded "module-bluetooth-device" (index: #19; argument: 
"address="00:23:76:E3:F3:C5" path="/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5" 
profile="a2dp_source" auto_connect=no").
D: module-console-kit.c: dbus: interface=org.bluez.AudioSource, 
path=/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5, member=PropertyChanged
D: protocol-dbus.c: Interface org.PulseAudio.Core1.CardProfile added for object 
/org/pulseaudio/core1/card2/profile0
D: protocol-dbus.c: Interface org.PulseAudio.Core1.CardProfile added for object 
/org/pulseaudio/core1/card2/profile1
D: protocol-dbus.c: Interface org.PulseAudio.Core1.CardProfile added for object 
/org/pulseaudio/core1/card2/profile2
D: protocol-dbus.c: Interface org.PulseAudio.Core1.Card added for object 
/org/pulseaudio/core1/card2
D: protocol-dbus.c: Interface org.PulseAudio.Core1.Module added for object 
/org/pulseaudio/core1/module19
D: bluetooth-util.c: dbus: interface=org.bluez.AudioSource, 
path=/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5, member=PropertyChanged
D: bluetooth-util.c: dbus: property 'State' changed to value 'playing'
D: module-console-kit.c: dbus: interface=org.bluez.AudioSource, 
path=/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5, member=PropertyChanged
D: module-bluetooth-device.c: dbus: interface=org.bluez.AudioSource, 
path=/org/bluez/409/hci0/dev_00_23_76_E3_F3_C5, member=PropertyChanged
E: module-bluetooth-device.c: Assertion '(size_t) decoded == 
a2dp->frame_length' failed at 
../../src/modules/bluetooth/module-bluetooth-device.c:1467, function 
a2dp_process_push(). Aborting.
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

Reply via email to