-
Notifications
You must be signed in to change notification settings - Fork 4
RDKECOREMW-1166 : handle not supported hal implementation causing high cpu utilization #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
df26ebc
d1628b5
c55e402
27aed8e
51444e9
c7768ae
7139e63
c2857d9
d733f33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * If not stated otherwise in this file or this component's LICENSE file the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * following copyright and licenses apply: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check failure on line 3 in ccec/src/DriverImpl.cpp
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * Copyright 2016 RDK Management | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -117,8 +117,23 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| int err = HdmiCecOpen(&nativeHandle); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (err != HDMI_CEC_IO_SUCCESS) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| throw IOException(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (HDMI_CEC_IO_SUCCESS != err) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCEC_LOG( LOG_EXP, "DriverImpl::open HdmiCecOpen failed with error %d\r\n", err); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| switch (err) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| case HDMI_CEC_IO_INVALID_ARGUMENT: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| case HDMI_CEC_IO_INVALID_HANDLE: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| throw InvalidParamException(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| break; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| case HDMI_CEC_IO_ALREADY_OPEN: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| throw InvalidStateException(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| break; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| throw OperationNotSupportedException(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| break; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+126
to
+132
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| break; | |
| case HDMI_CEC_IO_ALREADY_OPEN: | |
| throw InvalidStateException(); | |
| break; | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); | |
| break; | |
| case HDMI_CEC_IO_ALREADY_OPEN: | |
| throw InvalidStateException(); | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The break statement after throw OperationNotSupportedException() is unreachable. Remove it.
| break; | |
| case HDMI_CEC_IO_ALREADY_OPEN: | |
| throw InvalidStateException(); | |
| break; | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); | |
| break; | |
| case HDMI_CEC_IO_ALREADY_OPEN: | |
| throw InvalidStateException(); | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The break statement after throw InvalidParamException() is unreachable. Remove it.
| break; |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The break statement after throw OperationNotSupportedException() is unreachable. Remove it.
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The break statement after throw OperationNotSupportedException() is unreachable. Remove it.
| break; | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); | |
| break; | |
| case HDMI_CEC_IO_GENERAL_ERROR: | |
| default: | |
| throw IOException(); | |
| break; | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); | |
| case HDMI_CEC_IO_GENERAL_ERROR: | |
| default: | |
| throw IOException(); |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The break statement after throw InvalidParamException() is unreachable. Remove it.
| break; | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); | |
| break; | |
| case HDMI_CEC_IO_GENERAL_ERROR: | |
| default: | |
| throw IOException(); | |
| break; | |
| case HDMI_CEC_IO_OPERATION_NOT_SUPPORTED: | |
| throw OperationNotSupportedException(); | |
| case HDMI_CEC_IO_GENERAL_ERROR: | |
| default: | |
| throw IOException(); |
Uh oh!
There was an error while loading. Please reload this page.