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 ; See analog-output.conf.common for an explanation on the directives
[Properties]
device.icon_name = audio-input-microphone
[Element Line] [Element Line]
switch = off switch = off
volume = off volume = off

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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