From 403a8c7d6e2668b18c0e8d43fdf47a4c4bc754d3 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sat, 13 Jul 2013 18:59:26 +0300 Subject: [PATCH 1/4] linux: add CONFIG_SND_LAYLA24 closes #2347 --- projects/Fusion/linux/linux.x86_64.conf | 2 +- projects/Generic/linux/linux.i386.conf | 2 +- projects/Generic/linux/linux.x86_64.conf | 2 +- projects/Generic_OSS/linux/linux.i386.conf | 2 +- projects/ION/linux/linux.x86_64.conf | 2 +- projects/Intel/linux/linux.x86_64.conf | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/Fusion/linux/linux.x86_64.conf b/projects/Fusion/linux/linux.x86_64.conf index 02aa414ec0..2776232194 100644 --- a/projects/Fusion/linux/linux.x86_64.conf +++ b/projects/Fusion/linux/linux.x86_64.conf @@ -2579,7 +2579,7 @@ CONFIG_SND_OXYGEN_LIB=m # CONFIG_SND_LAYLA20 is not set # CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set -# CONFIG_SND_LAYLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set diff --git a/projects/Generic/linux/linux.i386.conf b/projects/Generic/linux/linux.i386.conf index 49f27f0aa7..1b0b94333b 100644 --- a/projects/Generic/linux/linux.i386.conf +++ b/projects/Generic/linux/linux.i386.conf @@ -2747,7 +2747,7 @@ CONFIG_SND_CTXFI=m # CONFIG_SND_DARLA20 is not set # CONFIG_SND_GINA20 is not set # CONFIG_SND_LAYLA20 is not set -# CONFIG_SND_DARLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_GINA24 is not set # CONFIG_SND_LAYLA24 is not set # CONFIG_SND_MONA is not set diff --git a/projects/Generic/linux/linux.x86_64.conf b/projects/Generic/linux/linux.x86_64.conf index bad234bf80..a6e1176bc3 100644 --- a/projects/Generic/linux/linux.x86_64.conf +++ b/projects/Generic/linux/linux.x86_64.conf @@ -2715,7 +2715,7 @@ CONFIG_SND_CTXFI=m # CONFIG_SND_DARLA20 is not set # CONFIG_SND_GINA20 is not set # CONFIG_SND_LAYLA20 is not set -# CONFIG_SND_DARLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_GINA24 is not set # CONFIG_SND_LAYLA24 is not set # CONFIG_SND_MONA is not set diff --git a/projects/Generic_OSS/linux/linux.i386.conf b/projects/Generic_OSS/linux/linux.i386.conf index 9ac9cd30ec..3e74b4c0e3 100644 --- a/projects/Generic_OSS/linux/linux.i386.conf +++ b/projects/Generic_OSS/linux/linux.i386.conf @@ -2752,7 +2752,7 @@ CONFIG_SND_CTXFI=m # CONFIG_SND_LAYLA20 is not set # CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set -# CONFIG_SND_LAYLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set diff --git a/projects/ION/linux/linux.x86_64.conf b/projects/ION/linux/linux.x86_64.conf index 6bb90542e8..aabfc27de5 100644 --- a/projects/ION/linux/linux.x86_64.conf +++ b/projects/ION/linux/linux.x86_64.conf @@ -2569,7 +2569,7 @@ CONFIG_SND_OXYGEN=m # CONFIG_SND_LAYLA20 is not set # CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set -# CONFIG_SND_LAYLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set diff --git a/projects/Intel/linux/linux.x86_64.conf b/projects/Intel/linux/linux.x86_64.conf index fc0fde5f80..6626b1cbf0 100644 --- a/projects/Intel/linux/linux.x86_64.conf +++ b/projects/Intel/linux/linux.x86_64.conf @@ -2637,7 +2637,7 @@ CONFIG_SND_OXYGEN=m # CONFIG_SND_LAYLA20 is not set # CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set -# CONFIG_SND_LAYLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set From 589f8a91b157f1d7f71068b01c482f8ce6bd82b8 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sat, 13 Jul 2013 19:00:50 +0300 Subject: [PATCH 2/4] linux: elable ALX on Fusion/ION/Intel too --- projects/Fusion/linux/linux.x86_64.conf | 2 +- projects/ION/linux/linux.x86_64.conf | 2 +- projects/Intel/linux/linux.x86_64.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/Fusion/linux/linux.x86_64.conf b/projects/Fusion/linux/linux.x86_64.conf index 2776232194..faad957d28 100644 --- a/projects/Fusion/linux/linux.x86_64.conf +++ b/projects/Fusion/linux/linux.x86_64.conf @@ -1165,7 +1165,7 @@ CONFIG_NET_VENDOR_ATHEROS=y # CONFIG_ATL1 is not set # CONFIG_ATL1E is not set CONFIG_ATL1C=y -# CONFIG_ALX is not set +CONFIG_ALX=y # CONFIG_NET_CADENCE is not set CONFIG_NET_VENDOR_BROADCOM=y # CONFIG_B44 is not set diff --git a/projects/ION/linux/linux.x86_64.conf b/projects/ION/linux/linux.x86_64.conf index aabfc27de5..690f271063 100644 --- a/projects/ION/linux/linux.x86_64.conf +++ b/projects/ION/linux/linux.x86_64.conf @@ -1152,7 +1152,7 @@ CONFIG_NET_VENDOR_ATHEROS=y # CONFIG_ATL1 is not set # CONFIG_ATL1E is not set CONFIG_ATL1C=y -# CONFIG_ALX is not set +CONFIG_ALX=y # CONFIG_NET_CADENCE is not set # CONFIG_NET_VENDOR_BROADCOM is not set # CONFIG_NET_VENDOR_BROCADE is not set diff --git a/projects/Intel/linux/linux.x86_64.conf b/projects/Intel/linux/linux.x86_64.conf index 6626b1cbf0..8d9ce91748 100644 --- a/projects/Intel/linux/linux.x86_64.conf +++ b/projects/Intel/linux/linux.x86_64.conf @@ -1167,7 +1167,7 @@ CONFIG_NET_VENDOR_ATHEROS=y # CONFIG_ATL1 is not set CONFIG_ATL1E=y CONFIG_ATL1C=y -# CONFIG_ALX is not set +CONFIG_ALX=y # CONFIG_NET_CADENCE is not set CONFIG_NET_VENDOR_BROADCOM=y # CONFIG_B44 is not set From 801e9ee7662753b8eaa4c553354e91150af8aca3 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sat, 13 Jul 2013 19:14:59 +0300 Subject: [PATCH 3/4] linux: ups: layla24. typo --- projects/Generic/linux/linux.i386.conf | 4 ++-- projects/Generic/linux/linux.x86_64.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/Generic/linux/linux.i386.conf b/projects/Generic/linux/linux.i386.conf index 1b0b94333b..569ead3cb8 100644 --- a/projects/Generic/linux/linux.i386.conf +++ b/projects/Generic/linux/linux.i386.conf @@ -2747,9 +2747,9 @@ CONFIG_SND_CTXFI=m # CONFIG_SND_DARLA20 is not set # CONFIG_SND_GINA20 is not set # CONFIG_SND_LAYLA20 is not set -CONFIG_SND_LAYLA24=m +# CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set -# CONFIG_SND_LAYLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set diff --git a/projects/Generic/linux/linux.x86_64.conf b/projects/Generic/linux/linux.x86_64.conf index a6e1176bc3..988171ee47 100644 --- a/projects/Generic/linux/linux.x86_64.conf +++ b/projects/Generic/linux/linux.x86_64.conf @@ -2715,9 +2715,9 @@ CONFIG_SND_CTXFI=m # CONFIG_SND_DARLA20 is not set # CONFIG_SND_GINA20 is not set # CONFIG_SND_LAYLA20 is not set -CONFIG_SND_LAYLA24=m +# CONFIG_SND_DARLA24 is not set # CONFIG_SND_GINA24 is not set -# CONFIG_SND_LAYLA24 is not set +CONFIG_SND_LAYLA24=m # CONFIG_SND_MONA is not set # CONFIG_SND_MIA is not set # CONFIG_SND_ECHO3G is not set From 97262a5d9e8aba21c49523a9f3efbbaa728920bc Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sat, 13 Jul 2013 19:36:32 +0300 Subject: [PATCH 4/4] linux: fix incorrect detection of 3070 chipset closes #2435 --- ...port-for-cheap-Ralink-3070-WiFi-plug.patch | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch diff --git a/packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch b/packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch new file mode 100644 index 0000000000..dba087cd57 --- /dev/null +++ b/packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch @@ -0,0 +1,72 @@ +commit 073af93346306a0e079c161e3ed8dd263fef0b20 +Author: Stefan Saraev +Date: Sat Jul 13 19:31:03 2013 +0300 + + Support for cheap Ralink 3070 WiFi plug + + source: http://www.geekamole.com/2013/rt2800usb-fix-for-ralinkmediatek-3070-gentoo-linux/ + +diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h +index a7630d5..9504d45 100644 +--- a/drivers/net/wireless/rt2x00/rt2800.h ++++ b/drivers/net/wireless/rt2x00/rt2800.h +@@ -69,6 +69,7 @@ + #define RF3320 0x000b + #define RF3322 0x000c + #define RF3053 0x000d ++#define RF3070 0x3070 + #define RF5592 0x000f + #define RF3290 0x3290 + #define RF5360 0x5360 +diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c +index 72f32e5..3e18df4 100644 +--- a/drivers/net/wireless/rt2x00/rt2800lib.c ++++ b/drivers/net/wireless/rt2x00/rt2800lib.c +@@ -2599,6 +2599,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, + break; + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: +@@ -2615,6 +2616,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, + rt2x00_rf(rt2x00dev, RF3322) || + rt2x00_rf(rt2x00dev, RF5360) || + rt2x00_rf(rt2x00dev, RF5370) || ++ rt2x00_rf(rt2x00dev, RF3070) || + rt2x00_rf(rt2x00dev, RF5372) || + rt2x00_rf(rt2x00dev, RF5390) || + rt2x00_rf(rt2x00dev, RF5392)) { +@@ -3199,6 +3201,7 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) + case RF3290: + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: +@@ -5515,6 +5518,7 @@ static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev) + case RF3322: + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: +@@ -5969,6 +5973,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) + rt2x00_rf(rt2x00dev, RF3322) || + rt2x00_rf(rt2x00dev, RF5360) || + rt2x00_rf(rt2x00dev, RF5370) || ++ rt2x00_rf(rt2x00dev, RF3070) || + rt2x00_rf(rt2x00dev, RF5372) || + rt2x00_rf(rt2x00dev, RF5390) || + rt2x00_rf(rt2x00dev, RF5392)) { +@@ -6071,6 +6076,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) + case RF3290: + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: