vlc | branch: master | Rafaël Carré <[email protected]> | Wed Dec 28 23:56:06 2011 -0500| [cc3191024a1ecbb110e70046833ca7819facf482] | committer: Rafaël Carré
motion control applesmc: fix for recent kernel Exact kernel version needed is unknown, but has been around since at least one year+ See initial commit of https://code.launchpad.net/~mikael-sesamiq/macfanctld/trunk Initial support for applesmc was untested anyway (173420e8c2bb2d4c20278dae3beebd2f6aaf52e5) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc3191024a1ecbb110e70046833ca7819facf482 --- modules/control/motion.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/control/motion.c b/modules/control/motion.c index b234f5c..cee8c96 100644 --- a/modules/control/motion.c +++ b/modules/control/motion.c @@ -129,11 +129,11 @@ int Open ( vlc_object_t *p_this ) /* Apple Motion Sensor support */ p_intf->p_sys->sensor = AMS_SENSOR; } - else if( access( "/sys/devices/applesmc.768/position", R_OK ) == 0 ) + else if( access( "/sys/devices/platform/applesmc.768/position", R_OK ) == 0 ) { /* Apple SMC (newer macbooks) */ /* Should be factorised with HDAPS */ - f = fopen( "/sys/devices/applesmc.768/calibrate", "r" ); + f = fopen( "/sys/devices/platform/applesmc.768/calibrate", "r" ); if( f ) { p_intf->p_sys->i_calibrate = fscanf( f, "(%d,%d)", &i_x, &i_y ) == 2 ? i_x: 0; @@ -312,7 +312,7 @@ static int GetOrientation( intf_thread_t *p_intf ) return - i_x * 30; /* FIXME: arbitrary */ case APPLESMC_SENSOR: - f = fopen( "/sys/devices/applesmc.768/position", "r" ); + f = fopen( "/sys/devices/platform/applesmc.768/position", "r" ); if( !f ) { return 0; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
