[PATCH] alsa-ucm: setting default active port based on jacks state

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

 



On Mon, Aug 26, 2013 at 11:15 AM, Felipe F. Tonello
<eu at felipetonello.com> wrote:
> From: "Felipe F. Tonello" <eu at felipetonello.com>
>
> This fixes a bug when switching profiles under ALSA UCM. If a jack, hence a
> port, was previsouly active, when PA performed a profile switch, the jack
> would continue to be available but not active.
>
> This patche ensures that it activates a port if a jack is previously connected.
>
> Signed-off-by: Felipe F. Tonello <eu at felipetonello.com>
> ---
>  src/modules/alsa/alsa-sink.c   |  5 +++--
>  src/modules/alsa/alsa-source.c |  5 +++--
>  src/modules/alsa/alsa-ucm.c    | 34 ++++++++++++++++++++++++++++++++++
>  src/modules/alsa/alsa-ucm.h    |  3 +++
>  4 files changed, 43 insertions(+), 4 deletions(-)
>

I implemented a v2 ordering by priority when more then one jack is
plugged. But since the change is small, I will wait for more comments
here until I send it.

Felipe Tonello


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

  Powered by Linux