| 189 | } |
| 190 | |
| 191 | uint8_t CCECAudioSystem::GetSystemAudioModeStatus(const cec_logical_address initiator, bool bUpdate /* = false */) |
| 192 | { |
| 193 | bool bIsPresent(GetStatus() == CEC_DEVICE_STATUS_PRESENT); |
| 194 | bool bRequestUpdate(false); |
| 195 | { |
| 196 | CLockObject lock(m_mutex); |
| 197 | bRequestUpdate = bIsPresent && |
| 198 | (bUpdate || m_systemAudioModeStatus == CEC_SYSTEM_AUDIO_STATUS_UNKNOWN); |
| 199 | } |
| 200 | |
| 201 | if (bRequestUpdate) |
| 202 | { |
| 203 | CheckVendorIdRequested(initiator); |
| 204 | RequestSystemAudioModeStatus(initiator); |
| 205 | } |
| 206 | |
| 207 | CLockObject lock(m_mutex); |
| 208 | return m_systemAudioModeStatus; |
| 209 | } |
| 210 | |
| 211 | bool CCECAudioSystem::AudioEnable(CCECBusDevice* device, bool bEnable /* = true */) |
| 212 | { |
no outgoing calls
no test coverage detected