From 0be23c40f3d29474e9d3d3a57655083e3dafd353 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 11 Oct 2015 16:23:01 +0000 Subject: brcm2708: all sound overlays require i2c to work MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested on RPi B+ with HiFiBerry Amp+ Signed-off-by: Álvaro Fernández Rojas SVN-Revision: 47169 --- target/linux/brcm2708/modules.mk | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'target/linux/brcm2708') diff --git a/target/linux/brcm2708/modules.mk b/target/linux/brcm2708/modules.mk index 9c201d0997..36d26c6bcd 100644 --- a/target/linux/brcm2708/modules.mk +++ b/target/linux/brcm2708/modules.mk @@ -55,7 +55,7 @@ define KernelPackage/sound-soc-hifiberry-dac $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-dac.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm5102a.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm5102a snd-soc-hifiberry-dac) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -74,7 +74,7 @@ define KernelPackage/sound-soc-hifiberry-dacplus $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-dacplus.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-hifiberry-dacplus) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -93,7 +93,7 @@ define KernelPackage/sound-soc-hifiberry-digi $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-digi.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8804 snd-soc-hifiberry-digi) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -112,7 +112,7 @@ define KernelPackage/sound-soc-hifiberry-amp $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-amp.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-tas5713.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-tas5713 snd-soc-hifiberry-amp) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -131,7 +131,7 @@ define KernelPackage/sound-soc-rpi-dac $(LINUX_DIR)/sound/soc/bcm/snd-soc-rpi-dac.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm1794a.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm1794a snd-soc-rpi-dac) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -150,7 +150,7 @@ define KernelPackage/sound-soc-rpi-proto $(LINUX_DIR)/sound/soc/bcm/snd-soc-rpi-proto.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8731.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8731 snd-soc-rpi-proto) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -171,7 +171,7 @@ define KernelPackage/sound-soc-iqaudio-dac $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-pcm512x-i2c snd-soc-iqaudio-dac) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef @@ -194,7 +194,7 @@ define KernelPackage/sound-soc-raspidac3 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-tpa6130a2.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-pcm512x-i2c snd-soc-tpa6130a2 snd-soc-raspidac3) - DEPENDS:=kmod-sound-soc-bcm2708-i2s + DEPENDS:=kmod-sound-soc-bcm2708-i2s +kmod-i2c-bcm2708 $(call AddDepends/sound) endef -- cgit v1.2.3 t/openwrt/upstream/tree/?h=v21.02.5&id=cb0c8da7c26ffbc361f70f4a343e4f82c0429669'>root/package/kernel/mac80211/patches/600-0028-rt2x00-rt2800lib-fix-LNA-gain-configuration-for-RT38.patch
blob: 4da750e7123e976dcb3b74b47ebce6b4d13bf1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 6d668fef3a1baa60bdd715ee062ddb6333d2647c Mon Sep 17 00:00:00 2001
From: Gabor Juhos <juhosg@openwrt.org>
Date: Mon, 30 Sep 2013 16:58:23 +0200
Subject: [PATCH] rt2x00: rt2800lib: fix LNA gain configuration for RT3883

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
 drivers/net/wireless/rt2x00/rt2800lib.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -1960,7 +1960,8 @@ static void rt2800_config_lna_gain(struc
 		rt2800_eeprom_read(rt2x00dev, EEPROM_LNA, &eeprom);
 		lna_gain = rt2x00_get_field16(eeprom, EEPROM_LNA_A0);
 	} else if (libconf->rf.channel <= 128) {
-		if (rt2x00_rt(rt2x00dev, RT3593)) {
+		if (rt2x00_rt(rt2x00dev, RT3593) ||
+		    rt2x00_rt(rt2x00dev, RT3883)) {
 			rt2800_eeprom_read(rt2x00dev, EEPROM_EXT_LNA2, &eeprom);
 			lna_gain = rt2x00_get_field16(eeprom,
 						      EEPROM_EXT_LNA2_A1);
@@ -1970,7 +1971,8 @@ static void rt2800_config_lna_gain(struc
 						      EEPROM_RSSI_BG2_LNA_A1);
 		}
 	} else {
-		if (rt2x00_rt(rt2x00dev, RT3593)) {
+		if (rt2x00_rt(rt2x00dev, RT3593) ||
+		    rt2x00_rt(rt2x00dev, RT3883)) {
 			rt2800_eeprom_read(rt2x00dev, EEPROM_EXT_LNA2, &eeprom);
 			lna_gain = rt2x00_get_field16(eeprom,
 						      EEPROM_EXT_LNA2_A2);