Add board support configuration files 41/28941/1 accepted/tizen_3.0_ivi accepted/tizen_ivi tizen tizen_3.0_ivi accepted/tizen/ivi/20141211.055608 submit/tizen/20141210.102802 submit/tizen_ivi/20141217.021010 tizen_3.0_ivi_release
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 5 Feb 2014 02:08:53 +0000 (11:08 +0900)
committerTony SIM <chinyeow.sim.xt@renesas.com>
Fri, 17 Oct 2014 09:35:39 +0000 (17:35 +0800)
Add the files to configure the following features:
Audio output
Accelerated video decoding with GStreamer

Change-Id: I5393b60d010691a422c2130ce0af82bdc4c22531
Signed-off-by: Tony SIM <chinyeow.sim.xt@renesas.com>
COPYING [new file with mode: 0644]
Makefile [new file with mode: 0644]
packaging/board-config.manifest [new file with mode: 0644]
packaging/board-config.spec [new file with mode: 0644]
sound/50-audio.rules [new file with mode: 0644]
sound/Makefile [new file with mode: 0644]
sound/asound.state [new file with mode: 0644]
video/50-video.rules [new file with mode: 0644]
video/Makefile [new file with mode: 0644]
video/gstvspfilter.conf [new file with mode: 0644]

diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..0bebafa
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,7 @@
+Copyright (C) 2014 Renesas Corporation
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c9eae40
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+SUBDIRS=sound video
+
+all:
+       for d in ${SUBDIRS}; do $(MAKE) -C $$d; done
+
+install:
+       for d in ${SUBDIRS}; do $(MAKE) install -C $$d; done
diff --git a/packaging/board-config.manifest b/packaging/board-config.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/board-config.spec b/packaging/board-config.spec
new file mode 100644 (file)
index 0000000..3a1cab3
--- /dev/null
@@ -0,0 +1,22 @@
+Name:           renesas_rcar-board-config
+Version:        1.0.0
+Release:       0
+License:       MIT
+Summary:       Board dependent config files
+Source:       %{name}-%{version}.tar.gz
+BuildRequires:  make
+
+%description
+This package contains the board dependent configuration files that are
+not included as part of other packages.  
+
+%prep
+%setup
+
+%install
+%make_install
+
+%files
+%defattr(-,root,root)
+%{_sysconfdir}/*
+%{_localstatedir}/*
diff --git a/sound/50-audio.rules b/sound/50-audio.rules
new file mode 100644 (file)
index 0000000..e5d5b8d
--- /dev/null
@@ -0,0 +1,2 @@
+SUBSYSTEMS=="platform", ATTR{id}=="koelschak4643", ENV{SOUND_FORM_FACTOR}="internal"
+SUBSYSTEMS=="platform", ATTR{id}=="lagerak4643", ENV{SOUND_FORM_FACTOR}="internal"
diff --git a/sound/Makefile b/sound/Makefile
new file mode 100644 (file)
index 0000000..e8cfde5
--- /dev/null
@@ -0,0 +1,5 @@
+install: 50-audio.rules asound.state
+       install asound.state -D ${DESTDIR}/var/lib/alsa/asound.state
+       install 50-audio.rules -D ${DESTDIR}/etc/udev/rules.d/50-audio.rules
+
+.PHONY: install
diff --git a/sound/asound.state b/sound/asound.state
new file mode 100644 (file)
index 0000000..eca4b00
--- /dev/null
@@ -0,0 +1,38 @@
+state.SSI01AK4643 {
+       control.1 {
+               iface MIXER
+               name 'Digital Playback Volume'
+               value.0 180
+               value.1 180
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 2
+                       range '0 - 255'
+                       dbmin -9999999
+                       dbmax 1200
+                       dbvalue.0 -2550
+                       dbvalue.1 -2550
+               }
+       }
+       control.2 {
+               iface MIXER
+               name 'LINEOUT Mixer DACL'
+               value true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.3 {
+               iface MIXER
+               name 'Headphone Enable Switch'
+               value false
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 1
+               }
+       }
+}
diff --git a/video/50-video.rules b/video/50-video.rules
new file mode 100644 (file)
index 0000000..9e07e9b
--- /dev/null
@@ -0,0 +1,2 @@
+SUBSYSTEM=="video4linux", MODE="0666"
+SUBSYSTEM=="media", MODE="0666"
diff --git a/video/Makefile b/video/Makefile
new file mode 100644 (file)
index 0000000..fc2fdab
--- /dev/null
@@ -0,0 +1,5 @@
+install: 50-video.rules gstvspfilter.conf
+       install 50-video.rules -D ${DESTDIR}/etc/udev/rules.d/50-video.rules
+       install gstvspfilter.conf -D ${DESTDIR}/etc
+
+.PHONY: install
diff --git a/video/gstvspfilter.conf b/video/gstvspfilter.conf
new file mode 100644 (file)
index 0000000..c534883
--- /dev/null
@@ -0,0 +1,2 @@
+input-device-name=/dev/video2
+output-device-name=/dev/video6