Hi guys: I'm trying to use module-loopback to hear A2DP from my phone,according to the link below: http://jprvita.wordpress.com/2009/12/15/1-2-3-4-a2dp-stream/ I got it works well,I can hear the music on my ubuntu via bluetooth from the phone. BUT,when the phone disconnects from A2DP anyway,you'll find that module-loopback still be loaded and move to play audio stream from my microphone to speakers,sometimes,even giving horrible noises. reproducing: 1.play music from A2DP as the "blog" mentioned. a.add "Enable=Source" into /etc/bluetooth/audio.conf b.restart bluetoothd: sudo /etc/init.d/bluetooth restart c.connect Audio Source of bluetooth device:d-feet->org.bluez->/org/bluez/xxxx/hci0/yourdeviceaddress->interfaces->org.bluez.AudioSource->Method->connect() d.load-module module-loopback source=bluez_source.00_22_A5_AA_BF_85 sink=alsa_output.pci-0000_00_1b.0.analog-stereo in pacmd 2.disconnect the A2DP no matter from phone side or computer side. 3.pacmd and ls,you will find a sink-input and a source-output are still there in RUNNING status. I wrote a patch to make the module-loopback unloading as bluetooth source was unavailable. In my opinion ,moving the source of source-output from a live source like A2DP source to default or any other ones dose not work.only module-loopback loaded and can not work any more. So I just want to make the module-loopback can not be moved when the source is a A2DP source of bluetooth. BTW,I'm not sure that should we unload the modules when the source it using were unavailable in the other situations. Dose anyone have ideas for that? -- B.R Cai Yuanqing -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-module-loopback-Add-PA_SOURCE_OUTPUT_DONT_MOVE-flag-.patch Type: text/x-patch Size: 1155 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20101222/052c5956/attachment.bin>