|
Lines 3124-3133
Link Here
|
| 3124 |
if (BIT_IS_SET(switches, SW_JACK_PHYSICAL_INSERT)) { |
3124 |
if (BIT_IS_SET(switches, SW_JACK_PHYSICAL_INSERT)) { |
| 3125 |
supportedSwitches = supportedSwitches | TDESwitchType::JackPhysicalInsert; |
3125 |
supportedSwitches = supportedSwitches | TDESwitchType::JackPhysicalInsert; |
| 3126 |
} |
3126 |
} |
| 3127 |
if (BIT_IS_SET(switches, SW_VIDEOOUT_INSERT)) { |
|
|
| 3128 |
supportedSwitches = supportedSwitches | TDESwitchType::VideoOutInsert; |
| 3129 |
} |
| 3130 |
#if 0 // Some old kernels don't provide these defines... [FIXME] |
3127 |
#if 0 // Some old kernels don't provide these defines... [FIXME] |
|
|
3128 |
if (BIT_IS_SET(switches, SW_VIDEOOUT_INSERT)) { |
| 3129 |
supportedSwitches = supportedSwitches | TDESwitchType::VideoOutInsert; |
| 3130 |
} |
| 3131 |
if (BIT_IS_SET(switches, SW_CAMERA_LENS_COVER)) { |
3131 |
if (BIT_IS_SET(switches, SW_CAMERA_LENS_COVER)) { |
| 3132 |
supportedSwitches = supportedSwitches | TDESwitchType::CameraLensCover; |
3132 |
supportedSwitches = supportedSwitches | TDESwitchType::CameraLensCover; |
| 3133 |
} |
3133 |
} |
|
Lines 3185-3194
Link Here
|
| 3185 |
if (BIT_IS_SET(switches, SW_JACK_PHYSICAL_INSERT)) { |
3185 |
if (BIT_IS_SET(switches, SW_JACK_PHYSICAL_INSERT)) { |
| 3186 |
activeSwitches = activeSwitches | TDESwitchType::JackPhysicalInsert; |
3186 |
activeSwitches = activeSwitches | TDESwitchType::JackPhysicalInsert; |
| 3187 |
} |
3187 |
} |
| 3188 |
if (BIT_IS_SET(switches, SW_VIDEOOUT_INSERT)) { |
|
|
| 3189 |
activeSwitches = activeSwitches | TDESwitchType::VideoOutInsert; |
| 3190 |
} |
| 3191 |
#if 0 // Some old kernels don't provide these defines... [FIXME] |
3188 |
#if 0 // Some old kernels don't provide these defines... [FIXME] |
|
|
3189 |
if (BIT_IS_SET(switches, SW_VIDEOOUT_INSERT)) { |
| 3190 |
activeSwitches = activeSwitches | TDESwitchType::VideoOutInsert; |
| 3191 |
} |
| 3192 |
if (BIT_IS_SET(switches, SW_CAMERA_LENS_COVER)) { |
3192 |
if (BIT_IS_SET(switches, SW_CAMERA_LENS_COVER)) { |
| 3193 |
activeSwitches = activeSwitches | TDESwitchType::CameraLensCover; |
3193 |
activeSwitches = activeSwitches | TDESwitchType::CameraLensCover; |
| 3194 |
} |
3194 |
} |