aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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