Enable USB Audio in porter board 55/7655/2
authorNaoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>
Fri, 16 Dec 2016 01:57:35 +0000 (10:57 +0900)
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Fri, 16 Dec 2016 08:03:58 +0000 (08:03 +0000)
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>
meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux-renesas_%.bbappend [changed mode: 0644->0755]
meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/disable_delay_printk.patch [new file with mode: 0755]
meta-agl-bsp/meta-renesas/recipes-kernel/linux/linux/usbaudio.cfg [new file with mode: 0755]

old mode 100644 (file)
new mode 100755 (executable)
index 6974507..57e8d17
@@ -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 (executable)
index 0000000..28acf1e
--- /dev/null
@@ -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 (executable)
index 0000000..5961f43
--- /dev/null
@@ -0,0 +1,2 @@
+CONFIG_SND_USB=y
+CONFIG_SND_USB_AUDIO=y