Sorry, thinking my last posts went directly to the users and not to this list.

In short:

this has nothing to do with rpi in general, I could
also have written:
What if one of your alsa-devices/alsa plugins fails on your
desktop/whatever, can you avoid failing the whole configuration?

If I find an elegant solution (perhaps exchanging configrations on
demand)  I'll write again here.

Regards

Am Sa., 4. Jan. 2020 um 03:11 Uhr schrieb Kerry Hoath <ke...@gotss.net>:
>
> Not to be annoying but perhaps nobody knows the answer?
>
>
> Perhaps the people on the Raspberry Pi forums would know?
>
>
> Regards, Kerry.
>
>
> On 4/01/2020 7:13 am, Harald Heigl wrote:
> > Sorry to ask again, perhaps my last question was too long.
> > My point is, if one of my devices (bluetooth headphones turned off) is
> > failing, the whole configuration (another bluetooth headphone+hdmi) is
> > failing. Is there an easy way to handle alsa failures of one device
> > gracefully?
> >
> > Thanks!
> >
> > Am Fr., 27. Dez. 2019 um 09:38 Uhr schrieb Harald Heigl
> > <harald.heigl1000+a...@gmail.com>:
> >> Hi everyone, thanks for alsa, I like the flexibility!
> >>
> >> Yesterday I managed to connect 2 bluetooth headphones simultaneously
> >> to my rpi3 (I'm using it with kodi on latest raspbian). I've used a
> >> multi-device in .asoundrc to do this. The problem is if I turn off one
> >> device I get no sound on the other one too.
> >> If I test with aplay mywav.wav, it plays correctly on both devices if
> >> both headphones are on and connected. If one is off it says "No such
> >> device" and doesn't play at all.
> >>
> >> Is there an easy way to keep my configuration for both devices, but
> >> don't fail if one of the devices is turned off/not reachable?
> >>
> >> Thanks,
> >> Cyber1000
> >>
> >> My .asoundrc-file:
> >>
> >> pcm.user1 {
> >>         type plug
> >>         slave.pcm {
> >>                 type bluealsa
> >>                 device "AA:AA:AA:AA:AA:AA"
> >>                 profile "a2dp"
> >>         }
> >> }
> >> pcm.user2 {
> >>         type plug
> >>
> >>         slave.pcm {
> >>                 type bluealsa
> >>                 device "AA:AA:AA:AA:AA:AA"
> >>                 profile "a2dp"
> >>         }
> >> }
> >> pcm.allDevices {
> >>         type multi
> >>         slaves {
> >>             a { channels 2 pcm "user1" }
> >>             b { channels 2 pcm "user2" }
> >>         }
> >>         bindings {
> >>          0 { slave a channel 0 }
> >>          1 { slave a channel 1 }
> >>          2 { slave b channel 0 }
> >>          3 { slave b channel 1 }
> >>         }
> >> }
> >> pcm.allDevicesRoute {
> >>     type route
> >>     slave.pcm "allDevices"
> >>     ttable [
> >>         [ 1 0 1 0 ]
> >>         [ 0 1 0 1 ]
> >>     ]
> >> }
> >>
> >> pcm.!default {
> >>     type asym
> >>     playback.pcm "plug:allDevicesRoute"
> >> }
> >
> > _______________________________________________
> > Alsa-user mailing list
> > Alsa-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/alsa-user


_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to