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

I tried to change pcm_slave.pairup.pcm —> pcm.pairup and use pairup ad device. I get the same error. I think the problem is in that part, but I do not see any.

@grahamh Would it be easier if I just started a new topic and tagged you in it? It looks like we have about 3 different conversations happening in this one thread, which is partially my fault.

The only output I get is the /usr/bin/bluealsa: E: Couldn’t set audio object type: Invalid config error, the same error I get when I try to use aplay. I looked for some sort of extra debug output for bluealsa and don’t see anything unfortunately.

Let’s leave it in here - it’s all a consequence of pulseaudio and buster not playing nicely.

Please post a full debug log so we can check your setup.

To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device twice(!)

  • reproduce the issue

  • upload the log set (all configs and logs!) either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

I’ve been having a play and probably owe you an apology. I’ve had more success with wrapping each BT device in a plug the same way you did in your first .asoundrc.

pcm.jblflip {
type plug
slave.pcm {
        type bluealsa
        device "FC:A8:9A:B3:42:4F"
        profile "a2dp"
}
        hint { show on description "JBL Flip 3"}
}

I’m also using a route plugin like you did at first, but as far as I can tell it behaves exactly the same as the upmix.

pcm.bothBT {
        type route
        slave "pairupBT"
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
        hint {
                show {
                        @func refer
                        name defaults.namehint.extended
                }
                description "BT & BT"
        }
}
pcm_slave.pairupBT.pcm {
        type plug
        slave.pcm {
                type multi
                        slaves {
                                a { pcm "jblflip" channels 2 }
                                b { pcm "vero4k" channels 2  }
                        }
                bindings [
                { slave a channel 0 }
                { slave a channel 1 }
                { slave b channel 0 }
                { slave b channel 1 }
                ]
        }
}

I’ve only got one BT adapter and only one BT speaker so I’m using a vero4k running bluealsa-aplay as a second sink.

With the above configs I can aplay -DbothBT /usr/share/sounds/alsa/Front_Center.wav and sound comes out of both my JBL speaker and the vero4k but not very smoothly :smiley: But I can’t play a stereo 44.1kHz wav file:

osmc@vero4kp2:/mnt/1Text4/Music/Test files$ aplay -DbothBT blind1full.WAV
Playing WAVE 'blind1full.WAV' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: xrun:1664: read/write error, state = PREPARED
osmc@vero4kp2:/mnt/1Text4/Music/Test files$ aplay -Dplug:bothBT blind1full.WAV
Playing WAVE 'blind1full.WAV' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: pcm_params.c:170: snd1_pcm_hw_param_get_min: Assertion `!snd_interval_empty(i)' failed.
Aborted by signal Aborted...

And Kodi can’t open the bothBT pcm either.

2020-10-24 10:50:47.337 T:4027576544    INFO: CAESinkALSA::EnumerateDevice - device bothBT description BT & BT
2020-10-24 10:50:47.337 T:4027576544    INFO: CAESinkALSA - No playback configurations available for device "bothBT"

I think your best bet is to ask on the bluez-alsa github. They are very responsive. We are building from their version 2.1.0, commit 49ad348.

You were right, bluez-alsa github was very helpful. According this topic

Use bluealsa device within a multi in asound.conf · Issue #379 · arkq/bluez-alsa · GitHub

i changed .asounrc to:

pcm.headphones_1 {
        type plug
        slave.pcm {
                service "org.bluealsa.bluealsa1"
                type bluealsa
                device "5C:FB:7C:16:79:FC"
                profile "a2dp"
        }
        hint { show on description "description - Headphones 1" }

}



pcm.headphones_2 {
        type plug
        slave.pcm {
                type bluealsa
                service "org.bluealsa.bluealsa2"
                device "5C:FB:7C:16:20:1E"
                profile "a2dp"
        }
        hint { show on description "description - Headphones 2" }
}


pcm.headphones_3 {
        type plug
        slave.pcm {
                type bluealsa
                service "org.bluealsa.bluealsa3"
                device "E8:D0:3C:FC:3C:E2"
                profile "a2dp"
        }
        hint { show on description "description - Headphones 3" }
}


ctl.headphones_1 {
        type bluealsa
}

ctl.headphones_2 {
        type bluealsa
}


ctl.headphones_3 {
        type bluealsa
}


pcm.headphones-multi {
  type plug;
  slave.pcm {
    type multi;
    slaves.a.pcm "headphones_1";
    slaves.a.channels 2;
    slaves.b.pcm "headphones_3";
    slaves.b.channels 2;
    bindings.0 { slave a; channel 0; }
    bindings.1 { slave a; channel 1; }
    bindings.2 { slave b; channel 0; }
    bindings.3 { slave b; channel 1; }
  }
  ttable.0.0 1
  ttable.1.1 1
  ttable.0.2 1
  ttable.1.3 1
}

I’m testing now only on two bluetooth headphones (I have to change third dongle - it is very old and I get a lot o noise and frequent disconnecting) and IT IS WORKING!

aplay -d headphones-multi plays on both devices.

I see the hedphones_[1-3] in kodi audio outputs, but I do not see headphones-multi.
kodi log:

2020-10-24 18:05:07.071 T:1885335776  NOTICE: Enumerated ALSA devices:
2020-10-24 18:05:07.071 T:1885335776  NOTICE:     Device 1
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_deviceName      : @
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.071 T:1885335776  NOTICE:     Device 2
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_deviceName      : headphones_1
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_displayName     : description - Headphones 1
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_sampleRates     : 44100
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-24 18:05:07.071 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.071 T:1885335776  NOTICE:     Device 3
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceName      : headphones_3
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayName     : description - Headphones 3
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_sampleRates     : 48000
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.072 T:1885335776  NOTICE:     Device 4
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceName      : sysdefault:CARD=ALSA
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayName     : bcm2835 ALSA
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayNameExtra: bcm2835 ALSA
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.072 T:1885335776  NOTICE:     Device 5
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceName      : @:CARD=Audio,DEV=0
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayName     : iFi (by AMR) HD USB Audio
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayNameExtra: Analog
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_sampleRates     : 48000
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_S32NE
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.072 T:1885335776  NOTICE:     Device 6
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceName      : iec958:CARD=Audio,DEV=0
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayName     : iFi (by AMR) HD USB Audio
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_displayNameExtra: S/PDIF
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_sampleRates     : 44100,48000,88200,96000,176400,192000,384000
2020-10-24 18:05:07.072 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_RAW,AE_FMT_S32NE
2020-10-24 18:05:07.073 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-24 18:05:07.073 T:1885335776  NOTICE: Enumerated PI devices:
2020-10-24 18:05:07.073 T:1885335776  NOTICE:     Device 1
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_deviceName      : HDMI
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_displayName     : HDMI
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
2020-10-24 18:05:07.073 T:1885335776  NOTICE:     Device 2
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_deviceName      : Analogue
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_displayName     : Analogue
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_sampleRates     : 48000
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.073 T:1885335776  NOTICE:     Device 3
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_deviceName      : Both
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_displayName     : HDMI and Analogue
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_displayNameExtra:
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_channels        : FL, FR
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_sampleRates     : 48000
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2020-10-24 18:05:07.073 T:1885335776  NOTICE:         m_streamTypes     : No passthrough capabilities
2020-10-24 18:05:07.170 T:1916453808  NOTICE: Raspberry PI firmware version: Mar 10 2020 16:00:17 

It sees the headphones_1 and headphones_3, but not see headphones-multi (with is accessible by aplay for sure)

BTW: Do You think it is possible for alsa to ignore one output of multi device without getting error - The case when only two of three headphones are connected. Or do I have to create some kind of “dynamic” config?

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.