Skip to content

Commit da8c0e6

Browse files
committed
topology2: components: siggen: Add new module
Create a new conf file for the siggen module. Signed-off-by: Ranjani Sridharan <[email protected]>
1 parent d46793b commit da8c0e6

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#
2+
# Signal generator
3+
#
4+
# A generic siggen widget. All attributes defined herein are namespaced
5+
# by alsatplg to "Object.Widget.siggen.N.attribute_name"
6+
#
7+
# Usage: this component can be used by declaring in a parent object. i.e.
8+
#
9+
# Object.Widget.siggen."N" {
10+
# index 1
11+
# format s32le
12+
# no_pm "true"
13+
# }
14+
#
15+
# Where N is the unique instance number for siggen widget in the same alsaconf node.
16+
17+
Class.Widget."siggen" {
18+
#
19+
# Pipeline ID for the siggen widget object
20+
#
21+
DefineAttribute."index" {}
22+
23+
#
24+
# siggen object instance
25+
#
26+
DefineAttribute."instance" {}
27+
28+
#include common component definition
29+
<include/components/widget-common.conf>
30+
31+
# Attribute categories
32+
attributes {
33+
#
34+
# The siggen widget name would be constructed using the index and instance attributes.
35+
# For ex: "siggen.1.1" or "siggen.10.2" etc.
36+
#
37+
!constructor [
38+
"index"
39+
"instance"
40+
]
41+
42+
#
43+
# immutable attributes cannot be modified in the object instance
44+
#
45+
!immutable [
46+
"uuid"
47+
"type"
48+
]
49+
50+
#
51+
# deprecated attributes should not be added in the object instance
52+
#
53+
!deprecated [
54+
"preload_count"
55+
]
56+
57+
#
58+
# siggen widget objects instantiated within the same alsaconf node must have unique
59+
# instance attribute
60+
#
61+
unique "instance"
62+
}
63+
64+
# siggen only supports one output pin with 32-bit audio format
65+
num_output_pins 1
66+
num_output_audio_formats 1
67+
68+
Object.Base.output_audio_format [
69+
{
70+
out_bit_depth 32
71+
out_valid_bit_depth 32
72+
}
73+
]
74+
75+
# Default attribute values for siggen widget
76+
type "effect"
77+
uuid "94:f8:e3:04:5c:2c:2e:4f:8d:c1:69:4e:ea:ab:53:fa"
78+
no_pm "true"
79+
}

0 commit comments

Comments
 (0)