Skip to content

Instantly share code, notes, and snippets.

View warped-rudi's full-sized avatar

Rüdiger Ihle warped-rudi

  • Ilmenau, Germany
View GitHub Profile
diff --git a/packages/host-packages/host-gcc/build b/packages/host-packages/host-gcc/build
index 45f1b71..3be6646 100755
--- a/packages/host-packages/host-gcc/build
+++ b/packages/host-packages/host-gcc/build
@@ -52,7 +52,8 @@ cd $1
--with-mpc=$dir_internal_mpc \
--disable-multilib \
--enable-shared \
- --disable-bootstrap
+ --disable-bootstrap \
@warped-rudi
warped-rudi / limit-concurrency.diff
Created December 13, 2014 17:05
Limit number of make job to actuall number of processors, gracefully handle invalid values for CONCURRENCY_MAKE_LEVEL
diff --git a/config/path b/config/path
index 78f53d5..9043ddc 100644
--- a/config/path
+++ b/config/path
@@ -52,6 +52,11 @@ ROOT=`pwd`
# Toolchain Settings #
######################
+NUM_PROCESSORS=`grep -c processor /proc/cpuinfo`
+[ -z "$CONCURRENCY_MAKE_LEVEL" ] && CONCURRENCY_MAKE_LEVEL=0
diff --git a/packages/system/busybox/profile.d/keymap.sh b/packages/system/busybox/profile.d/keymap.sh
index f1e2bd6..c32ee55 100755
--- a/packages/system/busybox/profile.d/keymap.sh
+++ b/packages/system/busybox/profile.d/keymap.sh
@@ -1,6 +1,18 @@
#!/bin/sh
-# load keymap given on kernel cmdline
-keymap=$(sed -n "s/.*keymap=\([^ ]*\).*/\1/p" /proc/cmdline)
-[ "x$keymap" != "x" ] && [ -r /etc/keymaps/${keymap}.kmap ] && cat /etc/keymaps/${keymap}.kmap | /sbin/loadkmap
diff --git a/sound/soc/fsl/imx-hdmi-dma.c b/sound/soc/fsl/imx-hdmi-dma.c
index 612f8ed..3af0450 100644
--- a/sound/soc/fsl/imx-hdmi-dma.c
+++ b/sound/soc/fsl/imx-hdmi-dma.c
@@ -213,6 +213,7 @@ static void hdmi_mask(int mask)
static inline int odd_ones(unsigned a)
{
+ a ^= a >> 16;
a ^= a >> 8;
diff -Naur a/Texture.cpp b/Texture.cpp
--- a/xbmc/guilib/Texture.cpp 2013-12-12 22:47:49.000000000 +0100
+++ b/xbmc/guilib/Texture.cpp 2014-01-16 21:22:58.000000000 +0100
@@ -36,6 +36,8 @@
#include "filesystem/AndroidAppFile.h"
#endif
+#include "threads/SystemClock.h"
+
/************************************************************************/
@warped-rudi
warped-rudi / fileinfo.txt
Created May 25, 2014 19:42
Dolby TrueHD failure
General
Unique ID : 189316946870555579104555688705780798964 (0x8E6D1E214FCF28DE83A684628942D5F4)
Complete name : /home/rudi/Downloads/Audio/Dani/hd_dthd_5.1.mkv
Format : Matroska
Format version : Version 2
File size : 31.4 MiB
Duration : 20s 53ms
Overall bit rate mode : Variable
Overall bit rate : 13.1 Mbps
Movie name : HD Dolby TrueHD 5.1
@warped-rudi
warped-rudi / Set-validity-bit-3-0-35.diff
Created April 25, 2014 23:06
SPDIF and HDMI validity
--- a/sound/soc/codecs/mxc_spdif.c
+++ b/sound/soc/codecs/mxc_spdif.c
@@ -367,7 +367,7 @@
static void spdif_write_channel_status(void)
{
- unsigned int ch_status;
+ unsigned int ch_status, regval;
ch_status =
@warped-rudi
warped-rudi / Restore-ALSA-device-enumeration.diff
Created April 21, 2014 12:32
XBMC iMX6 audio device test
--- a/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp 2014-04-21 13:36:56.099428215 +0200
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp 2014-04-21 13:36:56.111428214 +0200
@@ -721,9 +721,11 @@
* We don't want to do that if "default" can handle multichannel
* itself (e.g. in case of a pulseaudio server). */
+#ifndef WANDBOARD_ENUM
/* For Wandboard, we do not enurate default device as it will be grabbed
* as one of the sysdefault devices... */
-
@warped-rudi
warped-rudi / suppress-mangling-has-changed-warning.diff
Created October 4, 2013 21:42
Suppress *mangling has chnaged in GCC 4.4' warnings
diff --git a/configure.ac b/configure.ac
index 9b2ac34..772ca7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -342,7 +342,7 @@ fi
LIBS_LIBCEC="$LIBS"
LIBS="$libs_client"
-CXXFLAGS="$CXXFLAGS -fPIC -Wall -Wextra -Wno-missing-field-initializers"
+CXXFLAGS="$CXXFLAGS -fPIC -Wall -Wextra -Wno-missing-field-initializers -Wno-psabi"