author | eilers <eilers> | 2003-11-17 17:27:44 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-11-17 17:27:44 (UTC) |
commit | e8bba52dc9443d3aadcc2c221fa62ba37ea5c712 (patch) (unidiff) | |
tree | ddd09027e169cecb392fb7d956f55631d5bf4ef7 | |
parent | 2e6030553ecc21845ebb9987dffd6c252760a94d (diff) | |
download | opie-e8bba52dc9443d3aadcc2c221fa62ba37ea5c712.zip opie-e8bba52dc9443d3aadcc2c221fa62ba37ea5c712.tar.gz opie-e8bba52dc9443d3aadcc2c221fa62ba37ea5c712.tar.bz2 |
Merging the corgie-patches from Branch manually.. (no cvs -j would caused
a big mess .. ;) )
Changed the keysound handling for zaurus: Just all C7x0 and the 5600 will
use the sounddevice.. All other will use the old /dev/sharp_buz device..
-rw-r--r-- | libopie/odevice.cpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index fef623a..58254a7 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -1135,8 +1135,9 @@ void iPAQ::init ( ) | |||
1135 | break; | 1135 | break; |
1136 | case Model_iPAQ_H36xx: | 1136 | case Model_iPAQ_H36xx: |
1137 | case Model_iPAQ_H37xx: | 1137 | case Model_iPAQ_H37xx: |
1138 | case Model_iPAQ_H39xx: | 1138 | case Model_iPAQ_H39xx: |
1139 | |||
1139 | default: | 1140 | default: |
1140 | d-> m_rotation = Rot270; | 1141 | d-> m_rotation = Rot270; |
1141 | break; | 1142 | break; |
1142 | case Model_iPAQ_H5xxx: | 1143 | case Model_iPAQ_H5xxx: |
@@ -1499,9 +1500,9 @@ bool Zaurus::isZaurus() | |||
1499 | if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" ) ){ | 1500 | if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" ) ){ |
1500 | return true; | 1501 | return true; |
1501 | } | 1502 | } |
1502 | 1503 | ||
1503 | // On non-embedix kenrnels, we have too look closer. | 1504 | // On non-embedix kernels, we have to look closer. |
1504 | bool is_zaurus = false; | 1505 | bool is_zaurus = false; |
1505 | QFile f ( "/proc/cpuinfo" ); | 1506 | QFile f ( "/proc/cpuinfo" ); |
1506 | if ( f. open ( IO_ReadOnly ) ) { | 1507 | if ( f. open ( IO_ReadOnly ) ) { |
1507 | QString model; | 1508 | QString model; |
@@ -1521,8 +1522,9 @@ bool Zaurus::isZaurus() | |||
1521 | || model == "Collie" | 1522 | || model == "Collie" |
1522 | || model == "SHARP Corgi" | 1523 | || model == "SHARP Corgi" |
1523 | || model == "SHARP Shepherd" | 1524 | || model == "SHARP Shepherd" |
1524 | || model == "SHARP Poodle" | 1525 | || model == "SHARP Poodle" |
1526 | || model == "SHARP Husky" ) | ||
1525 | ) | 1527 | ) |
1526 | is_zaurus = true; | 1528 | is_zaurus = true; |
1527 | 1529 | ||
1528 | } | 1530 | } |
@@ -1591,13 +1593,16 @@ void Zaurus::init ( ) | |||
1591 | model = line. mid ( loc + 2 ). simplifyWhiteSpace( ); | 1593 | model = line. mid ( loc + 2 ). simplifyWhiteSpace( ); |
1592 | } | 1594 | } |
1593 | 1595 | ||
1594 | if ( model == "SHARP Corgi" ) { | 1596 | if ( model == "SHARP Corgi" ) { |
1595 | d-> m_model = Model_Zaurus_SLC700; | 1597 | d-> m_model = Model_Zaurus_SLC7x0; |
1596 | d-> m_modelstr = "Zaurus SL-C700"; | 1598 | d-> m_modelstr = "Zaurus SL-C700"; |
1597 | } else if ( model == "SHARP Shepherd" ) { | 1599 | } else if ( model == "SHARP Shepherd" ) { |
1598 | d-> m_model = Model_Zaurus_SLC700; // Do we need a special type for the C750 ? (eilers) | 1600 | d-> m_model = Model_Zaurus_SLC7x0; |
1599 | d-> m_modelstr = "Zaurus SL-C750"; | 1601 | d-> m_modelstr = "Zaurus SL-C750"; |
1602 | } else if ( model == "SHARP Husky" ) { | ||
1603 | d-> m_model = Model_Zaurus_SLC7x0; | ||
1604 | d-> m_modelstr = "Zaurus SL-C760"; | ||
1600 | } else if ( model == "SHARP Poodle" ) { | 1605 | } else if ( model == "SHARP Poodle" ) { |
1601 | d-> m_model = Model_Zaurus_SLB600; | 1606 | d-> m_model = Model_Zaurus_SLB600; |
1602 | d-> m_modelstr = "Zaurus SL-B500 or SL-5600"; | 1607 | d-> m_modelstr = "Zaurus SL-B500 or SL-5600"; |
1603 | } else if ( model == "Sharp-Collie" || model == "Collie" ) { | 1608 | } else if ( model == "Sharp-Collie" || model == "Collie" ) { |
@@ -1612,9 +1617,9 @@ void Zaurus::init ( ) | |||
1612 | switch ( d-> m_model ) { | 1617 | switch ( d-> m_model ) { |
1613 | case Model_Zaurus_SLA300: | 1618 | case Model_Zaurus_SLA300: |
1614 | d-> m_rotation = Rot0; | 1619 | d-> m_rotation = Rot0; |
1615 | break; | 1620 | break; |
1616 | case Model_Zaurus_SLC700: | 1621 | case Model_Zaurus_SLC7x0: |
1617 | // Note: need to 1) set flipstate based on physical screen orientation | 1622 | // Note: need to 1) set flipstate based on physical screen orientation |
1618 | // and 2) check to see if the user overrode the rotation direction | 1623 | // and 2) check to see if the user overrode the rotation direction |
1619 | // using appearance, and if so, remove that item from the Config to | 1624 | // using appearance, and if so, remove that item from the Config to |
1620 | // ensure the rotate applet flips us back to the previous state. | 1625 | // ensure the rotate applet flips us back to the previous state. |
@@ -1647,9 +1652,9 @@ void Zaurus::initButtons ( ) | |||
1647 | 1652 | ||
1648 | struct z_button * pz_buttons; | 1653 | struct z_button * pz_buttons; |
1649 | int buttoncount; | 1654 | int buttoncount; |
1650 | switch ( d-> m_model ) { | 1655 | switch ( d-> m_model ) { |
1651 | case Model_Zaurus_SLC700: | 1656 | case Model_Zaurus_SLC7x0: |
1652 | pz_buttons = z_buttons_c700; | 1657 | pz_buttons = z_buttons_c700; |
1653 | buttoncount = ARRAY_SIZE(z_buttons_c700); | 1658 | buttoncount = ARRAY_SIZE(z_buttons_c700); |
1654 | break; | 1659 | break; |
1655 | default: | 1660 | default: |
@@ -1751,13 +1756,11 @@ void Zaurus::buzzer ( int sound ) | |||
1751 | { | 1756 | { |
1752 | #ifndef QT_NO_SOUND | 1757 | #ifndef QT_NO_SOUND |
1753 | QString soundname; | 1758 | QString soundname; |
1754 | 1759 | ||
1755 | // Not all devices have real sound. But I expect | 1760 | // Not all devices have real sound |
1756 | // that Openzaurus now has a sound driver which | 1761 | if ( d->m_model == Model_Zaurus_SLC7x0 |
1757 | // I will use instead the buzzer... | 1762 | || d->m_model == Model_Zaurus_SLB600 ){ |
1758 | if ( ( d->m_model == Model_Zaurus_SLC700 ) | ||
1759 | || d->m_system == System_OpenZaurus ){ | ||
1760 | 1763 | ||
1761 | switch ( sound ){ | 1764 | switch ( sound ){ |
1762 | case SHARP_BUZ_SCHEDULE_ALARM: | 1765 | case SHARP_BUZ_SCHEDULE_ALARM: |
1763 | soundname = "alarm"; | 1766 | soundname = "alarm"; |