[oe-commits] Michael 'Mickey' Lauer : alsa-state: add state files for MOTO a780

GIT User account git at amethyst.openembedded.net
Sat Dec 6 18:46:26 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: d696906d5fe25469ec9be2247e7dba5df052e534
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d696906d5fe25469ec9be2247e7dba5df052e534

Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Sat Dec  6 19:45:15 2008 +0100

alsa-state: add state files for MOTO a780

---

 packages/alsa/alsa-state.bb                    |    9 ++-
 packages/alsa/alsa-state/a780/asound.state     |   80 ------------------------
 packages/alsa/alsa-state/a780/gsmhandset.state |   55 ++++++++++++++++
 packages/alsa/alsa-state/a780/gsmheadset.state |   55 ++++++++++++++++
 packages/alsa/alsa-state/a780/stereoout.state  |   55 ++++++++++++++++
 5 files changed, 170 insertions(+), 84 deletions(-)

diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb
index 58c724f..ba030e4 100644
--- a/packages/alsa/alsa-state.bb
+++ b/packages/alsa/alsa-state.bb
@@ -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
index eafd409..0000000
--- a/packages/alsa/alsa-state/a780/asound.state
+++ /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
index 0000000..c9adfb3
--- /dev/null
+++ b/packages/alsa/alsa-state/a780/gsmhandset.state
@@ -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
index 0000000..7b72789
--- /dev/null
+++ b/packages/alsa/alsa-state/a780/gsmheadset.state
@@ -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
index 0000000..64b36a0
--- /dev/null
+++ b/packages/alsa/alsa-state/a780/stereoout.state
@@ -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
+	}
+}





More information about the Openembedded-commits mailing list