From 1e67b3c3bb15bda23ad072b216455b0eca912fa2 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 15 Feb 2014 16:29:31 +0100 Subject: [PATCH 1/1] kernel: cs5535audio spam the syslog with access errors. On geos boards the cs5535 is present but the ac97 is not there. --- lfs/linux | 3 +++ ...0.30_cs5535audio_fix_logspam_on_geos.patch | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/patches/linux-3.10.30_cs5535audio_fix_logspam_on_geos.patch diff --git a/lfs/linux b/lfs/linux index 6aaa60e78..2a7eb32cb 100644 --- a/lfs/linux +++ b/lfs/linux @@ -147,6 +147,9 @@ endif # Add LED trigger cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.9-ledtrig-netdev-1.patch + # cs5535audio spams syslog if no ac97 was present (geos router) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.30_cs5535audio_fix_logspam_on_geos.patch + # Fix uevent PHYSDEVDRIVER cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.2.33_ipg-fix-driver-name.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.27_mcs7830-fix-driver-name.patch diff --git a/src/patches/linux-3.10.30_cs5535audio_fix_logspam_on_geos.patch b/src/patches/linux-3.10.30_cs5535audio_fix_logspam_on_geos.patch new file mode 100644 index 000000000..490a34d43 --- /dev/null +++ b/src/patches/linux-3.10.30_cs5535audio_fix_logspam_on_geos.patch @@ -0,0 +1,27 @@ +diff -Naur linux-3.10.30.org/sound/pci/cs5535audio/cs5535audio.c linux-3.10.30/sound/pci/cs5535audio/cs5535audio.c +--- linux-3.10.30.org/sound/pci/cs5535audio/cs5535audio.c 2014-02-13 22:48:15.000000000 +0100 ++++ linux-3.10.30/sound/pci/cs5535audio/cs5535audio.c 2014-02-15 12:45:49.545688703 +0100 +@@ -83,8 +83,8 @@ + break; + udelay(1); + } while (--timeout); +- if (!timeout) +- snd_printk(KERN_ERR "Failure writing to cs5535 codec\n"); ++// if (!timeout) ++// snd_printk(KERN_ERR "Failure writing to cs5535 codec\n"); + } + + static unsigned short snd_cs5535audio_codec_read(struct cs5535audio *cs5535au, +@@ -108,9 +108,9 @@ + break; + udelay(1); + } while (--timeout); +- if (!timeout) +- snd_printk(KERN_ERR "Failure reading codec reg 0x%x," +- "Last value=0x%x\n", reg, val); ++// if (!timeout) ++// snd_printk(KERN_ERR "Failure reading codec reg 0x%x," ++// "Last value=0x%x\n", reg, val); + + return (unsigned short) val; + } -- 2.39.2