Skip to content

Commit 0e9a48f

Browse files
ranj063lgirdwood
authored andcommitted
topology2: include: components: Add a new encoder module
This will be used in the compressed capture pipelines. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent ab9b459 commit 0e9a48f

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#
2+
# Encoder widget component definition
3+
#
4+
# A generic encoder widget. All attributes defined herein are namespaced
5+
# by alsatplg to "Object.Widget.encoder.N.attribute_name"
6+
#
7+
# Usage: this component can be used by declaring in a parent object. i.e.
8+
#
9+
# Object.Widget.encoder."N" {
10+
# index 1
11+
# no_pm "true"
12+
# }
13+
#
14+
# Where N is the unique instance number for encoder widget in the same alsaconf node.
15+
16+
Class.Widget."encoder" {
17+
#
18+
# Pipeline ID for the encoder widget object
19+
#
20+
DefineAttribute."index" {}
21+
22+
#
23+
# encoder object instance
24+
#
25+
DefineAttribute."instance" {}
26+
27+
#include common component definition
28+
<include/components/widget-common.conf>
29+
30+
# Attribute categories
31+
attributes {
32+
#
33+
# The encoder widget name would be constructed using the index and instance attributes.
34+
# For ex: "encoder.1.1" or "encoder.10.2" etc.
35+
#
36+
!constructor [
37+
"index"
38+
"instance"
39+
]
40+
41+
#
42+
# immutable attributes cannot be modified in the object instance
43+
#
44+
!immutable [
45+
"type"
46+
]
47+
48+
#
49+
# encoder widget objects instantiated within the same alsaconf node must have unique
50+
# instance attribute
51+
#
52+
unique "instance"
53+
}
54+
55+
# Default attribute values for encoder widget
56+
type "encoder"
57+
58+
# cadence codec UUID
59+
uuid "43:84:21:d8:f3:5f:4c:4a:b3:88:6c:fe:07:b9:56:aa"
60+
no_pm "true"
61+
num_output_pins 1
62+
num_input_pins 1
63+
}

0 commit comments

Comments
 (0)