aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>2016-12-16 10:57:35 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2016-12-16 08:03:58 +0000
commitcd8de601a7d8463c6f548488ea226ef8933fdb9a (patch)
tree27a03f9b6f7fd61cb4f6ee4e6c9ec46d828438f4
parentdc0993c41790488c2bdffcc59e317fb37018dd2f (diff)
Enable USB Audio in porter board
This patch is to avoid the problem that pulseaudio can not be used in the Porter board. This patch does the following two correspondences. 1. Enable USB Audio config 2. Corresponding to problem of self-destruction by outputting a lot of printk Change-Id: I58682c0755e04e87ec198dd0494d6f9380ebe4ce Signed-off-by: Naoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>
-rwxr-xr-x[-rw-r--r--]meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend10
-rwxr-xr-xmeta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/disable_delay_printk.patch17
-rwxr-xr-xmeta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/usbaudio.cfg2
3 files changed, 26 insertions, 3 deletions
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend
index 697450772..57e8d17a2 100644..100755
--- a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend
+++ b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend
@@ -1,7 +1,11 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/linux:"
-# Enable support for TP-Link TL-W722N USB Wifi adapter and RTL2832U DVB USB
+# Enable support for TP-Link TL-W722N USB Wifi adapter and RTL2832U DVB USB and USB Audio
# adapter.
-SRC_URI += "file://ath9k_htc.cfg \
- file://rtl_sdr.cfg "
+SRC_URI += " file://disable_delay_printk.patch \
+ file://ath9k_htc.cfg \
+ file://rtl_sdr.cfg \
+ file://usbaudio.cfg \
+ "
+
KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ath9k_htc.cfg ${WORKDIR}/rtl_sdr.cfg"
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/disable_delay_printk.patch b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/disable_delay_printk.patch
new file mode 100755
index 000000000..28acf1e08
--- /dev/null
+++ b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/disable_delay_printk.patch
@@ -0,0 +1,17 @@
+diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
+old mode 100644
+new mode 100755
+index 93b6e32..2e9dd36
+--- a/sound/usb/pcm.c
++++ b/sound/usb/pcm.c
+@@ -1420,8 +1420,8 @@ static void retire_playback_urb(struct snd_usb_substream *subs,
+ * on two reads of a counter updated every ms.
+ */
+ if (abs(est_delay - subs->last_delay) * 1000 > runtime->rate * 2)
+- snd_printk(KERN_DEBUG "delay: estimated %d, actual %d\n",
+- est_delay, subs->last_delay);
++// snd_printk(KERN_DEBUG "delay: estimated %d, actual %d\n",
++// est_delay, subs->last_delay);
+
+ if (!subs->running) {
+ /* update last_frame_number for delay counting here since
diff --git a/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/usbaudio.cfg b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/usbaudio.cfg
new file mode 100755
index 000000000..5961f43d3
--- /dev/null
+++ b/meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/usbaudio.cfg
@@ -0,0 +1,2 @@
+CONFIG_SND_USB=y
+CONFIG_SND_USB_AUDIO=y