You can subscribe to this list here.
| 2006 |
Jan
|
Feb
(4) |
Mar
(135) |
Apr
(130) |
May
(82) |
Jun
(101) |
Jul
(75) |
Aug
(37) |
Sep
(28) |
Oct
(45) |
Nov
(114) |
Dec
(27) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(22) |
Feb
(60) |
Mar
(81) |
Apr
(120) |
May
(29) |
Jun
(50) |
Jul
(67) |
Aug
(41) |
Sep
(36) |
Oct
(4) |
Nov
(4) |
Dec
|
| 2008 |
Jan
(5) |
Feb
(17) |
Mar
(5) |
Apr
(6) |
May
(5) |
Jun
(9) |
Jul
(5) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <nbo...@us...> - 2007-06-16 10:07:26
|
Revision: 129
http://svn.sourceforge.net/mactel-linux/?rev=129&view=rev
Author: nboichat
Date: 2007-06-16 03:07:20 -0700 (Sat, 16 Jun 2007)
Log Message:
-----------
Update series against 2.6.21.5.
Modified Paths:
--------------
trunk/kernel/mactel-patches-2.6.21/series
Modified: trunk/kernel/mactel-patches-2.6.21/series
===================================================================
--- trunk/kernel/mactel-patches-2.6.21/series 2007-06-16 09:05:44 UTC (rev 128)
+++ trunk/kernel/mactel-patches-2.6.21/series 2007-06-16 10:07:20 UTC (rev 129)
@@ -1,4 +1,4 @@
-# This series applies on GIT commit dcf1697d4b4b9b94363b5fb0d97f7949602922ab
+# This series applies on GIT commit f4f835e151bc00961ef65449a992817931355793
applesmc-mm.patch
applesmc-fix-names.patch
applesmc_int.patch
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nbo...@us...> - 2007-06-16 09:05:59
|
Revision: 128
http://svn.sourceforge.net/mactel-linux/?rev=128&view=rev
Author: nboichat
Date: 2007-06-16 02:05:44 -0700 (Sat, 16 Jun 2007)
Log Message:
-----------
Update patches. Add applesmc-use-input-polldev.patch already applied in -mm for tests.
Modified Paths:
--------------
trunk/kernel/mactel-patches-2.6.22/appleir.patch
trunk/kernel/mactel-patches-2.6.22/series
trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch
trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch
Added Paths:
-----------
trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch
Removed Paths:
-------------
trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch
Modified: trunk/kernel/mactel-patches-2.6.22/appleir.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/appleir.patch 2007-05-27 17:36:01 UTC (rev 127)
+++ trunk/kernel/mactel-patches-2.6.22/appleir.patch 2007-06-16 09:05:44 UTC (rev 128)
@@ -11,7 +11,7 @@
3 files changed, 385 insertions(+), 0 deletions(-)
diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
-index 842a7b4..00d43d0 100644
+index 88e2907..d2d629a 100644
--- a/drivers/input/misc/Kconfig
+++ b/drivers/input/misc/Kconfig
@@ -113,6 +113,10 @@ config INPUT_ATI_REMOTE2
@@ -25,16 +25,16 @@
config INPUT_KEYSPAN_REMOTE
tristate "Keyspan DMR USB remote control (EXPERIMENTAL)"
depends on EXPERIMENTAL
-@@ -190,3 +194,4 @@ config HP_SDC_RTC
+@@ -179,3 +183,4 @@ config HP_SDC_RTC
of the HP SDC controller.
endif
+
diff --git a/drivers/input/misc/Makefile b/drivers/input/misc/Makefile
-index 8b2f779..ca41877 100644
+index 3585b50..f73f139 100644
--- a/drivers/input/misc/Makefile
+++ b/drivers/input/misc/Makefile
-@@ -14,6 +14,7 @@ obj-$(CONFIG_INPUT_WISTRON_BTNS) += wistron_btns.o
+@@ -13,6 +13,7 @@ obj-$(CONFIG_INPUT_WISTRON_BTNS) += wistron_btns.o
obj-$(CONFIG_INPUT_ATLAS_BTNS) += atlas_btns.o
obj-$(CONFIG_INPUT_ATI_REMOTE) += ati_remote.o
obj-$(CONFIG_INPUT_ATI_REMOTE2) += ati_remote2.o
Added: trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch 2007-06-16 09:05:44 UTC (rev 128)
@@ -0,0 +1,221 @@
+HWMON: applesmc - convert to use input-polldev.
+
+From: Nicolas Boichat <ni...@bo...>
+
+Switch to using input-polldev skeleton instead of implementing
+polling loop by itself. This also fixes problem with trylock
+on a mutex in atomic context.
+
+Signed-off-by: Dmitry Torokhov <dt...@ma...>
+---
+
+ drivers/hwmon/Kconfig | 1 +
+ drivers/hwmon/applesmc.c | 83 +++++++++++++++++-----------------------------
+ 2 files changed, 31 insertions(+), 53 deletions(-)
+
+diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
+index 13eea47..f0ab2ac 100644
+--- a/drivers/hwmon/Kconfig
++++ b/drivers/hwmon/Kconfig
+@@ -623,6 +623,7 @@ config SENSORS_APPLESMC
+ depends on INPUT && X86
+ select NEW_LEDS
+ select LEDS_CLASS
++ select INPUT_POLLDEV
+ default n
+ help
+ This driver provides support for the Apple System Management
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index e523851..ff56afd 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -28,7 +28,7 @@
+
+ #include <linux/delay.h>
+ #include <linux/platform_device.h>
+-#include <linux/input.h>
++#include <linux/input-polldev.h>
+ #include <linux/kernel.h>
+ #include <linux/module.h>
+ #include <linux/timer.h>
+@@ -67,9 +67,9 @@
+
+ #define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6 bytes) */
+ #define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6 bytes) */
+-#define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
++#define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
+
+-#define CLAMSHELL_KEY "MSLD" /* r-o ui8 (unused) */
++#define CLAMSHELL_KEY "MSLD" /* r-o ui8 (unused) */
+
+ #define MOTION_SENSOR_X_KEY "MO_X" /* r-o sp78 (2 bytes) */
+ #define MOTION_SENSOR_Y_KEY "MO_Y" /* r-o sp78 (2 bytes) */
+@@ -120,7 +120,7 @@ static const char* fan_speed_keys[] = {
+ #define INIT_TIMEOUT_MSECS 5000 /* wait up to 5s for device init ... */
+ #define INIT_WAIT_MSECS 50 /* ... in 50ms increments */
+
+-#define APPLESMC_POLL_PERIOD (HZ/20) /* poll for input every 1/20s */
++#define APPLESMC_POLL_INTERVAL 50 /* msecs */
+ #define APPLESMC_INPUT_FUZZ 4 /* input event threshold */
+ #define APPLESMC_INPUT_FLAT 4
+
+@@ -142,8 +142,7 @@ static const int debug;
+ static struct platform_device *pdev;
+ static s16 rest_x;
+ static s16 rest_y;
+-static struct timer_list applesmc_timer;
+-static struct input_dev *applesmc_idev;
++static struct input_polled_dev *applesmc_idev;
+ static struct class_device *hwmon_class_dev;
+
+ /* Indicates whether this computer has an accelerometer. */
+@@ -155,7 +154,7 @@ static unsigned int applesmc_light;
+ /* Indicates which temperature sensors set to use. */
+ static unsigned int applesmc_temperature_set;
+
+-static struct mutex applesmc_lock;
++static DEFINE_MUTEX(applesmc_lock);
+
+ /*
+ * Last index written to key_at_index sysfs file, and value to use for all other
+@@ -593,27 +592,12 @@ static void applesmc_calibrate(void)
+ rest_x = -rest_x;
+ }
+
+-static int applesmc_idev_open(struct input_dev *dev)
+-{
+- add_timer(&applesmc_timer);
+-
+- return 0;
+-}
+-
+-static void applesmc_idev_close(struct input_dev *dev)
+-{
+- del_timer_sync(&applesmc_timer);
+-}
+-
+-static void applesmc_idev_poll(unsigned long unused)
++static void applesmc_idev_poll(struct input_polled_dev *dev)
+ {
++ struct input_dev *idev = dev->input;
+ s16 x, y;
+
+- /* Cannot sleep. Try nonblockingly. If we fail, try again later. */
+- if (!mutex_trylock(&applesmc_lock)) {
+- mod_timer(&applesmc_timer, jiffies + APPLESMC_POLL_PERIOD);
+- return;
+- }
++ mutex_lock(&applesmc_lock);
+
+ if (applesmc_read_motion_sensor(SENSOR_X, &x))
+ goto out;
+@@ -621,13 +605,11 @@ static void applesmc_idev_poll(unsigned long unused)
+ goto out;
+
+ x = -x;
+- input_report_abs(applesmc_idev, ABS_X, x - rest_x);
+- input_report_abs(applesmc_idev, ABS_Y, y - rest_y);
+- input_sync(applesmc_idev);
++ input_report_abs(idev, ABS_X, x - rest_x);
++ input_report_abs(idev, ABS_Y, y - rest_y);
++ input_sync(idev);
+
+ out:
+- mod_timer(&applesmc_timer, jiffies + APPLESMC_POLL_PERIOD);
+-
+ mutex_unlock(&applesmc_lock);
+ }
+
+@@ -959,8 +941,7 @@ static ssize_t applesmc_key_at_index_read_show(struct device *dev,
+
+ if (!ret) {
+ return info[0];
+- }
+- else {
++ } else {
+ return ret;
+ }
+ }
+@@ -1359,6 +1340,7 @@ static int applesmc_dmi_match(struct dmi_system_id *id)
+ /* Create accelerometer ressources */
+ static int applesmc_create_accelerometer(void)
+ {
++ struct input_dev *idev;
+ int ret;
+
+ ret = sysfs_create_group(&pdev->dev.kobj,
+@@ -1366,40 +1348,37 @@ static int applesmc_create_accelerometer(void)
+ if (ret)
+ goto out;
+
+- applesmc_idev = input_allocate_device();
++ applesmc_idev = input_allocate_polled_device();
+ if (!applesmc_idev) {
+ ret = -ENOMEM;
+ goto out_sysfs;
+ }
+
++ applesmc_idev->poll = applesmc_idev_poll;
++ applesmc_idev->poll_interval = APPLESMC_POLL_INTERVAL;
++
+ /* initial calibrate for the input device */
+ applesmc_calibrate();
+
+- /* initialize the input class */
+- applesmc_idev->name = "applesmc";
+- applesmc_idev->id.bustype = BUS_HOST;
+- applesmc_idev->dev.parent = &pdev->dev;
+- applesmc_idev->evbit[0] = BIT(EV_ABS);
+- applesmc_idev->open = applesmc_idev_open;
+- applesmc_idev->close = applesmc_idev_close;
+- input_set_abs_params(applesmc_idev, ABS_X,
++ /* initialize the input device */
++ idev = applesmc_idev->input;
++ idev->name = "applesmc";
++ idev->id.bustype = BUS_HOST;
++ idev->dev.parent = &pdev->dev;
++ idev->evbit[0] = BIT(EV_ABS);
++ input_set_abs_params(idev, ABS_X,
+ -256, 256, APPLESMC_INPUT_FUZZ, APPLESMC_INPUT_FLAT);
+- input_set_abs_params(applesmc_idev, ABS_Y,
++ input_set_abs_params(idev, ABS_Y,
+ -256, 256, APPLESMC_INPUT_FUZZ, APPLESMC_INPUT_FLAT);
+
+- ret = input_register_device(applesmc_idev);
++ ret = input_register_polled_device(applesmc_idev);
+ if (ret)
+ goto out_idev;
+
+- /* start up our timer for the input device */
+- init_timer(&applesmc_timer);
+- applesmc_timer.function = applesmc_idev_poll;
+- applesmc_timer.expires = jiffies + APPLESMC_POLL_PERIOD;
+-
+ return 0;
+
+ out_idev:
+- input_free_device(applesmc_idev);
++ input_free_polled_device(applesmc_idev);
+
+ out_sysfs:
+ sysfs_remove_group(&pdev->dev.kobj, &accelerometer_attributes_group);
+@@ -1412,8 +1391,8 @@ out:
+ /* Release all ressources used by the accelerometer */
+ static void applesmc_release_accelerometer(void)
+ {
+- del_timer_sync(&applesmc_timer);
+- input_unregister_device(applesmc_idev);
++ input_unregister_polled_device(applesmc_idev);
++ input_free_polled_device(applesmc_idev);
+ sysfs_remove_group(&pdev->dev.kobj, &accelerometer_attributes_group);
+ }
+
+@@ -1450,8 +1429,6 @@ static int __init applesmc_init(void)
+ int count;
+ int i;
+
+- mutex_init(&applesmc_lock);
+-
+ if (!dmi_check_system(applesmc_whitelist)) {
+ printk(KERN_WARNING "applesmc: supported laptop not found!\n");
+ ret = -ENODEV;
Deleted: trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch 2007-05-27 17:36:01 UTC (rev 127)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch 2007-06-16 09:05:44 UTC (rev 128)
@@ -1,46 +0,0 @@
-Add name file needed by lm_sensors user-space applications in applesmc sysfs tree.
-
-From: Nicolas Boichat <ni...@bo...>
-
-
----
-
- drivers/hwmon/applesmc.c | 7 ++++++-
- 1 files changed, 6 insertions(+), 1 deletions(-)
-
-diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
-index 366f4a1..fd1281f 100644
---- a/drivers/hwmon/applesmc.c
-+++ b/drivers/hwmon/applesmc.c
-@@ -1206,11 +1206,13 @@ static int __init applesmc_init(void)
- }
-
- ret = sysfs_create_file(&pdev->dev.kobj, &dev_attr_name.attr);
-+ if (ret)
-+ goto out_device;
-
- /* Create key enumeration sysfs files */
- ret = sysfs_create_group(&pdev->dev.kobj, &key_enumeration_group);
- if (ret)
-- goto out_device;
-+ goto out_name;
-
- /* create fan files */
- count = applesmc_get_fan_count();
-@@ -1310,6 +1312,8 @@ out_fan_1:
- sysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[1]);
- out_key_enumeration:
- sysfs_remove_group(&pdev->dev.kobj, &key_enumeration_group);
-+out_name:
-+ sysfs_remove_file(&pdev->dev.kobj, &dev_attr_name.attr);
- out_device:
- platform_device_unregister(pdev);
- out_driver:
-@@ -1335,6 +1339,7 @@ static void __exit applesmc_exit(void)
- sysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[0]);
- sysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[1]);
- sysfs_remove_group(&pdev->dev.kobj, &key_enumeration_group);
-+ sysfs_remove_file(&pdev->dev.kobj, &dev_attr_name.attr);
- platform_device_unregister(pdev);
- platform_driver_unregister(&applesmc_driver);
- release_region(APPLESMC_DATA_PORT, APPLESMC_NR_PORTS);
Modified: trunk/kernel/mactel-patches-2.6.22/series
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/series 2007-05-27 17:36:01 UTC (rev 127)
+++ trunk/kernel/mactel-patches-2.6.22/series 2007-06-16 09:05:44 UTC (rev 128)
@@ -1,7 +1,7 @@
-# This series applies on GIT commit c420bc9f09a0926b708c3edb27eacba434a4f4ba
+# This series applies on GIT commit de7f928ca460005086a8296be07c217aac4b625d
sigmatel_audio2.patch
sigmatel_audio3.patch
-applesmc_add_name.patch
applesmc_int.patch
appletouch.patch
appleir.patch
+applesmc-use-input-polldev.patch
Modified: trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch 2007-05-27 17:36:01 UTC (rev 127)
+++ trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch 2007-06-16 09:05:44 UTC (rev 128)
@@ -9,10 +9,10 @@
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
-index a6a0a80..6dea603 100644
+index e3964fc..686a15a 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
-@@ -527,12 +527,24 @@ static unsigned int d945gtp5_pin_configs[10] = {
+@@ -549,12 +549,24 @@ static unsigned int d945gtp5_pin_configs[10] = {
0x02a19320, 0x40000100,
};
@@ -38,7 +38,7 @@
static unsigned int macbook_pro_v2_pin_configs[10] = {
0x0221401f, 0x90a70120, 0x01813024, 0x01014010,
0x400000fd, 0x01016011, 0x1345e240, 0x13c5e22e,
-@@ -549,8 +561,8 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
+@@ -571,8 +583,8 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
[STAC_D945_REF] = ref922x_pin_configs,
[STAC_D945GTP3] = d945gtp3_pin_configs,
[STAC_D945GTP5] = d945gtp5_pin_configs,
Modified: trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch 2007-05-27 17:36:01 UTC (rev 127)
+++ trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch 2007-06-16 09:05:44 UTC (rev 128)
@@ -9,10 +9,10 @@
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
-index 6dea603..0ed865c 100644
+index 686a15a..89ee79b 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
-@@ -1991,6 +1991,7 @@ static int patch_stac922x(struct hda_codec *codec)
+@@ -2040,6 +2040,7 @@ static int patch_stac922x(struct hda_codec *codec)
case 0x106b0a00: /* MacBook First generatoin */
spec->board_config = STAC_MACBOOK;
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Tino K. <tin...@ti...> - 2007-06-14 14:02:47
|
On Thu, Jun 14, 2007 at 15:29:05 +0200, Tino Keitel wrote: > On Thu, Jun 14, 2007 at 15:21:40 +0200, Tino Keitel wrote: > > Hi, > > > > with the appleir.patch applied, I can't see the corresponding option in > > make menuconfig. make olconfig also doesn't ask if I want to enable it. > > OK, scratch that. CONFIG_APPLEIR depends on CONFIG_INPUT_MISC, which > was disabled. However, I can not enable CONFIG_INPUT_MISC anymore in > make menuconfig. It only depends on !S390 and INPUT, and both > conditions are fulfilled. Strange... Not so strange anymore. I looks like I was just blind and didn't see the option for CONFIG_INPUT_MISC in menuconfig. It was also disabled in 2.6.21, and it looks like appleir was moved to drivers/input/misc, so make oldconfig didn't asked if I want to enable CONFIG_APPLEIR after I applied the mactel patches. Sorry for the noise. Regards, Tino |
|
From: Tino K. <tin...@ti...> - 2007-06-14 13:29:11
|
On Thu, Jun 14, 2007 at 15:21:40 +0200, Tino Keitel wrote: > Hi, > > with the appleir.patch applied, I can't see the corresponding option in > make menuconfig. make olconfig also doesn't ask if I want to enable it. OK, scratch that. CONFIG_APPLEIR depends on CONFIG_INPUT_MISC, which was disabled. However, I can not enable CONFIG_INPUT_MISC anymore in make menuconfig. It only depends on !S390 and INPUT, and both conditions are fulfilled. Strange... Regards, Tino |
|
From: Tino K. <tin...@ti...> - 2007-06-14 13:21:48
|
Hi, with the appleir.patch applied, I can't see the corresponding option in make menuconfig. make olconfig also doesn't ask if I want to enable it. Regards, Tino |
|
From: Julian J. <cw...@bc...> - 2007-06-10 21:15:09
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body background="http://qpcleft.hk/radiant.gif"> Many sellers will be okay with this, although many sellers won't.<br> </body> </html> |
|
From: Markus S. <ma...@bl...> - 2007-06-08 07:32:46
|
Hi, Matteo Buferli wrote: > I have a problem: when for example > - kde "Loading Desktop" > - see any video with mplayer or vlc > - come back from screensaver > the blacklight of screen changes to the refit blacklight. What is a 'refit blacklight'? My Macbook only has one sort of blacklight... Regards Markus |
|
From: Matteo B. <ma...@bu...> - 2007-06-07 17:30:58
|
Like subject. Alsa-driver: 1.0.13 SO: kernel Kernel: 2.6.21.1 + mactel-patches $ amixer Simple mixer control 'Master',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 127 Mono: Front Left: Playback 111 [87%] [-12.00dB] [on] Front Right: Playback 111 [87%] [-12.00dB] [on] Simple mixer control 'PCM',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 255 [100%] [0.00dB] Front Right: Playback 255 [100%] [0.00dB] Simple mixer control 'Front',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 127 Mono: Front Left: Playback 96 [76%] [-23.25dB] [on] Front Right: Playback 96 [76%] [-23.25dB] [on] Simple mixer control 'Surround',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 127 Mono: Front Left: Playback 127 [100%] [0.00dB] [off] Front Right: Playback 127 [100%] [0.00dB] [off] Simple mixer control 'Line In as Output',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono Capture channels: Mono Mono: Playback [off] Capture [off] Simple mixer control 'Capture',0 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 14 Front Left: Capture 14 [100%] [21.00dB] [on] Front Right: Capture 14 [100%] [21.00dB] [on] Simple mixer control 'Input Source',0 Capabilities: enum Items: 'Line' Item0: 'Line' Simple mixer control 'Mux',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 4 Front Left: Capture 0 [0%] [0.00dB] Front Right: Capture 0 [0%] [0.00dB] # amixer sset 'Input Source' Mic Simple mixer control 'Input Source',0 Capabilities: enum Items: 'Line' Item0: 'Line' What's happen? Sorry for very long message. Cu -- Matteo Buferli Studente iscritto all'universita di Scienze Informatiche (BO) WebPage: http://buferli.com Blog: http://blog.buferli.com DevelGroup: http://crisidev.org HW: Macbook Core2Duo |
|
From: Matteo B. <ma...@bu...> - 2007-06-03 22:01:31
|
Hi, I have a problem: when for example - kde "Loading Desktop" - see any video with mplayer or vlc - come back from screensaver the blacklight of screen changes to the refit blacklight. Please help me. -- Matteo Buferli Studente iscritto all'universita di Scienze Informatiche (BO) WebPage: http://buferli.com Blog: http://blog.buferli.com DevelGroup: http://crisidev.org HW: Macbook Core2Duo |
|
From: Marvin S. <ma...@de...> - 2007-06-02 13:46:42
|
On Sunday 27 May 2007 23:19, Marvin Stark wrote: > > Please note that it's not working 100% reliably yet, as the backlight > > cannot be switched back on some wakeups. I haven't had any time to run > > any real test yet, but it seems to be that wakeup problems happen when > > the AC state changed during sleep (say, laptop was put to sleep when > > plugged, and woken-up when running on battery). It could very well have > > to do with laptop-mode and miscellaneous ACPI scripts. > > I have the same problem here. My backlight is turned on after resuming but > I get no screen. Do you have a workaround for this issue? Yesterday I installed kernel 2.6.22-rc3 + mactel patches. Suspend-to-RAM wo= rks=20 like a charm now. But my Touchpad doesn't work. The appletouch patch applied but there is no= =20 appletouch module. Anybody knows why? Bye, =2D-=20 .""`. Marvin Stark <ma...@de...> : :" : Homepage: www.der-marv.de `. `"` `- Debian - when you have better things to do than fix a system |
|
From: <nbo...@us...> - 2007-05-27 17:36:08
|
Revision: 127
http://svn.sourceforge.net/mactel-linux/?rev=127&view=rev
Author: nboichat
Date: 2007-05-27 10:36:01 -0700 (Sun, 27 May 2007)
Log Message:
-----------
Update patches to the latest git. Add back audio patches, and remove applesmc-use-input-polldev patch which needs others patches from the -mm tree.
Modified Paths:
--------------
trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch
trunk/kernel/mactel-patches-2.6.22/series
Added Paths:
-----------
trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch
trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch
Removed Paths:
-------------
trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch
Deleted: trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch 2007-05-27 11:21:30 UTC (rev 126)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch 2007-05-27 17:36:01 UTC (rev 127)
@@ -1,221 +0,0 @@
-HWMON: applesmc - convert to use input-polldev.
-
-From: Nicolas Boichat <ni...@bo...>
-
-Switch to using input-polldev skeleton instead of implementing
-polling loop by itself. This also fixes problem with trylock
-on a mutex in atomic context.
-
-Signed-off-by: Dmitry Torokhov <dt...@ma...>
----
-
- drivers/hwmon/Kconfig | 1 +
- drivers/hwmon/applesmc.c | 83 +++++++++++++++++-----------------------------
- 2 files changed, 31 insertions(+), 53 deletions(-)
-
-diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
-index 4d1cb5b..cfb2a04 100644
---- a/drivers/hwmon/Kconfig
-+++ b/drivers/hwmon/Kconfig
-@@ -623,6 +623,7 @@ config SENSORS_APPLESMC
- depends on HWMON && INPUT && X86
- select NEW_LEDS
- select LEDS_CLASS
-+ select INPUT_POLLDEV
- default n
- help
- This driver provides support for the Apple System Management
-diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
-index fd1281f..eb81a64 100644
---- a/drivers/hwmon/applesmc.c
-+++ b/drivers/hwmon/applesmc.c
-@@ -28,7 +28,7 @@
-
- #include <linux/delay.h>
- #include <linux/platform_device.h>
--#include <linux/input.h>
-+#include <linux/input-polldev.h>
- #include <linux/kernel.h>
- #include <linux/module.h>
- #include <linux/timer.h>
-@@ -59,9 +59,9 @@
-
- #define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6 bytes) */
- #define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6 bytes) */
--#define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
-+#define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
-
--#define CLAMSHELL_KEY "MSLD" /* r-o ui8 (unused) */
-+#define CLAMSHELL_KEY "MSLD" /* r-o ui8 (unused) */
-
- #define MOTION_SENSOR_X_KEY "MO_X" /* r-o sp78 (2 bytes) */
- #define MOTION_SENSOR_Y_KEY "MO_Y" /* r-o sp78 (2 bytes) */
-@@ -99,7 +99,7 @@ static const char* fan_speed_keys[] = {
- #define INIT_TIMEOUT_MSECS 5000 /* wait up to 5s for device init ... */
- #define INIT_WAIT_MSECS 50 /* ... in 50ms increments */
-
--#define APPLESMC_POLL_PERIOD (HZ/20) /* poll for input every 1/20s */
-+#define APPLESMC_POLL_INTERVAL 50 /* msecs */
- #define APPLESMC_INPUT_FUZZ 4 /* input event threshold */
- #define APPLESMC_INPUT_FLAT 4
-
-@@ -121,8 +121,7 @@ static const int debug;
- static struct platform_device *pdev;
- static s16 rest_x;
- static s16 rest_y;
--static struct timer_list applesmc_timer;
--static struct input_dev *applesmc_idev;
-+static struct input_polled_dev *applesmc_idev;
- static struct class_device *hwmon_class_dev;
-
- /* Indicates whether this computer has an accelerometer. */
-@@ -134,7 +133,7 @@ static unsigned int applesmc_light;
- /* Indicates which temperature sensors set to use. */
- static unsigned int applesmc_temperature_set;
-
--static struct mutex applesmc_lock;
-+static DEFINE_MUTEX(applesmc_lock);
-
- /*
- * Last index written to key_at_index sysfs file, and value to use for all other
-@@ -451,27 +450,12 @@ static void applesmc_calibrate(void)
- rest_x = -rest_x;
- }
-
--static int applesmc_idev_open(struct input_dev *dev)
--{
-- add_timer(&applesmc_timer);
--
-- return 0;
--}
--
--static void applesmc_idev_close(struct input_dev *dev)
--{
-- del_timer_sync(&applesmc_timer);
--}
--
--static void applesmc_idev_poll(unsigned long unused)
-+static void applesmc_idev_poll(struct input_polled_dev *dev)
- {
-+ struct input_dev *idev = dev->input;
- s16 x, y;
-
-- /* Cannot sleep. Try nonblockingly. If we fail, try again later. */
-- if (!mutex_trylock(&applesmc_lock)) {
-- mod_timer(&applesmc_timer, jiffies + APPLESMC_POLL_PERIOD);
-- return;
-- }
-+ mutex_lock(&applesmc_lock);
-
- if (applesmc_read_motion_sensor(SENSOR_X, &x))
- goto out;
-@@ -479,13 +463,11 @@ static void applesmc_idev_poll(unsigned long unused)
- goto out;
-
- x = -x;
-- input_report_abs(applesmc_idev, ABS_X, x - rest_x);
-- input_report_abs(applesmc_idev, ABS_Y, y - rest_y);
-- input_sync(applesmc_idev);
-+ input_report_abs(idev, ABS_X, x - rest_x);
-+ input_report_abs(idev, ABS_Y, y - rest_y);
-+ input_sync(idev);
-
- out:
-- mod_timer(&applesmc_timer, jiffies + APPLESMC_POLL_PERIOD);
--
- mutex_unlock(&applesmc_lock);
- }
-
-@@ -817,8 +799,7 @@ static ssize_t applesmc_key_at_index_read_show(struct device *dev,
-
- if (!ret) {
- return info[0];
-- }
-- else {
-+ } else {
- return ret;
- }
- }
-@@ -1089,6 +1070,7 @@ static int applesmc_dmi_match(struct dmi_system_id *id)
- /* Create accelerometer ressources */
- static int applesmc_create_accelerometer(void)
- {
-+ struct input_dev *idev;
- int ret;
-
- ret = sysfs_create_group(&pdev->dev.kobj,
-@@ -1096,40 +1078,37 @@ static int applesmc_create_accelerometer(void)
- if (ret)
- goto out;
-
-- applesmc_idev = input_allocate_device();
-+ applesmc_idev = input_allocate_polled_device();
- if (!applesmc_idev) {
- ret = -ENOMEM;
- goto out_sysfs;
- }
-
-+ applesmc_idev->poll = applesmc_idev_poll;
-+ applesmc_idev->poll_interval = APPLESMC_POLL_INTERVAL;
-+
- /* initial calibrate for the input device */
- applesmc_calibrate();
-
-- /* initialize the input class */
-- applesmc_idev->name = "applesmc";
-- applesmc_idev->id.bustype = BUS_HOST;
-- applesmc_idev->dev.parent = &pdev->dev;
-- applesmc_idev->evbit[0] = BIT(EV_ABS);
-- applesmc_idev->open = applesmc_idev_open;
-- applesmc_idev->close = applesmc_idev_close;
-- input_set_abs_params(applesmc_idev, ABS_X,
-+ /* initialize the input device */
-+ idev = applesmc_idev->input;
-+ idev->name = "applesmc";
-+ idev->id.bustype = BUS_HOST;
-+ idev->dev.parent = &pdev->dev;
-+ idev->evbit[0] = BIT(EV_ABS);
-+ input_set_abs_params(idev, ABS_X,
- -256, 256, APPLESMC_INPUT_FUZZ, APPLESMC_INPUT_FLAT);
-- input_set_abs_params(applesmc_idev, ABS_Y,
-+ input_set_abs_params(idev, ABS_Y,
- -256, 256, APPLESMC_INPUT_FUZZ, APPLESMC_INPUT_FLAT);
-
-- ret = input_register_device(applesmc_idev);
-+ ret = input_register_polled_device(applesmc_idev);
- if (ret)
- goto out_idev;
-
-- /* start up our timer for the input device */
-- init_timer(&applesmc_timer);
-- applesmc_timer.function = applesmc_idev_poll;
-- applesmc_timer.expires = jiffies + APPLESMC_POLL_PERIOD;
--
- return 0;
-
- out_idev:
-- input_free_device(applesmc_idev);
-+ input_free_polled_device(applesmc_idev);
-
- out_sysfs:
- sysfs_remove_group(&pdev->dev.kobj, &accelerometer_attributes_group);
-@@ -1142,8 +1121,8 @@ out:
- /* Release all ressources used by the accelerometer */
- static void applesmc_release_accelerometer(void)
- {
-- del_timer_sync(&applesmc_timer);
-- input_unregister_device(applesmc_idev);
-+ input_unregister_polled_device(applesmc_idev);
-+ input_free_polled_device(applesmc_idev);
- sysfs_remove_group(&pdev->dev.kobj, &accelerometer_attributes_group);
- }
-
-@@ -1180,8 +1159,6 @@ static int __init applesmc_init(void)
- int count;
- int i;
-
-- mutex_init(&applesmc_lock);
--
- if (!dmi_check_system(applesmc_whitelist)) {
- printk(KERN_WARNING "applesmc: supported laptop not found!\n");
- ret = -ENODEV;
Modified: trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch 2007-05-27 11:21:30 UTC (rev 126)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch 2007-05-27 17:36:01 UTC (rev 127)
@@ -9,7 +9,7 @@
1 files changed, 293 insertions(+), 23 deletions(-)
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
-index eb81a64..ff56afd 100644
+index fd1281f..e523851 100644
--- a/drivers/hwmon/applesmc.c
+++ b/drivers/hwmon/applesmc.c
@@ -39,14 +39,20 @@
@@ -41,7 +41,7 @@
+
#define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6 bytes) */
#define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6 bytes) */
- #define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
+ #define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
@@ -68,6 +76,19 @@
#define MOTION_SENSOR_Z_KEY "MO_Z" /* r-o sp78 (2 bytes) */
#define MOTION_SENSOR_KEY "MOCN" /* r/w ui16 */
@@ -62,7 +62,7 @@
#define FANS_COUNT "FNum" /* r-o ui8 */
#define FANS_MANUAL "FS! " /* r-w ui16 */
#define FAN_ACTUAL_SPEED "F0Ac" /* r-o fpe2 (2 bytes) */
-@@ -347,12 +368,79 @@ static int applesmc_read_motion_sensor(int index, s16* value)
+@@ -348,12 +369,79 @@ static int applesmc_read_motion_sensor(int index, s16* value)
}
/*
@@ -143,7 +143,7 @@
u8 buffer[2];
if (!applesmc_accelerometer)
-@@ -360,32 +448,79 @@ static int applesmc_device_init(void)
+@@ -361,32 +449,79 @@ static int applesmc_device_init(void)
mutex_lock(&applesmc_lock);
@@ -245,7 +245,7 @@
out:
mutex_unlock(&applesmc_lock);
-@@ -430,9 +565,16 @@ static int applesmc_resume(struct platform_device *dev)
+@@ -431,9 +566,16 @@ static int applesmc_resume(struct platform_device *dev)
return applesmc_device_init();
}
@@ -262,7 +262,7 @@
.driver = {
.name = "applesmc",
.owner = THIS_MODULE,
-@@ -894,6 +1036,122 @@ static ssize_t applesmc_key_at_index_store(struct device *dev,
+@@ -913,6 +1055,122 @@ static ssize_t applesmc_key_at_index_store(struct device *dev,
return count;
}
@@ -385,7 +385,7 @@
static struct led_classdev applesmc_backlight = {
.name = "smc:kbd_backlight",
.default_trigger = "nand-disk",
-@@ -905,10 +1163,22 @@ static DEVICE_ATTR(name, 0444, applesmc_name_show, NULL);
+@@ -924,10 +1182,22 @@ static DEVICE_ATTR(name, 0444, applesmc_name_show, NULL);
static DEVICE_ATTR(position, 0444, applesmc_position_show, NULL);
static DEVICE_ATTR(calibrate, 0644,
applesmc_calibrate_show, applesmc_calibrate_store);
Modified: trunk/kernel/mactel-patches-2.6.22/series
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/series 2007-05-27 11:21:30 UTC (rev 126)
+++ trunk/kernel/mactel-patches-2.6.22/series 2007-05-27 17:36:01 UTC (rev 127)
@@ -1,6 +1,7 @@
# This series applies on GIT commit c420bc9f09a0926b708c3edb27eacba434a4f4ba
+sigmatel_audio2.patch
+sigmatel_audio3.patch
applesmc_add_name.patch
-applesmc-use-input-polldev.patch
applesmc_int.patch
appletouch.patch
appleir.patch
Added: trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/sigmatel_audio2.patch 2007-05-27 17:36:01 UTC (rev 127)
@@ -0,0 +1,51 @@
+Fix audio on Macmini and Macbook.
+
+From: Takashi Iwai <ti...@su...>
+
+
+---
+
+ sound/pci/hda/patch_sigmatel.c | 18 +++++++++++++++---
+ 1 files changed, 15 insertions(+), 3 deletions(-)
+
+diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
+index a6a0a80..6dea603 100644
+--- a/sound/pci/hda/patch_sigmatel.c
++++ b/sound/pci/hda/patch_sigmatel.c
+@@ -527,12 +527,24 @@ static unsigned int d945gtp5_pin_configs[10] = {
+ 0x02a19320, 0x40000100,
+ };
+
+-static unsigned int macbook_pro_v1_pin_configs[10] = {
++static unsigned int macmini_pin_configs[10] = {
++ 0x0321e230, 0x400000fd, 0x9017e110, 0x01014010,
++ 0x400000fd, 0x0381e021, 0x1345e240, 0x13c5e22e,
++ 0x400000fc, 0x400000fb
++};
++
++static unsigned int macbook_pin_configs[10] = {
+ 0x0321e230, 0x03a1e020, 0x9017e110, 0x01014010,
+ 0x01a19021, 0x0381e021, 0x1345e240, 0x13c5e22e,
+ 0x02a19320, 0x400000fb
+ };
+
++static unsigned int macbook_pro_v1_pin_configs[10] = {
++ 0x0321e230, 0x02a7e020, 0x9017e110, 0x01014010,
++ 0x400000fd, 0x0381e021, 0x1345e240, 0x13c5e22e,
++ 0x400000fc, 0x400000fb
++};
++
+ static unsigned int macbook_pro_v2_pin_configs[10] = {
+ 0x0221401f, 0x90a70120, 0x01813024, 0x01014010,
+ 0x400000fd, 0x01016011, 0x1345e240, 0x13c5e22e,
+@@ -549,8 +561,8 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
+ [STAC_D945_REF] = ref922x_pin_configs,
+ [STAC_D945GTP3] = d945gtp3_pin_configs,
+ [STAC_D945GTP5] = d945gtp5_pin_configs,
+- [STAC_MACMINI] = macbook_pro_v1_pin_configs,
+- [STAC_MACBOOK] = macbook_pro_v1_pin_configs,
++ [STAC_MACMINI] = macmini_pin_configs,
++ [STAC_MACBOOK] = macbook_pin_configs,
+ [STAC_MACBOOK_PRO_V1] = macbook_pro_v1_pin_configs,
+ [STAC_MACBOOK_PRO_V2] = macbook_pro_v2_pin_configs,
+ [STAC_IMAC_INTEL] = imac_intel_pin_configs,
Added: trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/sigmatel_audio3.patch 2007-05-27 17:36:01 UTC (rev 127)
@@ -0,0 +1,22 @@
+Display all controls when the subsystem id is wrong (0x100).
+
+From: Nicolas Boichat <ni...@bo...>
+
+
+---
+
+ sound/pci/hda/patch_sigmatel.c | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
+index 6dea603..0ed865c 100644
+--- a/sound/pci/hda/patch_sigmatel.c
++++ b/sound/pci/hda/patch_sigmatel.c
+@@ -1991,6 +1991,7 @@ static int patch_stac922x(struct hda_codec *codec)
+ case 0x106b0a00: /* MacBook First generatoin */
+ spec->board_config = STAC_MACBOOK;
+ break;
++ case 0x100: /* Invalid subsystem ID */
+ case 0x106b0200: /* MacBook Pro first generation */
+ spec->board_config = STAC_MACBOOK_PRO_V1;
+ break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nbo...@us...> - 2007-05-27 11:21:33
|
Revision: 126
http://svn.sourceforge.net/mactel-linux/?rev=126&view=rev
Author: nboichat
Date: 2007-05-27 04:21:30 -0700 (Sun, 27 May 2007)
Log Message:
-----------
Port patch series to 2.6.21.3 (no major differences)
Modified Paths:
--------------
trunk/kernel/mactel-patches-2.6.21/series
trunk/kernel/mactel-patches-2.6.21/sigmatel_audio2.patch
trunk/kernel/mactel-patches-2.6.21/sigmatel_audio3.patch
Modified: trunk/kernel/mactel-patches-2.6.21/series
===================================================================
--- trunk/kernel/mactel-patches-2.6.21/series 2007-05-26 22:33:14 UTC (rev 125)
+++ trunk/kernel/mactel-patches-2.6.21/series 2007-05-27 11:21:30 UTC (rev 126)
@@ -1,4 +1,4 @@
-# This series applies on GIT commit 8d8b10482fffcb72b15515231bb942e2ad6395c9
+# This series applies on GIT commit dcf1697d4b4b9b94363b5fb0d97f7949602922ab
applesmc-mm.patch
applesmc-fix-names.patch
applesmc_int.patch
Modified: trunk/kernel/mactel-patches-2.6.21/sigmatel_audio2.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.21/sigmatel_audio2.patch 2007-05-26 22:33:14 UTC (rev 125)
+++ trunk/kernel/mactel-patches-2.6.21/sigmatel_audio2.patch 2007-05-27 11:21:30 UTC (rev 126)
@@ -9,7 +9,7 @@
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
-index c94291b..b1df711 100644
+index a6f8992..14e6fb0 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -524,18 +524,24 @@ static unsigned int d945gtp5_pin_configs[10] = {
@@ -51,7 +51,7 @@
[STAC_MACBOOK] = macbook_pin_configs,
[STAC_MACBOOK_PRO_V1] = macbook_pro_v1_pin_configs,
[STAC_MACBOOK_PRO_V2] = macbook_pro_v2_pin_configs,
-@@ -1905,6 +1911,9 @@ static int patch_stac922x(struct hda_codec *codec)
+@@ -1906,6 +1912,9 @@ static int patch_stac922x(struct hda_codec *codec)
*/
printk(KERN_INFO "hda_codec: STAC922x, Apple subsys_id=%x\n", codec->subsystem_id);
switch (codec->subsystem_id) {
Modified: trunk/kernel/mactel-patches-2.6.21/sigmatel_audio3.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.21/sigmatel_audio3.patch 2007-05-26 22:33:14 UTC (rev 125)
+++ trunk/kernel/mactel-patches-2.6.21/sigmatel_audio3.patch 2007-05-27 11:21:30 UTC (rev 126)
@@ -9,10 +9,10 @@
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
-index b1df711..4fa6049 100644
+index 14e6fb0..28397aa 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
-@@ -1914,6 +1914,7 @@ static int patch_stac922x(struct hda_codec *codec)
+@@ -1915,6 +1915,7 @@ static int patch_stac922x(struct hda_codec *codec)
case 0x106b0a00: /* MacBook first generation */
spec->board_config = STAC_MACBOOK;
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nbo...@us...> - 2007-05-26 22:33:20
|
Revision: 125
http://svn.sourceforge.net/mactel-linux/?rev=125&view=rev
Author: nboichat
Date: 2007-05-26 15:33:14 -0700 (Sat, 26 May 2007)
Log Message:
-----------
Add 2.6.22 patch series.
Added Paths:
-----------
trunk/kernel/mactel-patches-2.6.22/
trunk/kernel/mactel-patches-2.6.22/appleir.patch
trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch
trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch
trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch
trunk/kernel/mactel-patches-2.6.22/appletouch.patch
trunk/kernel/mactel-patches-2.6.22/apply
trunk/kernel/mactel-patches-2.6.22/series
trunk/kernel/mactel-patches-2.6.22/unapply
Added: trunk/kernel/mactel-patches-2.6.22/appleir.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/appleir.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/appleir.patch 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,429 @@
+Apple IR patch.
+
+From: James McKenzie <ma...@ma...>
+
+
+---
+
+ drivers/input/misc/Kconfig | 5 +
+ drivers/input/misc/Makefile | 1
+ drivers/input/misc/appleir.c | 379 ++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 385 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
+index 842a7b4..00d43d0 100644
+--- a/drivers/input/misc/Kconfig
++++ b/drivers/input/misc/Kconfig
+@@ -113,6 +113,10 @@ config INPUT_ATI_REMOTE2
+ To compile this driver as a module, choose M here: the module will be
+ called ati_remote2.
+
++config USB_APPLEIR
++ tristate "Apple Mac Mini USB IR receiver (built in)"
++ depends on USB && INPUT
++
+ config INPUT_KEYSPAN_REMOTE
+ tristate "Keyspan DMR USB remote control (EXPERIMENTAL)"
+ depends on EXPERIMENTAL
+@@ -190,3 +194,4 @@ config HP_SDC_RTC
+ of the HP SDC controller.
+
+ endif
++
+diff --git a/drivers/input/misc/Makefile b/drivers/input/misc/Makefile
+index 8b2f779..ca41877 100644
+--- a/drivers/input/misc/Makefile
++++ b/drivers/input/misc/Makefile
+@@ -14,6 +14,7 @@ obj-$(CONFIG_INPUT_WISTRON_BTNS) += wistron_btns.o
+ obj-$(CONFIG_INPUT_ATLAS_BTNS) += atlas_btns.o
+ obj-$(CONFIG_INPUT_ATI_REMOTE) += ati_remote.o
+ obj-$(CONFIG_INPUT_ATI_REMOTE2) += ati_remote2.o
++obj-$(CONFIG_USB_APPLEIR) += appleir.o
+ obj-$(CONFIG_INPUT_KEYSPAN_REMOTE) += keyspan_remote.o
+ obj-$(CONFIG_INPUT_POWERMATE) += powermate.o
+ obj-$(CONFIG_INPUT_YEALINK) += yealink.o
+diff --git a/drivers/input/misc/appleir.c b/drivers/input/misc/appleir.c
+new file mode 100644
+index 0000000..170cee6
+--- /dev/null
++++ b/drivers/input/misc/appleir.c
+@@ -0,0 +1,379 @@
++/*
++ * drivers/usb/input/appleir.c - driver for Apple Intel-based Macs IR Receiver
++ *
++ * Copyright (C) 2006 James McKenzie <ma...@ma...>
++ *
++ * This program is free software; you can redistribute it and/or modify it
++ * under the terms of the GNU General Public License v2 as published by the
++ * Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful, but WITHOUT
++ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
++ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
++ * more details.
++ *
++ * You should have received a copy of the GNU General Public License along with
++ * this program; if not, write to the Free Software Foundation, Inc.,
++ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
++ */
++
++#include <linux/kernel.h>
++#include <linux/slab.h>
++#include <linux/input.h>
++#include <linux/module.h>
++#include <linux/init.h>
++#include <linux/usb.h>
++#include <linux/usb/input.h>
++#include <linux/mutex.h>
++#include <asm/unaligned.h>
++#include <asm/byteorder.h>
++
++#define DRIVER_VERSION "v1.2"
++#define DRIVER_AUTHOR "James McKenzie"
++#define DRIVER_DESC "USB Apple MacIntel IR Receiver driver"
++#define DRIVER_LICENSE "GPL"
++
++MODULE_AUTHOR(DRIVER_AUTHOR);
++MODULE_DESCRIPTION(DRIVER_DESC);
++MODULE_LICENSE(DRIVER_LICENSE);
++
++#define USB_VENDOR_ID_APPLE 0x05ac
++#define USB_DEVICE_ID_APPLE_IR 0x8240
++
++#define URB_SIZE 32
++
++#define MAX_KEYS 8
++#define MAX_KEYS_MASK (MAX_KEYS - 1)
++
++static int debug = 1;
++
++struct appleir {
++ struct input_dev *dev;
++ uint8_t *data;
++ dma_addr_t dma_buf;
++ struct usb_device *usbdev;
++ struct urb *urb;
++ struct timer_list key_up_timer;
++ int current_key;
++ char phys[32];
++};
++
++
++static struct usb_device_id appleir_ids[] = {
++ {
++ USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_IR),
++ .driver_info = 0
++ },
++ {}
++};
++
++MODULE_DEVICE_TABLE(usb, appleir_ids);
++
++/*
++ * Devices report the following, where XX depends on the remote and/or the
++ * receiver (at least 2a, 83, ca, ee have been reported as possible values, it
++ * looks like it is remote control dependent).
++ * The fifth byte's LSB also depends on the hardware.
++ * 25 87 ee XX 0a/0b +
++ * 25 87 ee XX 0c/0d -
++ * 25 87 ee XX 09/08 <<
++ * 25 87 ee XX 06/07 >>
++ * 25 87 ee XX 05/04 >"
++ * 25 87 ee 83 03/02 menu
++ * 26 00 00 00 00 for key repeat
++ *
++ * Thomas Glanzmann also observes the following event sometimes sent after a key
++ * is released, which I interpret as a flat battery message:
++ * 25 87 e0 ca 06 flat battery
++ */
++
++static int keymap[MAX_KEYS] = {
++ KEY_RESERVED, KEY_MENU,
++ KEY_PLAYPAUSE, KEY_NEXTSONG,
++ KEY_PREVIOUSSONG, KEY_VOLUMEUP,
++ KEY_VOLUMEDOWN, KEY_RESERVED
++};
++
++static void dump_packet(struct appleir *appleir, char *msg,
++ uint8_t * data, int len)
++{
++ int i;
++
++ printk(KERN_ERR "appleir: %s (%d bytes)", msg, len);
++
++ for (i = 0; i < len; ++i) {
++ printk(" %02x", data[i]);
++ }
++
++ printk("\n");
++}
++
++
++static void key_up(struct appleir *appleir, int key)
++{
++ if (debug)
++ printk (KERN_DEBUG "key %d up\n", key);
++
++ input_report_key(appleir->dev, key, 0);
++ input_sync(appleir->dev);
++}
++
++static void key_down(struct appleir *appleir, int key)
++{
++ if (debug)
++ printk (KERN_DEBUG "key %d down\n", key);
++
++ input_report_key(appleir->dev, key, 1);
++ input_sync(appleir->dev);
++}
++
++static void battery_flat(struct appleir *appleir)
++{
++ printk(KERN_WARNING "appleir: possible flat battery?\n");
++}
++
++static void key_up_tick(unsigned long data)
++{
++ struct appleir *apple_ir = (struct appleir*)data;
++
++ if (apple_ir->current_key) {
++ key_up(apple_ir, apple_ir->current_key);
++ apple_ir->current_key = 0;
++ }
++}
++
++static void parse_data(struct appleir *apple_ir, uint8_t *data, int len)
++{
++ static const uint8_t keydown[] = { 0x25, 0x87, 0xee };
++ static const uint8_t keyrepeat[] = { 0x26, 0x00, 0x00, 0x00, 0x00 };
++ static const uint8_t flatbattery[] = { 0x25, 0x87, 0xe0 };
++
++ if (debug)
++ dump_packet(apple_ir, "received", data, len);
++
++ if (len != 5)
++ return;
++
++ if (!memcmp(data, keydown, sizeof(keydown))) {
++ /*
++ * If we already have a key down, take it up before marking
++ * this one down.
++ */
++ if (apple_ir->current_key)
++ key_up(apple_ir, apple_ir->current_key);
++ apple_ir->current_key = keymap[(data[4] >> 1) & MAX_KEYS_MASK];
++
++ key_down(apple_ir, apple_ir->current_key);
++
++ /*
++ * Remote doesn't do key up, either pull them up, in the test
++ * above, or here set a timer which pulls them up after 1/8 s
++ */
++ mod_timer(&apple_ir->key_up_timer, jiffies + HZ / 8);
++
++ return;
++ }
++
++ if (!memcmp(data, keyrepeat, sizeof(keyrepeat))) {
++ key_down(apple_ir, apple_ir->current_key);
++
++ /*
++ * Remote doesn't do key up, either pull them up, in the test
++ * above, or here set a timer which pulls them up after 1/8 s
++ */
++ mod_timer(&apple_ir->key_up_timer, jiffies + HZ / 8);
++ return;
++ }
++
++ if (!memcmp(data, flatbattery, sizeof(flatbattery))) {
++ battery_flat(apple_ir);
++ /* Fall through */
++ }
++
++ dump_packet(apple_ir, "unknown packet", data, len);
++}
++
++static void appleir_urb(struct urb *urb)
++{
++ struct appleir *appleir = urb->context;
++ int retval;
++
++ switch (urb->status) {
++ case 0:
++ parse_data(appleir, urb->transfer_buffer, urb->actual_length);
++ break;
++ case -ECONNRESET:
++ case -ENOENT:
++ case -ESHUTDOWN:
++ /* this urb is terminated, clean up */
++ dbg("%s - urb shutting down with status: %d",
++ __FUNCTION__, urb->status);
++ return;
++ default:
++ dbg("%s - nonzero urb status received: %d",
++ __FUNCTION__, urb->status);
++ }
++
++ retval = usb_submit_urb(urb, GFP_ATOMIC);
++ if (retval)
++ err("%s - usb_submit_urb failed with result %d",
++ __FUNCTION__, retval);
++}
++
++
++static int appleir_open(struct input_dev *dev)
++{
++ struct appleir *appleir = dev->private;
++
++ if (usb_submit_urb(appleir->urb, GFP_KERNEL))
++ return -EIO;
++
++ return 0;
++}
++
++static void appleir_close(struct input_dev *dev)
++{
++ struct appleir *appleir = dev->private;
++ usb_kill_urb(appleir->urb);
++ del_timer_sync(&appleir->key_up_timer);
++}
++
++static int appleir_probe(struct usb_interface *intf,
++ const struct usb_device_id *id)
++{
++ struct usb_device *dev = interface_to_usbdev(intf);
++ struct usb_endpoint_descriptor *endpoint;
++ struct appleir *appleir = NULL;
++ struct input_dev *input_dev;
++ int i;
++ int ret = -ENOMEM;
++
++ appleir = kzalloc(sizeof(struct appleir), GFP_KERNEL);
++ if (!appleir)
++ goto fail;
++
++ memset(appleir, 0, sizeof(struct appleir));
++
++ appleir->data =
++ usb_buffer_alloc(dev, URB_SIZE, GFP_KERNEL, &appleir->dma_buf);
++ if (!appleir->data)
++ goto fail_appleir;
++
++ appleir->urb = usb_alloc_urb(0, GFP_KERNEL);
++ if (!appleir->urb)
++ goto fail_buffer;
++
++ appleir->usbdev = dev;
++
++ input_dev = input_allocate_device();
++ if (!input_dev)
++ goto fail_urb;
++
++ appleir->dev = input_dev;
++
++ if (usb_make_path(dev, appleir->phys, sizeof(appleir->phys)) < 0)
++ goto fail_input_device;
++
++ strlcpy(appleir->phys, "/input0", sizeof(appleir->phys));
++
++ input_dev->name = "Apple MacIntel infrared remote control driver";
++ input_dev->phys = appleir->phys;
++ usb_to_input_id(dev, &input_dev->id);
++ input_dev->cdev.dev = &intf->dev;
++ input_dev->private = appleir;
++
++ input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
++ input_dev->ledbit[0] = 0;
++
++ for (i = 0; i < MAX_KEYS; i++) {
++ set_bit(keymap[i], input_dev->keybit);
++ }
++
++ clear_bit(0, input_dev->keybit);
++
++ input_dev->open = appleir_open;
++ input_dev->close = appleir_close;
++
++ endpoint = &intf->cur_altsetting->endpoint[0].desc;
++
++ usb_fill_int_urb(appleir->urb, dev,
++ usb_rcvintpipe(dev, endpoint->bEndpointAddress),
++ appleir->data, 8,
++ appleir_urb, appleir, endpoint->bInterval);
++
++ appleir->urb->transfer_dma = appleir->dma_buf;
++ appleir->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
++
++ usb_set_intfdata(intf, appleir);
++
++ init_timer(&appleir->key_up_timer);
++
++ appleir->key_up_timer.function = key_up_tick;
++ appleir->key_up_timer.data = (unsigned long) appleir;
++
++ ret = input_register_device(appleir->dev);
++ if (ret < 0)
++ goto fail_timer;
++
++ return 0;
++
++fail_timer:
++ del_timer_sync(&appleir->key_up_timer);
++
++fail_input_device:
++ input_free_device(appleir->dev);
++
++fail_urb:
++ usb_free_urb(appleir->urb);
++
++fail_buffer:
++ usb_buffer_free(dev, URB_SIZE, appleir->data, appleir->dma_buf);
++
++fail_appleir:
++ kfree(appleir);
++
++fail:
++ return ret;
++}
++
++static void appleir_disconnect(struct usb_interface *intf)
++{
++ struct appleir *appleir = usb_get_intfdata(intf);
++
++ usb_set_intfdata(intf, NULL);
++ if (appleir) {
++ input_unregister_device(appleir->dev);
++ del_timer_sync(&appleir->key_up_timer);
++ usb_kill_urb(appleir->urb);
++ usb_free_urb(appleir->urb);
++ usb_buffer_free(interface_to_usbdev(intf), URB_SIZE,
++ appleir->data, appleir->dma_buf);
++ kfree(appleir);
++ }
++}
++
++static struct usb_driver appleir_driver = {
++ .name = "appleir",
++ .probe = appleir_probe,
++ .disconnect = appleir_disconnect,
++ .id_table = appleir_ids,
++};
++
++static int __init appleir_init(void)
++{
++ int retval;
++ retval = usb_register(&appleir_driver);
++ if (retval)
++ goto out;
++ info(DRIVER_VERSION ":" DRIVER_DESC);
++ out:
++ return retval;
++}
++
++static void __exit appleir_exit(void)
++{
++ usb_deregister(&appleir_driver);
++}
++
++module_init(appleir_init);
++module_exit(appleir_exit);
Added: trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc-use-input-polldev.patch 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,221 @@
+HWMON: applesmc - convert to use input-polldev.
+
+From: Nicolas Boichat <ni...@bo...>
+
+Switch to using input-polldev skeleton instead of implementing
+polling loop by itself. This also fixes problem with trylock
+on a mutex in atomic context.
+
+Signed-off-by: Dmitry Torokhov <dt...@ma...>
+---
+
+ drivers/hwmon/Kconfig | 1 +
+ drivers/hwmon/applesmc.c | 83 +++++++++++++++++-----------------------------
+ 2 files changed, 31 insertions(+), 53 deletions(-)
+
+diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
+index 4d1cb5b..cfb2a04 100644
+--- a/drivers/hwmon/Kconfig
++++ b/drivers/hwmon/Kconfig
+@@ -623,6 +623,7 @@ config SENSORS_APPLESMC
+ depends on HWMON && INPUT && X86
+ select NEW_LEDS
+ select LEDS_CLASS
++ select INPUT_POLLDEV
+ default n
+ help
+ This driver provides support for the Apple System Management
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index fd1281f..eb81a64 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -28,7 +28,7 @@
+
+ #include <linux/delay.h>
+ #include <linux/platform_device.h>
+-#include <linux/input.h>
++#include <linux/input-polldev.h>
+ #include <linux/kernel.h>
+ #include <linux/module.h>
+ #include <linux/timer.h>
+@@ -59,9 +59,9 @@
+
+ #define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6 bytes) */
+ #define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6 bytes) */
+-#define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
++#define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
+
+-#define CLAMSHELL_KEY "MSLD" /* r-o ui8 (unused) */
++#define CLAMSHELL_KEY "MSLD" /* r-o ui8 (unused) */
+
+ #define MOTION_SENSOR_X_KEY "MO_X" /* r-o sp78 (2 bytes) */
+ #define MOTION_SENSOR_Y_KEY "MO_Y" /* r-o sp78 (2 bytes) */
+@@ -99,7 +99,7 @@ static const char* fan_speed_keys[] = {
+ #define INIT_TIMEOUT_MSECS 5000 /* wait up to 5s for device init ... */
+ #define INIT_WAIT_MSECS 50 /* ... in 50ms increments */
+
+-#define APPLESMC_POLL_PERIOD (HZ/20) /* poll for input every 1/20s */
++#define APPLESMC_POLL_INTERVAL 50 /* msecs */
+ #define APPLESMC_INPUT_FUZZ 4 /* input event threshold */
+ #define APPLESMC_INPUT_FLAT 4
+
+@@ -121,8 +121,7 @@ static const int debug;
+ static struct platform_device *pdev;
+ static s16 rest_x;
+ static s16 rest_y;
+-static struct timer_list applesmc_timer;
+-static struct input_dev *applesmc_idev;
++static struct input_polled_dev *applesmc_idev;
+ static struct class_device *hwmon_class_dev;
+
+ /* Indicates whether this computer has an accelerometer. */
+@@ -134,7 +133,7 @@ static unsigned int applesmc_light;
+ /* Indicates which temperature sensors set to use. */
+ static unsigned int applesmc_temperature_set;
+
+-static struct mutex applesmc_lock;
++static DEFINE_MUTEX(applesmc_lock);
+
+ /*
+ * Last index written to key_at_index sysfs file, and value to use for all other
+@@ -451,27 +450,12 @@ static void applesmc_calibrate(void)
+ rest_x = -rest_x;
+ }
+
+-static int applesmc_idev_open(struct input_dev *dev)
+-{
+- add_timer(&applesmc_timer);
+-
+- return 0;
+-}
+-
+-static void applesmc_idev_close(struct input_dev *dev)
+-{
+- del_timer_sync(&applesmc_timer);
+-}
+-
+-static void applesmc_idev_poll(unsigned long unused)
++static void applesmc_idev_poll(struct input_polled_dev *dev)
+ {
++ struct input_dev *idev = dev->input;
+ s16 x, y;
+
+- /* Cannot sleep. Try nonblockingly. If we fail, try again later. */
+- if (!mutex_trylock(&applesmc_lock)) {
+- mod_timer(&applesmc_timer, jiffies + APPLESMC_POLL_PERIOD);
+- return;
+- }
++ mutex_lock(&applesmc_lock);
+
+ if (applesmc_read_motion_sensor(SENSOR_X, &x))
+ goto out;
+@@ -479,13 +463,11 @@ static void applesmc_idev_poll(unsigned long unused)
+ goto out;
+
+ x = -x;
+- input_report_abs(applesmc_idev, ABS_X, x - rest_x);
+- input_report_abs(applesmc_idev, ABS_Y, y - rest_y);
+- input_sync(applesmc_idev);
++ input_report_abs(idev, ABS_X, x - rest_x);
++ input_report_abs(idev, ABS_Y, y - rest_y);
++ input_sync(idev);
+
+ out:
+- mod_timer(&applesmc_timer, jiffies + APPLESMC_POLL_PERIOD);
+-
+ mutex_unlock(&applesmc_lock);
+ }
+
+@@ -817,8 +799,7 @@ static ssize_t applesmc_key_at_index_read_show(struct device *dev,
+
+ if (!ret) {
+ return info[0];
+- }
+- else {
++ } else {
+ return ret;
+ }
+ }
+@@ -1089,6 +1070,7 @@ static int applesmc_dmi_match(struct dmi_system_id *id)
+ /* Create accelerometer ressources */
+ static int applesmc_create_accelerometer(void)
+ {
++ struct input_dev *idev;
+ int ret;
+
+ ret = sysfs_create_group(&pdev->dev.kobj,
+@@ -1096,40 +1078,37 @@ static int applesmc_create_accelerometer(void)
+ if (ret)
+ goto out;
+
+- applesmc_idev = input_allocate_device();
++ applesmc_idev = input_allocate_polled_device();
+ if (!applesmc_idev) {
+ ret = -ENOMEM;
+ goto out_sysfs;
+ }
+
++ applesmc_idev->poll = applesmc_idev_poll;
++ applesmc_idev->poll_interval = APPLESMC_POLL_INTERVAL;
++
+ /* initial calibrate for the input device */
+ applesmc_calibrate();
+
+- /* initialize the input class */
+- applesmc_idev->name = "applesmc";
+- applesmc_idev->id.bustype = BUS_HOST;
+- applesmc_idev->dev.parent = &pdev->dev;
+- applesmc_idev->evbit[0] = BIT(EV_ABS);
+- applesmc_idev->open = applesmc_idev_open;
+- applesmc_idev->close = applesmc_idev_close;
+- input_set_abs_params(applesmc_idev, ABS_X,
++ /* initialize the input device */
++ idev = applesmc_idev->input;
++ idev->name = "applesmc";
++ idev->id.bustype = BUS_HOST;
++ idev->dev.parent = &pdev->dev;
++ idev->evbit[0] = BIT(EV_ABS);
++ input_set_abs_params(idev, ABS_X,
+ -256, 256, APPLESMC_INPUT_FUZZ, APPLESMC_INPUT_FLAT);
+- input_set_abs_params(applesmc_idev, ABS_Y,
++ input_set_abs_params(idev, ABS_Y,
+ -256, 256, APPLESMC_INPUT_FUZZ, APPLESMC_INPUT_FLAT);
+
+- ret = input_register_device(applesmc_idev);
++ ret = input_register_polled_device(applesmc_idev);
+ if (ret)
+ goto out_idev;
+
+- /* start up our timer for the input device */
+- init_timer(&applesmc_timer);
+- applesmc_timer.function = applesmc_idev_poll;
+- applesmc_timer.expires = jiffies + APPLESMC_POLL_PERIOD;
+-
+ return 0;
+
+ out_idev:
+- input_free_device(applesmc_idev);
++ input_free_polled_device(applesmc_idev);
+
+ out_sysfs:
+ sysfs_remove_group(&pdev->dev.kobj, &accelerometer_attributes_group);
+@@ -1142,8 +1121,8 @@ out:
+ /* Release all ressources used by the accelerometer */
+ static void applesmc_release_accelerometer(void)
+ {
+- del_timer_sync(&applesmc_timer);
+- input_unregister_device(applesmc_idev);
++ input_unregister_polled_device(applesmc_idev);
++ input_free_polled_device(applesmc_idev);
+ sysfs_remove_group(&pdev->dev.kobj, &accelerometer_attributes_group);
+ }
+
+@@ -1180,8 +1159,6 @@ static int __init applesmc_init(void)
+ int count;
+ int i;
+
+- mutex_init(&applesmc_lock);
+-
+ if (!dmi_check_system(applesmc_whitelist)) {
+ printk(KERN_WARNING "applesmc: supported laptop not found!\n");
+ ret = -ENODEV;
Added: trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc_add_name.patch 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,46 @@
+Add name file needed by lm_sensors user-space applications in applesmc sysfs tree.
+
+From: Nicolas Boichat <ni...@bo...>
+
+
+---
+
+ drivers/hwmon/applesmc.c | 7 ++++++-
+ 1 files changed, 6 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index 366f4a1..fd1281f 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -1206,11 +1206,13 @@ static int __init applesmc_init(void)
+ }
+
+ ret = sysfs_create_file(&pdev->dev.kobj, &dev_attr_name.attr);
++ if (ret)
++ goto out_device;
+
+ /* Create key enumeration sysfs files */
+ ret = sysfs_create_group(&pdev->dev.kobj, &key_enumeration_group);
+ if (ret)
+- goto out_device;
++ goto out_name;
+
+ /* create fan files */
+ count = applesmc_get_fan_count();
+@@ -1310,6 +1312,8 @@ out_fan_1:
+ sysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[1]);
+ out_key_enumeration:
+ sysfs_remove_group(&pdev->dev.kobj, &key_enumeration_group);
++out_name:
++ sysfs_remove_file(&pdev->dev.kobj, &dev_attr_name.attr);
+ out_device:
+ platform_device_unregister(pdev);
+ out_driver:
+@@ -1335,6 +1339,7 @@ static void __exit applesmc_exit(void)
+ sysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[0]);
+ sysfs_remove_group(&pdev->dev.kobj, &fan_attribute_groups[1]);
+ sysfs_remove_group(&pdev->dev.kobj, &key_enumeration_group);
++ sysfs_remove_file(&pdev->dev.kobj, &dev_attr_name.attr);
+ platform_device_unregister(pdev);
+ platform_driver_unregister(&applesmc_driver);
+ release_region(APPLESMC_DATA_PORT, APPLESMC_NR_PORTS);
Added: trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/applesmc_int.patch 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,410 @@
+Interrupt support for the accelerometer.
+
+From: Nicolas Boichat <ni...@bo...>
+
+
+---
+
+ drivers/hwmon/applesmc.c | 316 +++++++++++++++++++++++++++++++++++++++++++---
+ 1 files changed, 293 insertions(+), 23 deletions(-)
+
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index eb81a64..ff56afd 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -39,14 +39,20 @@
+ #include <linux/leds.h>
+ #include <linux/hwmon.h>
+ #include <linux/workqueue.h>
++#include <linux/interrupt.h>
+
+ /* data port used by Apple SMC */
+ #define APPLESMC_DATA_PORT 0x300
+ /* command/status port used by Apple SMC */
+ #define APPLESMC_CMD_PORT 0x304
++/* status port used by Apple SMC to get which interrupt type just happened */
++#define APPLESMC_INT_PORT 0x31f
+
+ #define APPLESMC_NR_PORTS 32 /* 0x300-0x31f */
+
++/* Defined in ACPI DSDT table, should we read it from there? */
++#define APPLESMC_IRQ 6
++
+ #define APPLESMC_MAX_DATA_LENGTH 32
+
+ #define APPLESMC_STATUS_MASK 0x0f
+@@ -57,6 +63,8 @@
+
+ #define KEY_COUNT_KEY "#KEY" /* r-o ui32 */
+
++#define INTERRUPT_OK_KEY "NTOK" /* w-o ui8 */
++
+ #define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6 bytes) */
+ #define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6 bytes) */
+ #define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
+@@ -68,6 +76,19 @@
+ #define MOTION_SENSOR_Z_KEY "MO_Z" /* r-o sp78 (2 bytes) */
+ #define MOTION_SENSOR_KEY "MOCN" /* r/w ui16 */
+
++/*
++ * Interrupt controls.
++ * If the norm of the position (sqrt(MO_X^2+MO_Y^2+MO_Z^2)) is smaller than
++ * MOLT (free fall), or bigger than MOHT (high acceleration) for longer than the
++ * value of MOLD (or MOHD), SMC will trigger an interrupt.
++ */
++#define MOTION_LOW_NORM "MOLT" /* r/w sp78 (2 bytes) */
++#define MOTION_HIGH_NORM "MOHT" /* r/w sp78 (2 bytes) */
++#define MOTION_LOW_NORM_INTERVAL "MOLD" /* r/w ui8 */
++#define MOTION_HIGH_NORM_INTERVAL "MOHD" /* r/w ui8 */
++
++#define MSDW_KEY "MSDW" /* r/w flag (1 byte) */
++
+ #define FANS_COUNT "FNum" /* r-o ui8 */
+ #define FANS_MANUAL "FS! " /* r-w ui16 */
+ #define FAN_ACTUAL_SPEED "F0Ac" /* r-o fpe2 (2 bytes) */
+@@ -347,12 +368,79 @@ static int applesmc_read_motion_sensor(int index, s16* value)
+ }
+
+ /*
++ * applesmc_init_check_key_value - checks if a given key contains the bytes in
++ * buffer, if not, writes these bytes.
++ * In case of failure retry every INIT_WAIT_MSECS msec, and timeout if it
++ * waited more than INIT_TIMEOUT_MSECS in total.
++ * Returns zero on success or a negative error on failure. Callers must
++ * hold applesmc_lock.
++ */
++static int applesmc_init_check_key_value(const char* key, u8* buffer, u8 len)
++{
++ int total, ret, i, compare;
++ u8 rdbuffer[APPLESMC_MAX_DATA_LENGTH];
++
++ if (len > APPLESMC_MAX_DATA_LENGTH) {
++ printk(KERN_ERR "applesmc_init_check_key_value: cannot "
++ "read/write more than %d bytes",
++ APPLESMC_MAX_DATA_LENGTH);
++ return -EINVAL;
++ }
++
++ for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) {
++ if (!(ret = applesmc_read_key(key, rdbuffer, len))) {
++ compare = 1;
++ for (i = 0; i < len; i++) {
++ if (rdbuffer[i] != buffer[i]) {
++ compare = 0;
++ break;
++ }
++ }
++
++ if (compare) {
++ return 0;
++ }
++ }
++ ret = applesmc_write_key(key, buffer, len);
++ msleep(INIT_WAIT_MSECS);
++ }
++
++ if (ret)
++ return ret;
++ else
++ return -EIO;
++}
++
++irqreturn_t applesmc_irq_handler(int irq, void *dev_id)
++{
++ u8 int_type = inb(APPLESMC_INT_PORT);
++
++ switch (int_type) {
++ case 0x60:
++ printk("applesmc: received a free fall interrupt\n");
++ break;
++ case 0x6f:
++ printk("applesmc: received a high acceleration interrupt\n");
++ break;
++ case 0x80:
++ printk("applesmc: received a shock interrupt\n");
++ break;
++ default:
++ printk("applesmc: received an unknown interrupt %x\n", int_type);
++ }
++
++ return IRQ_HANDLED;
++}
++
++/*
+ * applesmc_device_init - initialize the accelerometer. Returns zero on success
+ * and negative error code on failure. Can sleep.
+ */
+ static int applesmc_device_init(void)
+ {
+- int total, ret = -ENXIO;
++ int total;
++ int ret = -ENXIO;
++ int ret1, ret2;
+ u8 buffer[2];
+
+ if (!applesmc_accelerometer)
+@@ -360,32 +448,79 @@ static int applesmc_device_init(void)
+
+ mutex_lock(&applesmc_lock);
+
++ /* Accept interrupts */
++ buffer[0] = 0x01;
+ for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) {
+- if (debug)
+- printk(KERN_DEBUG "applesmc try %d\n", total);
+- if (!applesmc_read_key(MOTION_SENSOR_KEY, buffer, 2) &&
+- (buffer[0] != 0x00 || buffer[1] != 0x00)) {
+- if (total == INIT_TIMEOUT_MSECS) {
+- printk(KERN_DEBUG "applesmc: device has"
+- " already been initialized"
+- " (0x%02x, 0x%02x).\n",
+- buffer[0], buffer[1]);
+- } else {
+- printk(KERN_DEBUG "applesmc: device"
+- " successfully initialized"
+- " (0x%02x, 0x%02x).\n",
+- buffer[0], buffer[1]);
+- }
+- ret = 0;
+- goto out;
+- }
+- buffer[0] = 0xe0;
+- buffer[1] = 0x00;
+- applesmc_write_key(MOTION_SENSOR_KEY, buffer, 2);
++ ret1 = applesmc_write_key(INTERRUPT_OK_KEY, buffer, 1);
++ msleep(INIT_WAIT_MSECS);
++
++ if (!ret1)
++ break;
++ }
++ if (ret1)
++ printk(KERN_WARNING "applesmc: Cannot set NTOK key, "
++ "will not receive interrupts.\n");
++
++ /* Setup interrupt controls. */
++ buffer[0] = 20; /* 20 msecs */
++ ret1 = applesmc_init_check_key_value(MOTION_LOW_NORM_INTERVAL,
++ buffer, 1);
++
++ buffer[0] = 20; /* 20 msecs */
++ ret2 = applesmc_init_check_key_value(MOTION_HIGH_NORM_INTERVAL,
++ buffer, 1);
++
++ if (ret1 || ret2) {
++ printk(KERN_WARNING "applesmc: Cannot set motion sensor "
++ "interrupt interval, might not receive "
++ "some interrupts.");
++ }
++
++ buffer[0] = 0x00;
++ buffer[1] = 0x60;
++ ret1 = applesmc_init_check_key_value(MOTION_LOW_NORM, buffer, 2);
++
++ buffer[0] = 0x01;
++ buffer[1] = 0xc0;
++ ret2 = applesmc_init_check_key_value(MOTION_HIGH_NORM, buffer, 2);
++
++ if (ret1 || ret2) {
++ printk(KERN_WARNING "applesmc: Cannot set motion sensor "
++ "min/max norm parameters, "
++ "might not receive some interrupts.");
++ }
++
++ /* Mysterious key. */
++ buffer[0] = 0x01;
++ for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) {
++ ret1 = applesmc_write_key(MSDW_KEY, buffer, 1);
+ msleep(INIT_WAIT_MSECS);
++
++ if (!ret1)
++ break;
++ }
++ if (ret1)
++ printk(KERN_WARNING "applesmc: Cannot set MSDW key\n");
++
++ /* Initialize the device. */
++ buffer[0] = 0xe0;
++ buffer[1] = 0xf8;
++ if (applesmc_init_check_key_value(MOTION_SENSOR_KEY, buffer, 2)) {
++ printk(KERN_WARNING "applesmc: failed to init "
++ "the accelerometer\n");
++ goto out;
+ }
+
+- printk(KERN_WARNING "applesmc: failed to init the device\n");
++ ret1 = request_irq(APPLESMC_IRQ, applesmc_irq_handler, IRQF_DISABLED,
++ "applesmc_irq_handler", NULL);
++
++ if (ret1) {
++ printk(KERN_WARNING "applesmc: cannot setup irq handler\n");
++ }
++
++ printk(KERN_DEBUG "applesmc: accelerometer "
++ "successfully initialized.\n");
++ ret = 0;
+
+ out:
+ mutex_unlock(&applesmc_lock);
+@@ -430,9 +565,16 @@ static int applesmc_resume(struct platform_device *dev)
+ return applesmc_device_init();
+ }
+
++static int applesmc_remove(struct platform_device *dev)
++{
++ free_irq(6, NULL);
++ return 0;
++}
++
+ static struct platform_driver applesmc_driver = {
+ .probe = applesmc_probe,
+ .resume = applesmc_resume,
++ .remove = applesmc_remove,
+ .driver = {
+ .name = "applesmc",
+ .owner = THIS_MODULE,
+@@ -894,6 +1036,122 @@ static ssize_t applesmc_key_at_index_store(struct device *dev,
+ return count;
+ }
+
++static ssize_t applesmc_accelerometer_show(struct device *dev,
++ struct device_attribute *attr, char *sysfsbuf)
++{
++ int ret;
++ unsigned int value = 0;
++ u8 buffer[2];
++ char* key;
++ int length;
++ struct sensor_device_attribute_2 *sensor_attr =
++ to_sensor_dev_attr_2(attr);
++
++ switch(sensor_attr->index) {
++ case 0:
++ key = MOTION_LOW_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 1:
++ key = MOTION_HIGH_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 2:
++ key = MOTION_LOW_NORM;
++ length = 2;
++ break;
++ case 3:
++ key = MOTION_HIGH_NORM;
++ length = 2;
++ break;
++ default:
++ printk("Invalid index for applesmc_accelerometer_show");
++ return -EINVAL;
++ }
++
++ mutex_lock(&applesmc_lock);
++
++ ret = applesmc_read_key(key, buffer, length);
++ if (length == 2)
++ value = ((unsigned int)buffer[0] << 8) | buffer[1];
++ else if (length == 1)
++ value = buffer[0];
++ else {
++ printk("Invalid length for applesmc_param_show");
++ ret = -EINVAL;
++ }
++
++ mutex_unlock(&applesmc_lock);
++ if (ret)
++ return ret;
++ else
++ return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", value);
++}
++
++static ssize_t applesmc_accelerometer_store(struct device *dev,
++ struct device_attribute *attr,
++ const char *sysfsbuf, size_t count)
++{
++ int ret;
++ u32 value;
++ u8 buffer[2];
++ char* key;
++ int length;
++ struct sensor_device_attribute_2 *sensor_attr =
++ to_sensor_dev_attr_2(attr);
++
++ switch(sensor_attr->index) {
++ case 0:
++ key = MOTION_LOW_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 1:
++ key = MOTION_HIGH_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 2:
++ key = MOTION_LOW_NORM;
++ length = 2;
++ break;
++ case 3:
++ key = MOTION_HIGH_NORM;
++ length = 2;
++ break;
++ default:
++ printk("Invalid index for applesmc_accelerometer_show");
++ return -EINVAL;
++ }
++
++ value = simple_strtoul(sysfsbuf, NULL, 10);
++
++ if (length == 2) {
++ if (value > 0xffff)
++ return -EINVAL;
++
++ buffer[0] = (value >> 8) & 0xff;
++ buffer[1] = value & 0xff;
++ } else if (length == 1) {
++ if (value > 0xff)
++ return -EINVAL;
++
++ buffer[0] = value & 0xff;
++ } else {
++ printk("Invalid length for applesmc_param_store");
++ return -EINVAL;
++ }
++
++ mutex_lock(&applesmc_lock);
++
++ ret = applesmc_write_key(key, buffer, length);
++
++ mutex_unlock(&applesmc_lock);
++
++ if (ret)
++ return ret;
++ else
++ return count;
++}
++
+ static struct led_classdev applesmc_backlight = {
+ .name = "smc:kbd_backlight",
+ .default_trigger = "nand-disk",
+@@ -905,10 +1163,22 @@ static DEVICE_ATTR(name, 0444, applesmc_name_show, NULL);
+ static DEVICE_ATTR(position, 0444, applesmc_position_show, NULL);
+ static DEVICE_ATTR(calibrate, 0644,
+ applesmc_calibrate_show, applesmc_calibrate_store);
++static SENSOR_DEVICE_ATTR(low_norm_trigger_interval, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 0);
++static SENSOR_DEVICE_ATTR(high_norm_trigger_interval, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 1);
++static SENSOR_DEVICE_ATTR(low_norm_trigger, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 2);
++static SENSOR_DEVICE_ATTR(high_norm_trigger, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 3);
+
+ static struct attribute *accelerometer_attributes[] = {
+ &dev_attr_position.attr,
+ &dev_attr_calibrate.attr,
++ &sensor_dev_attr_low_norm_trigger.dev_attr.attr,
++ &sensor_dev_attr_high_norm_trigger.dev_attr.attr,
++ &sensor_dev_attr_low_norm_trigger_interval.dev_attr.attr,
++ &sensor_dev_attr_high_norm_trigger_interval.dev_attr.attr,
+ NULL
+ };
+
Added: trunk/kernel/mactel-patches-2.6.22/appletouch.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/appletouch.patch (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/appletouch.patch 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,23 @@
+Appletouch driver ATP_THRESHOLD fix.
+
+From: Ortwin Glück <od...@od...>
+
+
+---
+
+ drivers/input/mouse/appletouch.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/input/mouse/appletouch.c b/drivers/input/mouse/appletouch.c
+index e321526..c26af96 100644
+--- a/drivers/input/mouse/appletouch.c
++++ b/drivers/input/mouse/appletouch.c
+@@ -127,7 +127,7 @@ MODULE_DEVICE_TABLE (usb, atp_table);
+ * Threshold for the touchpad sensors. Any change less than ATP_THRESHOLD is
+ * ignored.
+ */
+-#define ATP_THRESHOLD 5
++#define ATP_THRESHOLD 3
+
+ /* MacBook Pro (Geyser 3 & 4) initialization constants */
+ #define ATP_GEYSER3_MODE_READ_REQUEST_ID 1
Added: trunk/kernel/mactel-patches-2.6.22/apply
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/apply (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/apply 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+if [ "$1" == "" ]; then
+ echo "usage ./apply kerneldir"
+ exit 0
+fi
+
+WORK=$PWD
+
+APPLIED=""
+
+cd $1
+
+for i in `cat $WORK/series | grep -v "#"`
+do
+ patch -p1 --dry-run < $WORK/$i > /dev/null
+ if [ "$?" != "0" ]; then
+ echo -n "$i" | sed -e "s/.*\/\(.*\)$/\1/"
+ echo " would not apply cleanly"
+ for j in $APPLIED
+ do
+ echo "$j" | sed -e "s/.*\/\(.*\)$/Reversing \1.../"
+ patch -s -R -p1 < $WORK/$j
+ done
+ exit
+ fi
+ echo "$i" | sed -e "s/.*\/\(.*\)$/Applying \1.../"
+ patch -s -p1 < $WORK/$i
+ APPLIED="$i $APPLIED"
+done
+
+grep "^EXTRAVERSION *=.*-mactel$" Makefile > /dev/null
+if [ $? != 0 ]; then
+ echo "changing version in Makefile"
+ sed -i Makefile -e "s/^\(EXTRAVERSION *=.*\)$/\1-mactel/"
+fi
Property changes on: trunk/kernel/mactel-patches-2.6.22/apply
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/kernel/mactel-patches-2.6.22/series
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/series (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/series 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,6 @@
+# This series applies on GIT commit c420bc9f09a0926b708c3edb27eacba434a4f4ba
+applesmc_add_name.patch
+applesmc-use-input-polldev.patch
+applesmc_int.patch
+appletouch.patch
+appleir.patch
Added: trunk/kernel/mactel-patches-2.6.22/unapply
===================================================================
--- trunk/kernel/mactel-patches-2.6.22/unapply (rev 0)
+++ trunk/kernel/mactel-patches-2.6.22/unapply 2007-05-26 22:33:14 UTC (rev 125)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+if [ "$1" == "" ]; then
+ echo "usage ./unapply kerneldir"
+ exit 0
+fi
+
+WORK=$PWD
+
+REVERSED=""
+
+cd $1
+
+LIST=""
+for i in `cat $WORK/series | grep -v "#"`
+do
+ LIST="$i $LIST"
+done
+
+for i in $LIST
+do
+ patch -R -p1 --dry-run < $WORK/$i > /dev/null
+ if [ "$?" != "0" ]; then
+ echo -n "$i" | sed -e "s/.*\/\(.*\)$/\1/"
+ echo " would not reverse cleanly"
+ for j in $REVERSED
+ do
+ echo "$j" | sed -e "s/.*\/\(.*\)$/Applying \1.../"
+ patch -s -p1 < $WORK/$j
+ done
+ exit
+ fi
+ echo "$i" | sed -e "s/.*\/\(.*\)$/Reversing \1.../"
+ patch -s -R -p1 < $WORK/$i
+ REVERSED="$i $REVERSED"
+done
+
+echo "changing version in Makefile"
+sed -i Makefile -e "s/^\(EXTRAVERSION *=.*\)-mactel$/\1/"
Property changes on: trunk/kernel/mactel-patches-2.6.22/unapply
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: guindior g. <gui...@ya...> - 2007-05-21 16:52:33
|
Hi, Any news on the xserver? anybody tried to run linux on it? I always get the same result: elilo tries to boot the kernel, the screens becomes blank, the monitor loses signal and the machine reboots. cheers ----- Original Message ---- From: guindior guindior <gui...@ya...> To: mac...@li... Sent: Tuesday, April 3, 2007 2:12:06 PM Subject: [Mactel-linux-devel] linux on intel xserve Hi, Has any of you been able to run a linux kernel on an intel xserve? Which version of the kernel/patches should I use? do you have an working example of a config file? If no one tried, I have one intel xserve in my hands and I could work with you guys to bring linux alive on that platform as well. Who should I contact to? this mailing list? Thank you Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mactel-linux-devel mailing list Mac...@li... https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front |
|
From: Francis <di...@ci...> - 2007-05-20 08:16:35
|
GPSI Announces Market Attack Into $1 Trillion Market! Global Payment Solutions Symbol: GPSI Price: $0.03 GPSI announced its plans to address the huge influx of immigrant workers into the US that need banking solutions that they otherwise would not qualify for. This market is expected to represent over $1 Trillion dollars to be managed by 2008. GPSI provides viable solutions to this market. This is hot, read the news and watch for more Monday! Get on GPSI first thing Monday! More marks can be gained this way with limited time available. Work with a friend, if you really do work and it helps. Some of the features such as the need for a large amount of fluid and unstable organs are things that happen with other disorders but the exact sequence of what's happening here is unique. In the past the answer was to mould the pupil to the school - and if they wouldn't bend, throw them out. Lorna has agreed to go to the US to teach Latin in five schools in the Bronx, one of the toughest areas of New York. "It's a taster for the children. Johanna, nine, said: "I think it's really interesting. The government was not pleased. After all, the new approach would offer a clear guide to parents of both how their own child is progressing and also the effectiveness of different schools. If it is successful, it is hard to see why the government would want to keep the existing tests going as well. , Verizon Communications Inc. I've never been to America before, so I'm walking into the unknown. I've never been to America before, so I'm walking into the unknown. Recreation should be built into your schedule. "But this qualification turns young people from those who say 'I can't' into those who say 'I can'. Rudy and others to corrupt public officials, including members of Congress. Don't rush and don't be late. The men suffered inflammation which had subsequently affected other parts of their body, including their internal organs. "Part of what we have to do is to say that the present and the past is no longer the future. And more often than not, having achieved something with Cope, pupils then go on to tackle more traditional qualifications like GCSEs and even A-levels, he says. THE BIG DAY DAWNS: FOCUS Exam rooms and dentists' chairs share certain memories, but the former need not be painful, if approached in the right way. "We do not know exactly what triggered the reaction," he said. She says a lot of pupils who become disengaged lack encouragement from home. "We have been amazed at how different children are. Many of them will spend two years doing GCSEs and come out with nothing, he says. Another advantage is that because of its community focus, Cope allows pupils to get "Brownie points" for things they are already doing but not being recognised for. This week it was the turn of the head of the examinations watchdog, Ken Boston. Mr Maniar went on: "I deal with many Indian students in my capacity as an international co-ordinator. The extra tests could be justified in that they are shorter and targeted at pupils who are ready for them. Latin certainly needs a boost. He also believes gaming could have a much greater role in university learning. Lorna has agreed to go to the US to teach Latin in five schools in the Bronx, one of the toughest areas of New York. This one will be fascinating to watch. "She wasn't very bright and she didn't want to learn, I would send her out and tell her off and eventually she told me: 'I know - I was a waste of sperm. "My personal feeling is, I do get taken away and kept in captivity for many years," he says. Take six deep breaths to relax and ignore those around you. Lorna, who started the classes last September, said: "We want to see if the Latin improves their literacy results. John McCain, an Arizona Republican who was a former prisoner of war in the Vietnam conflict. I can speak Bengali but it's not very similar to Latin, so it's hard to learn. The object is basically public relations. "Historically, that's a very good springboard to the governing party. You may even get to like the hated subject as you work on it and overcome those initial difficulties. It is also offering large sums of money to provide one-to-one tuition to those pupils who are falling behind the expected rate of progress. But for all three, the root of poor behaviour often lies in pupil's poor self-esteem. Myfanwy Marshall said: "He was a young, fit, healthy, gorgeous-looking guy. Abramoff's former lobbying partners, Michael Scanlon, who had been Mr. The proposal drew strong criticism from opponents to embryo research who yesterday challenged the ethics of the research and branded the work repugnant. |
|
From: k11stan <k1...@gm...> - 2007-05-17 05:13:37
|
everything compiled and loads no prob. but when playing from the cam using mplayer all i get is the green screen ... wussup ? this is using the against-revision-100 source and patch on a mbp2 15" thanx for any help .. msgs below : mplayer V12 like) [swscaler @ 0x878c918]SwScaler: 640x480 -> 640x480 VO: [xv] 640x480 => 640x480 Planar YV12 Selected video codec: [rawuyvy] vfm: raw (RAW UYVY) ========================================================================== Audio: no sound Starting playback... v4l2: select timeout v4l2: select timeout ??% ??,?% 0 0 v4l2: select timeout ??% ??,?% 0 0 v4l2: select timeout ??% ??,?% 0 0 v4l2: select timeout ??% ??,?% 0 0 v4l2: select timeout ??% ??,?% 0 0 v4l2: select timeout ??% ??,?% 0 0 v4l2: select timeout ??% ??,?% 0 0 dmesg : USB Video Class driver (v0.1.0) uvcvideo: Failed to query (130) UVC control 1 (unit 0) : 2 (exp: 26). uvcvideo: Failed to query (130) UVC control 1 (unit 0) : 2 (exp: 26). usbcore: deregistering interface driver uvcvideo Linux video capture interface: v2.00 uvcvideo: iSight: firmware already loaded. uvcvideo: Found UVC 1.00 device Built-in iSight (05ac:8501) uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26). usbcore: registered new interface driver uvcvideo USB Video Class driver (v0.1.0) thanx for any help .. small note aside - this worked perfectly under 2.6.20 ... stan |
|
From: Matthew G. <mj...@sr...> - 2007-05-17 03:54:03
|
On Sun, May 06, 2007 at 11:23:57PM +0200, Matteo Croce wrote: > Hi, what about enabling AHCI mode for the controller with this patch: > http://teknoraver.campuslife.it/software/mac-ahci.diff > and get noticeable speed improvements like these? > http://teknoraver.campuslife.it/bench/ata_piix_vs_ahci.pdf If you want to use AHCI, it would make much more sense to write a DMI hack to reprogram Macbook controllers to AHCI mode and then let the normal driver loading rules apply. While you can get away with just force-loading the ahci driver on Macs, that's not true in general. -- Matthew Garrett | mj...@sr... |
|
From: Marvin S. <ma...@de...> - 2007-05-15 19:34:32
|
On Tuesday 15 May 2007 20:37, KLessou wrote: > Hello, Hi, > > I found a lot details with PowerTop. http://www.linuxpowertop.org/known.p= hp > > This tool has identified that uhci_hcd cause a big power consumption ( > http://lkml.org/lkml/2007/5/12/223). > > There is a patch for appletouch here : > http://www.linuxpowertop.org/known.php (to stop it from doing hundreds of > wakeups per second) but this patch is not with mactel-patches. > > Do you think that a mactel-patch to reduce the power consumption of > appletouch ? > > (Do you know where is the option NO_HZ in the kernel ??) on X86_64 there is no CONFIG_NO_HZ because dynticks is only available on X8= 6=20 at the moment. > > On 5/9/07, Michael Gangolf <mig...@gm...> wrote: > > Am Mittwoch, 9. Mai 2007 00:21:38 schrieb Nick Hoffman: > > > hi Michael. this tool looks pretty cool. how did you learn about it? > > > -Nick > > > > Hi, > > it was on PlanetKDE > > Hope the download link will be up soon! > > > > Michael > > > > -----------------------------------------------------------------------= =2D- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Mactel-linux-users mailing list > > Mac...@li... > > https://lists.sourceforge.net/lists/listinfo/mactel-linux-users =2D-=20 .""`. Marvin Stark <ma...@de...> : :" : Homepage: www.der-marv.de `. `"` `- Debian - when you have better things to do than fix a system |
|
From: KLessou <kl...@gm...> - 2007-05-15 18:37:58
|
Hello, I found a lot details with PowerTop. http://www.linuxpowertop.org/known.php This tool has identified that uhci_hcd cause a big power consumption ( http://lkml.org/lkml/2007/5/12/223). There is a patch for appletouch here : http://www.linuxpowertop.org/known.php (to stop it from doing hundreds of wakeups per second) but this patch is not with mactel-patches. Do you think that a mactel-patch to reduce the power consumption of appletouch ? (Do you know where is the option NO_HZ in the kernel ??) On 5/9/07, Michael Gangolf <mig...@gm...> wrote: > > Am Mittwoch, 9. Mai 2007 00:21:38 schrieb Nick Hoffman: > > hi Michael. this tool looks pretty cool. how did you learn about it? > > -Nick > > > Hi, > it was on PlanetKDE > Hope the download link will be up soon! > > Michael > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mactel-linux-users mailing list > Mac...@li... > https://lists.sourceforge.net/lists/listinfo/mactel-linux-users > -- ~~~~~ | klessou | ~~~~~ |
|
From: Soeren S. <mac...@nn...> - 2007-05-12 07:35:45
|
Dear all, I've ran the just released powertop ( http://www.linuxpowertop.org/powertop.php ) in several configurations on my mbpc1d to figure out where the power problems lie (see below): In summary kernelwise the appletouch driver needs fixing (it is a huge hog...), aswell as fglrx and ath_pci and maybe sky2 too. In userspace apart from the gnome mixer_applet it is pommed/gpomme. What I don't understand is why on the powertop homepage they have a) the C4 state available b) they claim that 3 wakeups per second are achievable on a full gnome desktop c) their ``high'' wakeup count of 193 is 1/10th of what we get... maybe macbooks with their all intel graphics adapther perform close to that... Powertop Analysis ================= (setup: intel cpu in 2.1 GHz mode, ati in 311/297Mhz performance mode, very low display brightness) 1) bootup in single user mode start only pommed: power states: C0: 0.3% C3: 99.7% wakeups: 64 causes: 54% usb_uhcd_poll_rh_status (rh_timer_fun) 34% pommed -> 19.7 W 2) same as 1) but without pommed: C0: 0.1% C3: 99.9% wakeups: 22 -> 19.2 W 3) same as 1) but with appletouch loaded and gpm started (touched touchpad at least once) C0: 1.3% C2: 1.3% C3: 97.4% wakeups: 309 causes: 89.5% interrupt ehci_hcd uhci_hcd -> 20 W 4) same as 1 but ath_pci loaded and ifconfig'd up C0: 0.5% C2: 0.5% C3: 99% wakeups: 104 -> 20 W (if you ifconfig down the interface it goes down to the numbers in 1) 5) same as 1) but load fglrx, appletouch and start a minimal X desktop C0: 1.9% C2: 1.1% C3: 96.2% wakeups: 432 causes: 61%: {e,u}hci_hcd:usb{1,2} 29%: uhci_hcd:usb5,fglrx -> 22 W 6) same as 5, but this time minimal gnome desktop (new user with only panel) C0: 2.1% C2: 1.3% C3: 96.6% wakeups: 467 7) same as 5, but my full gnome desktop C0: 8% C2: 5% C3: 87% wakeups: 1110 37% uhci_hcd:usb5,sky2,fglrx 30% {e,u}hci_hcd:usb{1,2} 5% wifi0 1.2% pommed 2.4% gpomme 2.4% mixer_applet Soeren |
|
From: Matteo C. <roo...@ya...> - 2007-05-10 00:30:59
|
> well, I did not see any speedup-gain when using this... so I am not > convinced this is useful. AHCI will also enable NCQ so there are ALWAYS speedups gain, expecially in multitasking environment when multiple processes use the same disk |
|
From: Soeren S. <mac...@nn...> - 2007-05-09 10:34:28
|
On Wed, 2007-05-09 at 11:01 +0200, Pierre Tardy wrote: > Actually, this may solve the suspend problem we have with ata_piix driver. > Does you Mac manage to suspend with either mode? yes. (I am on 2.6.21) if it does not for you bug the ide people about it. Soeren. |
|
From: Pierre T. <ta...@gm...> - 2007-05-09 09:02:09
|
Actually, this may solve the suspend problem we have with ata_piix driver. Does you Mac manage to suspend with either mode? Pierre 2007/5/6, Soeren Sonnenburg <mac...@nn...>: > On Sun, 2007-05-06 at 23:23 +0200, Matteo Croce wrote: > > Hi, what about enabling AHCI mode for the controller with this patch: > > http://teknoraver.campuslife.it/software/mac-ahci.diff > > and get noticeable speed improvements like these? > > http://teknoraver.campuslife.it/bench/ata_piix_vs_ahci.pdf > > well, I did not see any speedup-gain when using this... so I am not > convinced this is useful. > > Soeren > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mactel-linux-devel mailing list > Mac...@li... > https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel > -- -- Pierre |
|
From: <no...@de...> - 2007-05-07 18:50:57
|
Am Freitag, den 04.05.2007, 11:43 +0800 schrieb Nicolas Boichat: Hello Soeren, > >> config USB_HIDINPUT_POWERBOOK > > so the right comment should be > >=20 > > bool "Enable support for iBook/PowerBook/Macbook/MacbookPro special key= s" ... > I just committed a patch to fix this in the SVN. Fine. Thanks. > Is anyone taking care of sending a patch for this upstream? I sent it to linux-usb and got the answer it will be applied to their tree. I don't know if this means it will be insert directly into the kernel upstream. I will ask. http://sourceforge.net/mailarchive/forum.php?thread_name=3D1178118015.4820.= 26.camel%40mbp.domain.lan&forum_name=3Dlinux-usb-devel --=20 No=C3=A8l K=C3=B6the <noel debian.org> Debian GNU/Linux, www.debian.org |
|
From: Jean D. <kh...@li...> - 2007-05-07 16:03:48
|
We have a standard suffix to associate a designation string to a
sensor: _label. Use it instead of _position so that libsensors will
catch it. (This isn't implemented yet, but should be soon.)
Signed-off-by: Jean Delvare <kh...@li...>
---
drivers/hwmon/applesmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.21-git.orig/drivers/hwmon/applesmc.c 2007-05-07 14:37:14.000000000 +0200
+++ linux-2.6.21-git/drivers/hwmon/applesmc.c 2007-05-07 16:03:12.000000000 +0200
@@ -981,7 +981,7 @@ static SENSOR_DEVICE_ATTR_2(fan##offset#
static SENSOR_DEVICE_ATTR(fan##offset##_manual, S_IRUGO | S_IWUSR, \
applesmc_show_fan_manual, applesmc_store_fan_manual, offset-1); \
\
-static SENSOR_DEVICE_ATTR(fan##offset##_position, S_IRUGO, \
+static SENSOR_DEVICE_ATTR(fan##offset##_label, S_IRUGO, \
applesmc_show_fan_position, NULL, offset-1); \
\
static struct attribute *fan##offset##_attributes[] = { \
@@ -991,7 +991,7 @@ static struct attribute *fan##offset##_a
&sensor_dev_attr_fan##offset##_safe.dev_attr.attr, \
&sensor_dev_attr_fan##offset##_output.dev_attr.attr, \
&sensor_dev_attr_fan##offset##_manual.dev_attr.attr, \
- &sensor_dev_attr_fan##offset##_position.dev_attr.attr, \
+ &sensor_dev_attr_fan##offset##_label.dev_attr.attr, \
NULL \
};
--
Jean Delvare
|