No Pulseaudio in Kodi, alsa sink in mono only after Buster upgrade

After digging two days in web I found no solution - only a few topics with similar problem. According to standing that if something does not exist in web - does not exist at all - I tested again, after several reboots, to get debug log, and…

2020-10-26 10:57:42.126 T:1885335776  NOTICE: Found 2 Lists of Devices
2020-10-26 10:57:42.126 T:1885335776  NOTICE: Enumerated ALSA devices:
2020-10-26 10:57:42.126 T:1885335776  NOTICE:     Device 1
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_deviceName      : @
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.126 T:1885335776  NOTICE:     Device 2
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : headphones_1
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : description - Headphones 1
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.127 T:1885335776  NOTICE:     Device 3
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : headphones_3
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : description - Headphones 3
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.127 T:1885335776  NOTICE:     Device 4
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : headphones-multi
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : headphones-multi
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR, BL, BR
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.127 T:1885335776  NOTICE:     Device 5
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : sysdefault:CARD=ALSA
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : bcm2835 ALSA
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra: bcm2835 ALSA
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.128 T:1885335776  NOTICE:     Device 6
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceName      : @:CARD=Audio,DEV=0
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayName     : iFi (by AMR) HD USB Audio
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayNameExtra: Analog
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_sampleRates     : 48000
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S32NE
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.128 T:1885335776  NOTICE:     Device 7
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceName      : iec958:CARD=Audio,DEV=0
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayName     : iFi (by AMR) HD USB Audio
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayNameExtra: S/PDIF
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_sampleRates     : 44100,48000,88200,96000,176400,192000,384000
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_RAW,AE_FMT_S32NE
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
2020-10-26 10:57:42.126 T:1885335776  NOTICE: Found 2 Lists of Devices
2020-10-26 10:57:42.126 T:1885335776  NOTICE: Enumerated ALSA devices:
2020-10-26 10:57:42.126 T:1885335776  NOTICE:     Device 1
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_deviceName      : @
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2020-10-26 10:57:42.126 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.126 T:1885335776  NOTICE:     Device 2
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : headphones_1
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : description - Headphones 1
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.127 T:1885335776  NOTICE:     Device 3
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : headphones_3
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : description - Headphones 3
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.127 T:1885335776  NOTICE:     Device 4
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : headphones-multi
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : headphones-multi
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR, BL, BR
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.127 T:1885335776  NOTICE:     Device 5
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceName      : sysdefault:CARD=ALSA
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayName     : bcm2835 ALSA
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_displayNameExtra: bcm2835 ALSA
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.127 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.128 T:1885335776  NOTICE:     Device 6
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceName      : @:CARD=Audio,DEV=0
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayName     : iFi (by AMR) HD USB Audio
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayNameExtra: Analog
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_sampleRates     : 48000
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S32NE
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-26 10:57:42.128 T:1885335776  NOTICE:     Device 7
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceName      : iec958:CARD=Audio,DEV=0
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayName     : iFi (by AMR) HD USB Audio
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_displayNameExtra: S/PDIF
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_sampleRates     : 44100,48000,88200,96000,176400,192000,384000
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_RAW,AE_FMT_S32NE
2020-10-26 10:57:42.128 T:1885335776  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512

So the problem disappeared ;-)). Now I have to create multi devices in .asoundrc for different combination of BT headsets connected.
The thing that bothers me is the number of channels seen by KODI - BL and BL?? So the channels are no copied in alsa only? I thought that “outside” alsa only 2 channels will be visible ;-/

Glad you are nearly there!

Kodi won’t display an alsa device unless it can open it, which I guess means it needs to open all the BT devices in the multi. Sounds like you have the right solution.

You might try adding a line channels 2 after the line type multi. Then aplay -v ..... to check it doesn’t throw a syntax error.

Hi @fzinken,

I’d be interested to get clues to configure Bluetooth devices inside KODI/OSMC because I’ve tried via PulseAudio following obsoletes tutoriels all over the forum and the web. But I was only able to make bluetooth working outside of KODI.

I’ve removed all pulseaudio packages and I’d be glad if you could give me instructions with the new alsa approach you’re mentioning.

Sorry if I’ve missed a documentation elsewhere, my searches were unsuccessful. Please, let me know if you want me to create a dedicated topic or if we continue here.

Thanks.

It is currently still hidden as it still requries some manual work. But here you find the instructions which work quite well for me.

1 Like

Great! Thanks for the link, I’m looking at it right now! :+1:

Hi fzinken,
Oh yes please, some instructions would be amazing.

I’m having trouble with my BT headphones, Bose QC35. Am able; to trust, unblock & connect them to the Vero 4k tv, however, no sound will come out on them.

Cheers in advance! :slight_smile:

Did you follow these instructions especially created the .asoundrc?

Hi Fzinken,
Thanks for the speedy reply!
Yep all followed as per steps, sadly no sound going to BT headphones. Unless I made a mistake with the format of the .asoundrc file…?

# This file describes the bluetooth sinks available for Kodi to play to
# add lines like the following for each BT device (speaker or headphones)

#pcm.mybtdevice {
#        type bluealsa
#        device "2C:41:A1:4F:54:1A"
#        profile "a2dp"
#        hint { show on description "My device name"}
#}

# using the MAC of the device (see bluetoothctl) instead of 12:34:56:78:9A:BC
# Use any letters or numbers for the description which will show up in Settings-System-Audio

Perhaps I’d be best waiting until final release. :slight_smile:
EDIT: sorry was having trouble posting it haha

Well we can get you going with some help.

You would need to remove the # in your .asoundrc as that makes the entries comments.
So it should look like:

# This file describes the bluetooth sinks available for Kodi to play to
# add lines like the following for each BT device (speaker or headphones)

pcm.myQC35 {
        type bluealsa
        device "2C:41:A1:4F:54:1A"
        profile "a2dp"
        hint { show on description "Bose QC35"}
}

# using the MAC of the device (see bluetoothctl) instead of 12:34:56:78:9A:BC
# Use any letters or numbers for the description which will show up in Settings-System-Audio

Hi fzinken,
Thanks for the reply.

Ahh I see, that makes sense! So I’ve made that change and connected to the headset, however, still no sound received. But that’s ok, am happy to wait till final release.
“Good things come to those who wait” :slight_smile:
Cheers

If it doesn’t work with that, you won’t be any better off with any future release. It would be good to know what’s wrong. Does your headphone show up in Settings->System->Audio? If not, try restarting Kodi with Power->Exit.

Hi grahamh, thanks for the reply.

oh, ah no It doesn’t actuality show up in audio settings as a source… just tried restarting kodi using “exit” no go.

You did make a new file called .asoundrc - not still using the name .asoundrc.example?

opps, I feel a fool. Was editing the “.asoundrc.example” file. ahah. It’s all working perfectly now, Thanks!
Do you know if multiple audio sources will be supported in the final release? eg: BT & HDMI, etc?
Thanks again!

That’s the ambition. It is possible with some alsa-config-fu if you are interested and have the patience. Bringing it all to an intuitive and foolproof UI is the challenge, though.

Whats the usecase of having BT Audio and HDMI Audio at the same time? The biggest trouble would be to get lip sync in that scenario.

oh group consumption.
When my brothers, or my friends, come over and watch a movie, not all have BT headphones, only wired, same with our spare ones.

Also another one would be; our dad hard of hearing, so having his own BT headset with independent volume control, while the rest of us use the HDMI output.

Can’t speak for everyone, but that’s our use I guess.

1 Like

Thanks for the insight about the use case.
This one is particularly interesting with regards to something we are working on

Sam

wooo that sounds intriguing. Another One could perhaps be that multiple phones connect and are used for sound output, then people could simply plug their personal headphones into their connected phone, perhaps.

Last time I looked, it wasn’t possible to use a phone as a ‘bluetooth headphone’ like that. Maybe there’s an app for it, though.

1 Like