alsa-mixer: Add device.icon-name property for some common ports

If we expose this information, UIs can use this to make better
decisions about what icon to display.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2012-12-07 16:37:23 +01:00
parent 18b79d2e13
commit 0f6bbcc3a5
10 changed files with 30 additions and 0 deletions

View file

@ -18,6 +18,9 @@
;
; See analog-output.conf.common for an explanation on the directives
[Properties]
device.icon_name = audio-input-microphone
[Element Line]
switch = off
volume = off

View file

@ -22,6 +22,9 @@
priority = 101
name = analog-output-speaker
[Properties]
device.icon_name = audio-speakers
[Element Hardware Master]
switch = mute
volume = merge

View file

@ -22,6 +22,9 @@
priority = 89
name = analog-output-headphones
[Properties]
device.icon_name = audio-headphones
[Element Hardware Master]
switch = mute
volume = merge

View file

@ -22,6 +22,9 @@
priority = 90
name = analog-output-headphones
[Properties]
device.icon_name = audio-headphones
[Jack Front Headphone]
required-any = any

View file

@ -23,6 +23,9 @@
priority = 100
name = analog-output-speaker
[Properties]
device.icon_name = audio-speakers
[Jack Headphone]
state.plugged = no
state.unplugged = unknown

View file

@ -22,6 +22,9 @@
priority = 100
name = analog-output-speaker
[Properties]
device.icon_name = audio-speakers
[Jack Headphone]
state.plugged = no
state.unplugged = unknown

View file

@ -2,5 +2,8 @@
description = HDMI / DisplayPort
priority = 59
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=3]
required = ignore

View file

@ -2,5 +2,8 @@
description = HDMI / DisplayPort 2
priority = 58
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=7]
required = ignore

View file

@ -2,5 +2,8 @@
description = HDMI / DisplayPort 3
priority = 57
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=8]
required = ignore

View file

@ -2,5 +2,8 @@
description = HDMI / DisplayPort 4
priority = 56
[Properties]
device.icon_name = video-display
[Jack HDMI/DP,pcm=9]
required = ignore