diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index d3ceb7b7590b05..7f080349e4a85b 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3536,7 +3536,7 @@ server cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; diff --git a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter index f521f7e702bfa3..7c58605b67f5b3 100644 --- a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter +++ b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter @@ -1428,10 +1428,11 @@ server cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; + readonly attribute int8u currentOutput = 1; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1787,6 +1788,7 @@ endpoint 1 { server cluster AudioOutput { callback attribute outputList; + ram attribute currentOutput default = 0x00; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; diff --git a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.zap b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.zap index 3a7b75f2222908..2bf771f7b338d7 100644 --- a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.zap +++ b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.zap @@ -3790,6 +3790,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "CurrentOutput", + "code": 1, + "mfgCode": null, + "side": "server", + "type": "int8u", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0x00", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "GeneratedCommandList", "code": 65528, @@ -3906,5 +3922,6 @@ "endpointId": 1, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 16abb307869c60..4d4815ab53590f 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -6224,11 +6224,11 @@ client cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; - readonly attribute optional int8u currentOutput = 1; + readonly attribute int8u currentOutput = 1; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -6248,7 +6248,7 @@ client cluster AudioOutput = 1291 { /** Upon receipt, this SHALL change the output on the media device to the output at a specific index in the Output List. */ command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; /** Upon receipt, this SHALL rename the output at a specific index in the Output List. Updates to the output name SHALL appear in the TV settings menus. */ - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; + command access(invoke: manage) RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ @@ -6269,7 +6269,7 @@ server cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; @@ -6291,7 +6291,7 @@ server cluster AudioOutput = 1291 { } command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; + command access(invoke: manage) RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 1fa43d89cd56e6..a77ad1f6b06005 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -6183,11 +6183,11 @@ client cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; - readonly attribute optional int8u currentOutput = 1; + readonly attribute int8u currentOutput = 1; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -6207,7 +6207,7 @@ client cluster AudioOutput = 1291 { /** Upon receipt, this SHALL change the output on the media device to the output at a specific index in the Output List. */ command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; /** Upon receipt, this SHALL rename the output at a specific index in the Output List. Updates to the output name SHALL appear in the TV settings menus. */ - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; + command access(invoke: manage) RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } /** This cluster provides an interface for controlling the Output on a media device such as a TV. */ @@ -6228,7 +6228,7 @@ server cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; @@ -6250,7 +6250,7 @@ server cluster AudioOutput = 1291 { } command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; + command access(invoke: manage) RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index 4a4a8a4280c207..e2690c171d4990 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -2307,7 +2307,7 @@ server cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; @@ -2329,7 +2329,7 @@ server cluster AudioOutput = 1291 { } command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; + command access(invoke: manage) RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index 0431a51629d783..dc9a3969157875 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -1849,11 +1849,11 @@ client cluster AudioOutput = 1291 { struct OutputInfoStruct { int8u index = 0; OutputTypeEnum outputType = 1; - char_string<32> name = 2; + char_string name = 2; } readonly attribute OutputInfoStruct outputList[] = 0; - readonly attribute optional int8u currentOutput = 1; + readonly attribute int8u currentOutput = 1; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1873,7 +1873,7 @@ client cluster AudioOutput = 1291 { /** Upon receipt, this SHALL change the output on the media device to the output at a specific index in the Output List. */ command SelectOutput(SelectOutputRequest): DefaultSuccess = 0; /** Upon receipt, this SHALL rename the output at a specific index in the Output List. Updates to the output name SHALL appear in the TV settings menus. */ - command RenameOutput(RenameOutputRequest): DefaultSuccess = 1; + command access(invoke: manage) RenameOutput(RenameOutputRequest): DefaultSuccess = 1; } /** This cluster provides an interface for launching content on a media player device such as a TV or Speaker. */ diff --git a/src/app/zap-templates/zcl/data-model/chip/audio-output-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/audio-output-cluster.xml index d58dfca94375ee..7cca1ca7f19c28 100644 --- a/src/app/zap-templates/zcl/data-model/chip/audio-output-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/audio-output-cluster.xml @@ -1,6 +1,6 @@