From 63f64a9733d5504bb04d5f06cdf52b42a4b8006c Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 08 Feb 2007 21:33:21 +0000 Subject: Commit of GoXbox Live HTC Universal patch. This should make backlight work with current kernel versions. It also changes the mixer name to the rightful name for most modern kernels. It is rumored that the mixer in most HTC devices does not work. But at least it points at the right device now. Thanks GoXbox Live! --- diff --git a/libopie2/opiecore/device/odevice_htc.cpp b/libopie2/opiecore/device/odevice_htc.cpp index 4e5200b..a6ade11 100644 --- a/libopie2/opiecore/device/odevice_htc.cpp +++ b/libopie2/opiecore/device/odevice_htc.cpp @@ -186,14 +186,14 @@ void HTC::init(const QString& cpu_info) case Model_HTC_Alpine: case Model_HTC_Beetles: case Model_HTC_Apache: - m_backlightdev = "/sys/class/backlight/pxa2xx-fb/"; + m_backlightdev = "/sys/class/backlight/corgi-bl/"; break; case Model_HTC_Blueangel: case Model_HTC_Himalaya: m_backlightdev = "/sys/class/backlight/w100fb/"; break; default: - m_backlightdev = "/sys/class/backlight/pxafb/"; + m_backlightdev = "/sys/class/backlight/corgi-bl/"; } // set initial rotation @@ -300,7 +300,7 @@ void HTC::buzzer( int sound ) // sound capabilities.. Otherwise we expect to have the buzzer // device.. if ( snd && snd->isFinished() ){ - changeMixerForAlarm( 0, "/dev/sound/mixer", snd ); + changeMixerForAlarm( 0, "/dev/mixer", snd ); snd->play(); } else if( !snd ) { int fd = ::open ( "/dev/sharp_buz", O_WRONLY|O_NONBLOCK ); -- cgit v0.9.0.2