alsa-mixer: Add device.icon-name property for some common ports
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 7 Dec 2012 15:37:23 +0000 (16:37 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 7 Dec 2012 15:37:23 +0000 (16:37 +0100)
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>
src/modules/alsa/mixer/paths/analog-input-mic.conf.common
src/modules/alsa/mixer/paths/analog-output-desktop-speaker.conf
src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
src/modules/alsa/mixer/paths/analog-output-headphones.conf
src/modules/alsa/mixer/paths/analog-output-speaker-always.conf
src/modules/alsa/mixer/paths/analog-output-speaker.conf
src/modules/alsa/mixer/paths/hdmi-output-0.conf
src/modules/alsa/mixer/paths/hdmi-output-1.conf
src/modules/alsa/mixer/paths/hdmi-output-2.conf
src/modules/alsa/mixer/paths/hdmi-output-3.conf

index b1cdbaf..27bbccb 100644 (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
index dfdecf4..099823e 100644 (file)
@@ -22,6 +22,9 @@
 priority = 101
 name = analog-output-speaker
 
+[Properties]
+device.icon_name = audio-speakers
+
 [Element Hardware Master]
 switch = mute
 volume = merge
index 284713b..6161ff5 100644 (file)
@@ -22,6 +22,9 @@
 priority = 89
 name = analog-output-headphones
 
+[Properties]
+device.icon_name = audio-headphones
+
 [Element Hardware Master]
 switch = mute
 volume = merge
index 77a46f1..df0f198 100644 (file)
@@ -22,6 +22,9 @@
 priority = 90
 name = analog-output-headphones
 
+[Properties]
+device.icon_name = audio-headphones
+
 [Jack Front Headphone]
 required-any = any
 
index 14d67b0..3ebdc4a 100644 (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
index a7e3c4c..7b47fc2 100644 (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
index a86cdbd..69b39ec 100644 (file)
@@ -2,5 +2,8 @@
 description = HDMI / DisplayPort
 priority = 59
 
+[Properties]
+device.icon_name = video-display
+
 [Jack HDMI/DP,pcm=3]
 required = ignore
index d579e4b..01eeeed 100644 (file)
@@ -2,5 +2,8 @@
 description = HDMI / DisplayPort 2
 priority = 58
 
+[Properties]
+device.icon_name = video-display
+
 [Jack HDMI/DP,pcm=7]
 required = ignore
index fee57d7..5974511 100644 (file)
@@ -2,5 +2,8 @@
 description = HDMI / DisplayPort 3
 priority = 57
 
+[Properties]
+device.icon_name = video-display
+
 [Jack HDMI/DP,pcm=8]
 required = ignore
index 4e6d149..92a7acf 100644 (file)
@@ -2,5 +2,8 @@
 description = HDMI / DisplayPort 4
 priority = 56
 
+[Properties]
+device.icon_name = video-display
+
 [Jack HDMI/DP,pcm=9]
 required = ignore