Skip to content

Commit

Permalink
Merge pull request rdkcentral#2117 from jruzzi/RDK-35114_missing_method
Browse files Browse the repository at this point in the history
Added missing method
  • Loading branch information
anand-ky authored Jan 13, 2022
2 parents 896c2bf + 3373bf9 commit 452069e
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 8 deletions.
41 changes: 41 additions & 0 deletions DisplaySettings/DisplaySettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,47 @@
"$ref": "#/definitions/result"
}
},
"setMS12ProfileSettingsOverride":{
"summary": "Overrides individual MS12 audio settings in order to optimize the customer experience (for example, enabling dialog enhancement in sports mode)",
"params": {
"type":"object",
"properties": {
"audioPort": {
"$ref": "#/definitions/audioPort1"
},
"operation": {
"summary": "The audio profile state",
"type": "string",
"example": ""
},
"profileName": {
"summary": "An MS12 audio profile name from `getSupportedMS12AudioProfile`",
"type": "string",
"example": "Sports"
},
"ms12SettingsName": {
"summary": "An ms12 setting name",
"type": "string",
"example": "Dialog Enhance"
},
"ms12SettingsValue": {
"summary": "The value to set",
"type": "string",
"example": "On"
}
},
"required": [
"audioPort",
"operation",
"profileName",
"ms12SettingsName",
"ms12SettingsValue"
]
},
"result": {
"$ref": "#/definitions/result"
}
},
"setMuted":{
"summary": "Mutes or unmutes audio on a specific port.\n \n### Event \n\n No Events.",
"params": {
Expand Down
63 changes: 55 additions & 8 deletions DisplaySettings/doc/DisplaySettingsPlugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ A org.rdk.DisplaySettings plugin for Thunder framework.
- [Introduction](#head.Introduction)
- [Description](#head.Description)
- [Configuration](#head.Configuration)
- [Interfaces](#head.Interfaces)
- [Methods](#head.Methods)
- [Notifications](#head.Notifications)

Expand Down Expand Up @@ -77,13 +76,6 @@ The table below lists configuration options of the plugin.
| locator | string | Library name: *libWPEFrameworkDisplaySettings.so* |
| autostart | boolean | Determines if the plugin shall be started automatically along with the framework |

<a name="head.Interfaces"></a>
# Interfaces

This plugin implements the following interfaces:

- [DisplaySettings.json](https://github.com/rdkcentral/ThunderInterfaces/tree/master/interfaces/DisplaySettings.json)

<a name="head.Methods"></a>
# Methods

Expand Down Expand Up @@ -158,6 +150,7 @@ DisplaySettings interface methods:
| [setMISteering](#method.setMISteering) | Enables or Disables Media Intelligent Steering |
| [setMS12AudioCompression](#method.setMS12AudioCompression) | Sets the audio dynamic range compression level (port HDMI0) |
| [setMS12AudioProfile](#method.setMS12AudioProfile) | Sets the selected MS12 audio profile |
| [setMS12ProfileSettingsOverride](#method.setMS12ProfileSettingsOverride) | Overrides individual MS12 audio settings in order to optimize the customer experience (for example, enabling dialog enhancement in sports mode) |
| [setMuted](#method.setMuted) | Mutes or unmutes audio on a specific port |
| [setScartParameter](#method.setScartParameter) | Sets SCART parameters |
| [setSoundMode](#method.setSoundMode) | Sets the current sound mode for the corresponding video display |
Expand Down Expand Up @@ -3523,6 +3516,60 @@ Sets the selected MS12 audio profile.
}
```

<a name="method.setMS12ProfileSettingsOverride"></a>
## *setMS12ProfileSettingsOverride [<sup>method</sup>](#head.Methods)*

Overrides individual MS12 audio settings in order to optimize the customer experience (for example, enabling dialog enhancement in sports mode).

### Parameters

| Name | Type | Description |
| :-------- | :-------- | :-------- |
| params | object | |
| params.audioPort | string | Audio port name (`HDMI0`, `SPEAKER0`, `SPDIF0`, and so on). The default port is `HDMI0` if no port is specified |
| params.operation | string | The audio profile state |
| params.profileName | string | An MS12 audio profile name from `getSupportedMS12AudioProfile` |
| params.ms12SettingsName | string | An ms12 setting name |
| params.ms12SettingsValue | string | The value to set |

### Result

| Name | Type | Description |
| :-------- | :-------- | :-------- |
| result | object | |
| result.success | boolean | Whether the request succeeded |

### Example

#### Request

```json
{
"jsonrpc": "2.0",
"id": 42,
"method": "org.rdk.DisplaySettings.1.setMS12ProfileSettingsOverride",
"params": {
"audioPort": "SPEAKER0",
"operation": "...",
"profileName": "Sports",
"ms12SettingsName": "Dialog Enhance",
"ms12SettingsValue": "On"
}
}
```

#### Response

```json
{
"jsonrpc": "2.0",
"id": 42,
"result": {
"success": true
}
}
```

<a name="method.setMuted"></a>
## *setMuted [<sup>method</sup>](#head.Methods)*

Expand Down

0 comments on commit 452069e

Please sign in to comment.