[PATCH 7/8] module-alsa-card: Report available ports before unavailable ones

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

 



On Tue, 2015-05-05 at 17:01 +0200, David Henningsson wrote:
> In case the same jack causes one port to become available and another
> one unavailable, the available should be reported first.
> 
> This is to avoid unnecessary changes: e g, consider a 'Headphone Jack'
> making 'Headphone' available and 'Speaker' unavailable. In case the
> unavailable change triggers first, and there is also a currently available
> third port (e g 'Digital out'), the routing system might choose to route
> to this port because neither of the 'Speaker' and 'Headphone' ports are
> available.
> 
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
> ---
>  src/modules/alsa/module-alsa-card.c | 36 ++++++++++++++++++++++++++++--------
>  1 file changed, 28 insertions(+), 8 deletions(-)

I pushed this, since this is useful independently of the other patches.

-- 
Tanu


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

  Powered by Linux