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

Felipe Tonello eu at felipetonello.com
Mon Aug 26 13:44:44 PDT 2013


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


More information about the pulseaudio-discuss mailing list