[pulseaudio-discuss] [PATCH] alsa-mixer: Add "Line Out" to known mixer controls
Raymond Yau
superquad.vortex2 at gmail.com
Fri May 22 19:57:43 PDT 2015
> ---
> src/modules/alsa/mixer/paths/analog-output-headphones-2.conf | 4 ++++
> src/modules/alsa/mixer/paths/analog-output-headphones.conf | 4 ++++
> src/modules/alsa/mixer/paths/analog-output-lineout.conf | 6 ++++++
> src/modules/alsa/mixer/paths/analog-output-speaker-always.conf | 4 ++++
> src/modules/alsa/mixer/paths/analog-output-speaker.conf | 4 ++++
> 5 files changed, 22 insertions(+)
>
> diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
b/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
> index ddabf77..1028b93 100644
> --- a/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
> +++ b/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
> @@ -47,6 +47,10 @@ volume = off
> switch = mute
> volume = zero
>
> +[Element Line Out]
> +switch = off
> +volume = off
Do any computer have two headphone jacks and Line Out Playback Volume ?
> +
> [Element Headphone+LO]
> switch = mute
> volume = zero
> diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> index b6ee70b..a7a2140 100644
> --- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> +++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> @@ -68,6 +68,10 @@ override-map.2 = all-left,all-right
> switch = off
> volume = off
>
> +[Element Line Out]
> +switch = off
> +volume = off
http://freedesktop.org/software/pulseaudio/doxygen/volume.html
Hence it is usually a better idea to treat all volume values as opaque with
a range from PA_VOLUME_MUTED (0%) to PA_VOLUME_NORM (100%) and to refrain
from any calculations with them.
Pulseaudio merge two controls (playback switch and playback volume ) into
it volume scale
It is a design problem of pulseaudio vokume scale
Do it mean pulseaudio won't restore line out playback volume when headphone
is unplugged ?
> diff --git
a/src/modules/alsa/mixer/paths/analog-output-speaker-always.conf
b/src/modules/alsa/mixer/paths/analog-output-speaker-always.conf
> index b6d9f94..101edd8 100644
> --- a/src/modules/alsa/mixer/paths/analog-output-speaker-always.conf
> +++ b/src/modules/alsa/mixer/paths/analog-output-speaker-always.conf
> @@ -68,6 +68,10 @@ volume = zero
> switch = mute
> volume = zero
>
> +[Element Line Out]
> +switch = off
> +volume = off
> +
> [Element Headphone+LO]
> switch = off
> volume = off
> diff --git a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> index 39193dd..e3b6c54 100644
> --- a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> +++ b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> @@ -84,6 +84,10 @@ volume = off
> switch = off
> volume = off
>
> +[Element Line Out]
> +switch = off
> +volume = off
> +
> [Element Speaker+LO]
> required-any = any
> switch = mute
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150523/de8b0b86/attachment.html>
More information about the pulseaudio-discuss
mailing list