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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux