[pulseaudio-discuss] [PATCH] sink, source: update the default sink/source on port switches

Tanu Kaskinen tanuk at iki.fi
Sat May 13 18:05:27 UTC 2017


On Thu, 2017-05-11 at 17:18 +0200, Georg Chini wrote:
> On 07.05.2017 11:12, Tanu Kaskinen wrote:
> > When sinks are compared during the default sink selection, the active
> > port's availability is inspected. Therefore, the default sink should be
> > updated when the active port changes, because the new port may have
> > different availability status than the old port.
> > 
> > For example, let's say that a laptop has an analog sink with a speaker
> > and a headphone port, and headphones are initially plugged in, so both
> > ports can be used[1]. The headphone port is initially the active port.
> > There's also a null sink in the system. When the headphones are
> > unplugged, the headphone port becomes unavailable, and the null sink
> > becomes the new default sink. Then module-switch-on-connect changes the
> > analog sink port to speakers. Now the default sink should change back to
> > the analog sink, but that doesn't happen without this patch.
> > 
> 
> You are talking about module-switch-on-port-available, not
> module-switch-on-connect, correct? Otherwise looks good.

Thanks, that's indeed what I meant.

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list