Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bluetooth working no Pulseaudio Bluetooth source [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
linux_matt
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2012
Posts: 103

PostPosted: Sun Dec 01, 2013 1:21 pm    Post subject: Bluetooth working no Pulseaudio Bluetooth source [SOLVED] Reply with quote

The aim here is to play audio from a smartphone over Bluetooth through the speakers on a Gentoo system with a Trust bluetooth dongle. The blockage is that Pulseaudio isn't creating a bluetooth audio source. The Blueman GUI detects the smartphone and it can be paired successfully. Pulseaudio is compiled with bluetooth support and Blueman compiled with pulseaudio support. In Blueman the "A2DP source" option can be activated (Blueman reports the device as successfully connected). The Smartphone shows the computer is paired with the phone, and on the smartphone you can select an option to use the computer for audio (this shows up on the computer as an "Advanced Audio" service and there is a prompt to run this service). Using this command:

sdptool search --bdaddr local a2snk

The computer seems to be advertising itself as an A2DP sink:

Searching for a2snk on FF:FF:FF:00:00:00 ...
Service Name: Audio Sink
Service RecHandle: 0x10001
Service Class ID List:
"Audio Sink" (0x110b)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x102
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0102

In /etc/bluetooth/audio.conf "Enable=Source" is present.

The Pulseaudio bluetooth modules don't seem to be all loaded automatically but can be loaded manually resulting in:

0 module-device-restore
1 module-stream-restore
2 module-card-restore
3 module-augment-properties
4 module-switch-on-port-available
5 module-alsa-card device_id="2" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
6 module-alsa-card device_id="1" name="pci-0000_00_14.2" card_name="alsa_card.pci-0000_00_14.2" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
7 module-alsa-card device_id="0" name="pci-0000_03_06.0" card_name="alsa_card.pci-0000_03_06.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
8 module-udev-detect
9 module-jackdbus-detect channels=2
10 module-bluetooth-policy
12 module-native-protocol-unix
13 module-zeroconf-publish
14 module-gconf
15 module-default-device-restore
16 module-rescue-streams
17 module-always-sink
18 module-intended-roles
19 module-suspend-on-idle
20 module-console-kit
21 module-systemd-login
22 module-position-event-sounds
23 module-role-cork
24 module-filter-heuristics
25 module-filter-apply
26 module-dbus-protocol
27 module-bluetooth-discover
28 module-loopback

This seems to complete everything needed to configure Bluetooth audio but no Pulseaudio source (input) is created. The audio cuts out on the smartphone but there is no audio through the computer speakers

I have also repeated the process independently of Blueman using simple-agent to create a paired and trusted device and again selecting the option on the smartphone (HTC Legend) to use the Gentoo system for audio.

There are quite a few ewamples on the Web of using the Raspberry Pi for Bluetooth audio output but their starting point is a Pulseaudio Bluetooth source.

The issue definitely seems to be with Pulseaudio, any clues as to how to link the Smartphone through the Trust dongle into Pulseaudio?

Current Pulseaudio sources shown below:

Source #0
State: SUSPENDED
Name: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
Description: Monitor of High Definition Audio Controller Digital Stereo (HDMI)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 5
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor of Sink: alsa_output.pci-0000_01_00.1.hdmi-stereo
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Monitor of High Definition Audio Controller Digital Stereo (HDMI)"
device.class = "monitor"
alsa.card = "2"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0xfae7c000 irq 18"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:01:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card2"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "0be2"
device.product.name = "High Definition Audio Controller"
device.string = "2"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Formats:
pcm

Source #1
State: IDLE
Name: alsa_output.pci-0000_00_14.2.analog-stereo.monitor
Description: Monitor of Built-in Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor of Sink: alsa_output.pci-0000_00_14.2.analog-stereo
Latency: 0 usec, configured 341333 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Monitor of Built-in Audio Analog Stereo"
device.class = "monitor"
alsa.card = "1"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf8ff4000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card1"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "1"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Formats:
pcm

Source #2
State: RUNNING
Name: alsa_input.pci-0000_00_14.2.analog-stereo
Description: Built-in Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: yes
Volume: 0: 42% 1: 42%
0: -22.50 dB 1: -22.50 dB
balance 0.00
Base Volume: 32%
-30.00 dB
Monitor of Sink: n/a
Latency: 44 usec, configured 66666 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "VT1708S Analog"
alsa.id = "VT1708S Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HDA ATI SB"
alsa.long_card_name = "HDA ATI SB at 0xf8ff4000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:14.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card1"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "4383"
device.product.name = "SBx00 Azalia (Intel HDA)"
device.form_factor = "internal"
device.string = "front:1"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "VIA VT1708S"
alsa.components = "HDA:11060397,1043840c,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
analog-input-microphone-front: Front Microphone (priority: 8500, not available)
analog-input-microphone-rear: Rear Microphone (priority: 8200, not available)
analog-input-linein: Line In (priority: 8100, not available)
Active Port: analog-input-linein
Formats:
pcm

Source #3
State: SUSPENDED
Name: alsa_output.pci-0000_03_06.0.analog-stereo.monitor
Description: Monitor of SB0090 Audigy Player/OEM Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 7
Mute: no
Volume: 0: 100% 1: 100%
0: -0.00 dB 1: -0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor of Sink: alsa_output.pci-0000_03_06.0.analog-stereo
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Monitor of SB0090 Audigy Player/OEM Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "SB Audigy 1 [SB0092]"
alsa.long_card_name = "SB Audigy 1 [SB0092] (rev.3, serial:0x531102) at 0xec00, irq 20"
alsa.driver_name = "snd_emu10k1"
device.bus_path = "pci-0000:03:06.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.4/0000:03:06.0/sound/card0"
device.bus = "pci"
device.vendor.id = "1102"
device.vendor.name = "Creative Labs"
device.product.id = "0004"
device.product.name = "SB0090 Audigy Player/OEM"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Formats:
pcm
Back to top
View user's profile Send private message
linux_matt
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2012
Posts: 103

PostPosted: Sun Dec 08, 2013 10:26 pm    Post subject: Re: Bluetooth working no Pulseaudio Bluetooth source [SOLVED Reply with quote

Solved with the following entries in /etc/bluetooth/audio.conf:

Disable=Socket
Enable=Media,Source,Sink,Gateway
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sun Aug 31, 2014 5:52 am    Post subject: Reply with quote

Do you use Bluez 4 or 5 ?
_________________
Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum