alsa-state: add state files for MOTO a780
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 6 Dec 2008 18:45:15 +0000 (19:45 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 6 Dec 2008 18:45:36 +0000 (19:45 +0100)
packages/alsa/alsa-state.bb
packages/alsa/alsa-state/a780/asound.state [deleted file]
packages/alsa/alsa-state/a780/gsmhandset.state [new file with mode: 0644]
packages/alsa/alsa-state/a780/gsmheadset.state [new file with mode: 0644]
packages/alsa/alsa-state/a780/stereoout.state [new file with mode: 0644]

index 58c724f..ba030e4 100644 (file)
@@ -4,15 +4,16 @@
 #
 # Filename: alsa-state.bb
 
-DESCRIPTION = "Default ALSA configuration"
-LICENSE = "GPL"
-PV = "0.1.0"
-PR = "r18"
+DESCRIPTION = "Alsa Scenario Files"
+LICENSE = "MIT"
+PV = "0.2.0"
+PR = "r0"
 
 SRC_URI = "\
   file://asound.conf \
   file://asound.state \
   file://alsa-state \
+  file://*.state \
 "
 
 inherit update-rc.d
diff --git a/packages/alsa/alsa-state/a780/asound.state b/packages/alsa/alsa-state/a780/asound.state
deleted file mode 100644 (file)
index eafd409..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-state.EZX {
-       control.1 {
-               comment.access 'read write'
-               comment.type INTEGER
-               comment.count 1
-               comment.range '0 - 15'
-               iface MIXER
-               name 'Output gain'
-               value 9
-       }
-       control.2 {
-               comment.access 'read write'
-               comment.type INTEGER
-               comment.count 1
-               comment.range '0 - 31'
-               iface MIXER
-               name 'Input gain'
-               value 14
-       }
-       control.3 {
-               comment.access 'read write'
-               comment.type BOOLEAN
-               comment.count 1
-               iface MIXER
-               name 'Input Mixer A3 Switch'
-               value true
-       }
-       control.4 {
-               comment.access 'read write'
-               comment.type BOOLEAN
-               comment.count 1
-               iface MIXER
-               name 'Input Mixer A5 Switch'
-               value true
-       }
-       control.5 {
-               comment.access 'read write'
-               comment.type BOOLEAN
-               comment.count 1
-               iface MIXER
-               name 'Output Mixer A1 Switch'
-               value true
-       }
-       control.6 {
-               comment.access 'read write'
-               comment.type BOOLEAN
-               comment.count 1
-               iface MIXER
-               name 'Output Mixer A2 Switch'
-               value true
-       }
-       control.7 {
-               comment.access 'read write'
-               comment.type BOOLEAN
-               comment.count 1
-               iface MIXER
-               name 'Output Mixer AR Switch'
-               value true
-       }
-       control.8 {
-               comment.access 'read write'
-               comment.type BOOLEAN
-               comment.count 1
-               iface MIXER
-               name 'Output Mixer AL Switch'
-               value true
-       }
-       control.9 {
-               comment.access 'read write'
-               comment.type ENUMERATED
-               comment.count 1
-               comment.item.0 '2ch'
-               comment.item.1 '2->1ch'
-               comment.item.2 '2->1ch -3db'
-               comment.item.3 '2->1ch -6db'
-               iface MIXER
-               name Downmixer
-               value '2ch'
-       }
-}
diff --git a/packages/alsa/alsa-state/a780/gsmhandset.state b/packages/alsa/alsa-state/a780/gsmhandset.state
new file mode 100644 (file)
index 0000000..c9adfb3
--- /dev/null
@@ -0,0 +1,55 @@
+state.EZX {
+       control.1 {
+               comment.access 'read write'
+               comment.type INTEGER
+               comment.count 1
+               comment.range '0 - 15'
+               iface MIXER
+               name 'Master Playback Volume'
+               value 6
+       }
+       control.2 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Stereo
+               comment.item.1 Mono
+               comment.item.2 BP
+               iface MIXER
+               name 'DAI Select'
+               value BP
+       }
+       control.3 {
+               comment.access 'read write'
+               comment.type INTEGER
+               comment.count 1
+               comment.range '0 - 31'
+               iface MIXER
+               name 'Capture Volume'
+               value 14
+       }
+       control.4 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Off
+               comment.item.1 '2->1ch'
+               comment.item.2 '2->1ch -3db'
+               comment.item.3 '2->1ch -6db'
+               iface MIXER
+               name Downmixer
+               value Off
+       }
+       control.5 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Off
+               comment.item.1 Loudspeaker
+               comment.item.2 Earpiece
+               comment.item.3 Headset
+               iface MIXER
+               name 'Output mode'
+               value Earpiece
+       }
+}
diff --git a/packages/alsa/alsa-state/a780/gsmheadset.state b/packages/alsa/alsa-state/a780/gsmheadset.state
new file mode 100644 (file)
index 0000000..7b72789
--- /dev/null
@@ -0,0 +1,55 @@
+state.EZX {
+       control.1 {
+               comment.access 'read write'
+               comment.type INTEGER
+               comment.count 1
+               comment.range '0 - 15'
+               iface MIXER
+               name 'Master Playback Volume'
+               value 6
+       }
+       control.2 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Stereo
+               comment.item.1 Mono
+               comment.item.2 BP
+               iface MIXER
+               name 'DAI Select'
+               value BP
+       }
+       control.3 {
+               comment.access 'read write'
+               comment.type INTEGER
+               comment.count 1
+               comment.range '0 - 31'
+               iface MIXER
+               name 'Capture Volume'
+               value 14
+       }
+       control.4 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Off
+               comment.item.1 '2->1ch'
+               comment.item.2 '2->1ch -3db'
+               comment.item.3 '2->1ch -6db'
+               iface MIXER
+               name Downmixer
+               value Off
+       }
+       control.5 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Off
+               comment.item.1 Loudspeaker
+               comment.item.2 Earpiece
+               comment.item.3 Headset
+               iface MIXER
+               name 'Output mode'
+               value Headset
+       }
+}
diff --git a/packages/alsa/alsa-state/a780/stereoout.state b/packages/alsa/alsa-state/a780/stereoout.state
new file mode 100644 (file)
index 0000000..64b36a0
--- /dev/null
@@ -0,0 +1,55 @@
+state.EZX {
+       control.1 {
+               comment.access 'read write'
+               comment.type INTEGER
+               comment.count 1
+               comment.range '0 - 15'
+               iface MIXER
+               name 'Master Playback Volume'
+               value 6
+       }
+       control.2 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Stereo
+               comment.item.1 Mono
+               comment.item.2 BP
+               iface MIXER
+               name 'DAI Select'
+               value Stereo
+       }
+       control.3 {
+               comment.access 'read write'
+               comment.type INTEGER
+               comment.count 1
+               comment.range '0 - 31'
+               iface MIXER
+               name 'Capture Volume'
+               value 14
+       }
+       control.4 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Off
+               comment.item.1 '2->1ch'
+               comment.item.2 '2->1ch -3db'
+               comment.item.3 '2->1ch -6db'
+               iface MIXER
+               name Downmixer
+               value Off
+       }
+       control.5 {
+               comment.access 'read write'
+               comment.type ENUMERATED
+               comment.count 1
+               comment.item.0 Off
+               comment.item.1 Loudspeaker
+               comment.item.2 Earpiece
+               comment.item.3 Headset
+               iface MIXER
+               name 'Output mode'
+               value Loudspeaker
+       }
+}