File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55<include/components/asrc.conf>
66<include/components/tdfb.conf>
77<include/components/template_comp.conf>
8+ <include/components/sound_dose.conf>
89
910Define {
1011 ANALOG_PLAYBACK_PCM 'Analog Playback'
@@ -543,6 +544,22 @@ IncludeByKey.BENCH_CONFIG {
543544 <include/bench/rtnr_s32.conf>
544545 }
545546
547+ #
548+ # Sound Dose component
549+ #
550+
551+ "sound_dose16" {
552+ <include/bench/sound_dose_s16.conf>
553+ }
554+
555+ "sound_dose24" {
556+ <include/bench/sound_dose_s24.conf>
557+ }
558+
559+ "sound_dose32" {
560+ <include/bench/sound_dose_s32.conf>
561+ }
562+
546563 #
547564 # SRC component
548565 #
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ set(components
1717 "gain"
1818 "igo_nr"
1919 "rtnr"
20+ "sound_dose"
2021 "src"
2122 "src_lite"
2223 "tdfb"
@@ -33,6 +34,7 @@ set(component_parameters
3334 "BENCH_GAIN_PARAMS=default"
3435 "BENCH_IGO_NR_PARAMS=default"
3536 "BENCH_RTNR_PARAMS=default"
37+ "BENCH_SOUND_DOSE_PARAMS=default"
3638 "BENCH_SRC_PARAMS=default"
3739 "BENCH_SRC_LITE_PARAMS=default"
3840 "BENCH_TDFB_PARAMS=default"
Original file line number Diff line number Diff line change 1+ # Created initially with script "./bench_comp_generate.sh sound_dose"
2+ # may need edits to modify controls
3+ Object.Control {
4+ # Un-comment the supported controls in SOUND_DOSE
5+ bytes."1" {
6+ name '$ANALOG_CAPTURE_PCM SOUND_DOSE bytes'
7+ IncludeByKey.BENCH_SOUND_DOSE_PARAMS {
8+ "default" "include/components/sound_dose/setup_sens_100db.conf"
9+ }
10+ }
11+ #mixer."1" {
12+ # name '$ANALOG_CAPTURE_PCM SOUND_DOSE switch or volume'
13+ #}
14+ #enum."1" {
15+ # name '$ANALOG_CAPTURE_PCM SOUND_DOSE enum'
16+ #}
17+ }
Original file line number Diff line number Diff line change 1+ # Created initially with script "./bench_comp_generate.sh sound_dose"
2+ # may need edits to modify controls
3+ Object.Control {
4+ # Un-comment the supported controls in SOUND_DOSE
5+ bytes."1" {
6+ name '$ANALOG_PLAYBACK_PCM SOUND_DOSE bytes'
7+ IncludeByKey.BENCH_SOUND_DOSE_PARAMS {
8+ "default" "include/components/sound_dose/setup_sens_100db.conf"
9+ }
10+ }
11+ #mixer."1" {
12+ # name '$ANALOG_PLAYBACK_PCM SOUND_DOSE switch or volume'
13+ #}
14+ #enum."1" {
15+ # name '$ANALOG_PLAYBACK_PCM SOUND_DOSE enum'
16+ #}
17+ }
Original file line number Diff line number Diff line change 1+ # Created with script "./bench_comp_generate.sh sound_dose"
2+ Object.Base.route [
3+ {
4+ sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback'
5+ source 'sound_dose.1.1'
6+ }
7+ {
8+ sink 'sound_dose.1.1'
9+ source 'host-copier.0.playback'
10+ }
11+ {
12+ source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture'
13+ sink 'sound_dose.3.2'
14+ }
15+ {
16+ source 'sound_dose.3.2'
17+ sink 'host-copier.0.capture'
18+ }
19+ ]
Original file line number Diff line number Diff line change 1+ # Created with script "./bench_comp_generate.sh sound_dose"
2+ Object.Widget.sound_dose.1 {
3+ index 1
4+ <include/bench/one_input_output_format_s16.conf>
5+ <include/bench/sound_dose_controls_playback.conf>
6+ }
7+ Object.Widget.sound_dose.2 {
8+ index 3
9+ <include/bench/one_input_output_format_s16.conf>
10+ <include/bench/sound_dose_controls_capture.conf>
11+ }
12+ <include/bench/host_io_gateway_pipelines_s16.conf>
13+ <include/bench/sound_dose_hda_route.conf>
Original file line number Diff line number Diff line change 1+ # Created with script "./bench_comp_generate.sh sound_dose"
2+ Object.Widget.sound_dose.1 {
3+ index 1
4+ <include/bench/one_input_output_format_s24.conf>
5+ <include/bench/sound_dose_controls_playback.conf>
6+ }
7+ Object.Widget.sound_dose.2 {
8+ index 3
9+ <include/bench/one_input_output_format_s24.conf>
10+ <include/bench/sound_dose_controls_capture.conf>
11+ }
12+ <include/bench/host_io_gateway_pipelines_s24.conf>
13+ <include/bench/sound_dose_hda_route.conf>
Original file line number Diff line number Diff line change 1+ # Created with script "./bench_comp_generate.sh sound_dose"
2+ Object.Widget.sound_dose.1 {
3+ index 1
4+ <include/bench/one_input_output_format_s32.conf>
5+ <include/bench/sound_dose_controls_playback.conf>
6+ }
7+ Object.Widget.sound_dose.2 {
8+ index 3
9+ <include/bench/one_input_output_format_s32.conf>
10+ <include/bench/sound_dose_controls_capture.conf>
11+ }
12+ <include/bench/host_io_gateway_pipelines_s32.conf>
13+ <include/bench/sound_dose_hda_route.conf>
Original file line number Diff line number Diff line change 1+ #
2+ #
3+ # A Sound Dose component. All attributes defined herein are namespaced
4+ # by alsatplg to "Object.Widget.sound_dose.attribute_name"
5+ #
6+ # Usage: this component can be used by declaring in the parent object. i.e.
7+ #
8+ # Object.Widget.sound_dose."N" {
9+ # index 1
10+ # }
11+ # }
12+
13+ #
14+ # Where M is pipeline ID and N is a unique integer in the parent object.
15+
16+ Class.Widget."sound_dose" {
17+ #
18+ # Pipeline ID
19+ #
20+ DefineAttribute."index" {
21+ type "integer"
22+ }
23+
24+ #
25+ # Unique instance for Sound Dose widget
26+ #
27+ DefineAttribute."instance" {
28+ type "integer"
29+ }
30+
31+ # Include common widget attributes definition
32+ <include/components/widget-common.conf>
33+
34+ attributes {
35+ !constructor [
36+ "index"
37+ "instance"
38+ ]
39+ !mandatory [
40+ "num_input_pins"
41+ "num_output_pins"
42+ "num_input_audio_formats"
43+ "num_output_audio_formats"
44+ ]
45+
46+ !immutable [
47+ "uuid"
48+ "type"
49+ ]
50+ !deprecated [
51+ "preload_count"
52+ ]
53+ unique "instance"
54+ }
55+
56+ #
57+ # Default attributes for sound_dose
58+ #
59+
60+ # uuid a43f9d7c-ea75-44d5-942d967991a33809
61+
62+ uuid "7c:9d:3f:a4:75:ea:d5:44:94:2d:96:79:91:a3:38:09"
63+ type "effect"
64+ no_pm "true"
65+ num_input_pins 1
66+ num_output_pins 1
67+ }
You can’t perform that action at this time.
0 commit comments