Skip to content

Commit 76dc84f

Browse files
authored
Merge pull request #504 from rdkcentral/develop
bring latest changes
2 parents a572adf + 232b903 commit 76dc84f

File tree

7 files changed

+1649
-401
lines changed

7 files changed

+1649
-401
lines changed

CHANGELOG.md

Lines changed: 447 additions & 106 deletions
Large diffs are not rendered by default.

apis/HdmiCecSink/IHdmiCecSink.h

Lines changed: 58 additions & 54 deletions
Large diffs are not rendered by default.

docs/apis/HdmiCecSinkPlugin.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ HdmiCecSink interface methods:
5454
| [getVendorId](#getVendorId) | Gets the current vendor ID used by host device |
5555
| [printDeviceList](#printDeviceList) | This is a helper debug command for developers |
5656
| [requestActiveSource](#requestActiveSource) | Requests the active source in the network |
57+
| [requestAudioDevicePowerStatus](#requestAudioDevicePowerStatus) | Requests the audio device power status |
5758
| [requestShortAudioDescriptor](#requestShortAudioDescriptor) | Sends the CEC Request Short Audio Descriptor (SAD) message as an event |
5859
| [sendAudioDevicePowerOnMessage](#sendAudioDevicePowerOnMessage) | This message is used to power on the connected audio device |
5960
| [sendGetAudioStatusMessage](#sendGetAudioStatusMessage) | Sends the CEC \<Give Audio Status\> message to request the audio status |
@@ -545,6 +546,51 @@ This method takes no parameters.
545546
}
546547
```
547548

549+
<a name="requestAudioDevicePowerStatus"></a>
550+
## *requestAudioDevicePowerStatus*
551+
552+
Requests the audio device power status.
553+
554+
### Events
555+
556+
| Event | Description |
557+
| :-------- | :-------- |
558+
| [reportAudioDevicePowerStatus](#reportAudioDevicePowerStatus) | Triggered when the audio device power status is received. |
559+
### Parameters
560+
561+
This method takes no parameters.
562+
563+
### Result
564+
565+
| Name | Type | Description |
566+
| :-------- | :-------- | :-------- |
567+
| result | object | |
568+
| result.success | boolean | Whether the request succeeded |
569+
570+
### Example
571+
572+
#### Request
573+
574+
```json
575+
{
576+
"jsonrpc": "2.0",
577+
"id": 42,
578+
"method": "org.rdk.HdmiCecSink.requestAudioDevicePowerStatus"
579+
}
580+
```
581+
582+
#### Response
583+
584+
```json
585+
{
586+
"jsonrpc": "2.0",
587+
"id": 42,
588+
"result": {
589+
"success": true
590+
}
591+
}
592+
```
593+
548594
<a name="requestShortAudioDescriptor"></a>
549595
## *requestShortAudioDescriptor*
550596

@@ -1355,6 +1401,7 @@ HdmiCecSink interface events:
13551401
| [onTextViewOnMsg](#onTextViewOnMsg) | Triggered when a \<Text View ON\> CEC message is received from the source device |
13561402
| [onWakeupFromStandby](#onWakeupFromStandby) | Triggered when the TV is in standby mode and it receives \<Image View ON\>/ \<Text View ON\>/ \<Active Source\> CEC message from the connected source device |
13571403
| [reportAudioDeviceConnectedStatus](#reportAudioDeviceConnectedStatus) | Triggered when an audio device is added or removed |
1404+
| [reportAudioDevicePowerStatus](#reportAudioDevicePowerStatus) | Triggered when the audio device power status is received |
13581405
| [reportAudioStatusEvent](#reportAudioStatusEvent) | Triggered when CEC \<Report Audio Status\> message of device is received |
13591406
| [reportFeatureAbortEvent](#reportFeatureAbortEvent) | Triggered when CEC \<Feature Abort\> message of device is received |
13601407
| [reportCecEnabledEvent](#reportCecEnabledEvent) | Triggered when the HDMI-CEC is enabled |
@@ -1633,6 +1680,30 @@ Triggered when an audio device is added or removed.
16331680
}
16341681
```
16351682

1683+
<a name="reportAudioDevicePowerStatus"></a>
1684+
## *reportAudioDevicePowerStatus*
1685+
1686+
Triggered when the audio device power status is received.
1687+
1688+
### Parameters
1689+
1690+
| Name | Type | Description |
1691+
| :-------- | :-------- | :-------- |
1692+
| params | object | |
1693+
| params.powerStatus | integer | The power status of the audio device |
1694+
1695+
### Example
1696+
1697+
```json
1698+
{
1699+
"jsonrpc": "2.0",
1700+
"method": "client.events.reportAudioDevicePowerStatus",
1701+
"params": {
1702+
"powerStatus": 0
1703+
}
1704+
}
1705+
```
1706+
16361707
<a name="reportAudioStatusEvent"></a>
16371708
## *reportAudioStatusEvent*
16381709

0 commit comments

Comments
 (0)