|
| 1 | +# |
| 2 | +# BE playback pipeline: mixout-gain-dax-alh-dai-copier. |
| 3 | +# |
| 4 | +# All attributes defined herein are namespaced |
| 5 | +# by alsatplg to "Object.Pipeline.mixout-gain-dax-alh-dai-copier-playback.N.attribute_name" |
| 6 | +# |
| 7 | +# Usage: mixout-gain-dax-alh-dai-copier-playback pipeline object can be instantiated as: |
| 8 | +# |
| 9 | +# Object.Pipeline.mixout-gain-dax-alh-dai-copier-playback."N" { |
| 10 | +# time_domain "timer" |
| 11 | +# } |
| 12 | +# |
| 13 | +# Where N is the unique pipeline ID within the same alsaconf node. |
| 14 | +# |
| 15 | + |
| 16 | +<include/components/alh-dai-copier.conf> |
| 17 | +<include/components/dolby-dax.conf> |
| 18 | +<include/components/gain.conf> |
| 19 | +<include/components/mixout.conf> |
| 20 | +<include/components/pipeline.conf> |
| 21 | + |
| 22 | +Class.Pipeline."mixout-gain-dax-alh-dai-copier-playback" { |
| 23 | + |
| 24 | + <include/pipelines/pipeline-common.conf> |
| 25 | + |
| 26 | + attributes { |
| 27 | + !constructor [ |
| 28 | + "index" |
| 29 | + ] |
| 30 | + |
| 31 | + !immutable [ |
| 32 | + "direction" |
| 33 | + ] |
| 34 | + |
| 35 | + # |
| 36 | + # mixout-gain-dax-alh-dai-copier-playback objects instantiated within the same alsaconf |
| 37 | + # node must have unique instance attribute |
| 38 | + # |
| 39 | + unique "instance" |
| 40 | + } |
| 41 | + |
| 42 | + Object.Widget { |
| 43 | + mixout."1" {} |
| 44 | + alh-copier."1" { |
| 45 | + type dai_in |
| 46 | + num_input_audio_formats 1 |
| 47 | + num_output_audio_formats 1 |
| 48 | + num_input_pins 1 |
| 49 | + |
| 50 | + # copier only supports one format based on mixin/mixout requirements: |
| 51 | + # 32-bit 48KHz 2ch |
| 52 | + Object.Base.input_audio_format [ |
| 53 | + { |
| 54 | + in_bit_depth 32 |
| 55 | + in_valid_bit_depth 32 |
| 56 | + in_sample_type $SAMPLE_TYPE_MSB_INTEGER |
| 57 | + in_fmt_cfg "$[($in_channels | ($in_valid_bit_depth * 256))]" |
| 58 | + } |
| 59 | + ] |
| 60 | + Object.Base.output_audio_format [ |
| 61 | + { |
| 62 | + out_bit_depth 32 |
| 63 | + out_valid_bit_depth 32 |
| 64 | + out_sample_type $SAMPLE_TYPE_MSB_INTEGER |
| 65 | + out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]" |
| 66 | + } |
| 67 | + ] |
| 68 | + } |
| 69 | + gain."1" { |
| 70 | + num_input_audio_formats 1 |
| 71 | + num_output_audio_formats 1 |
| 72 | + |
| 73 | + # 32-bit 48KHz 2ch |
| 74 | + Object.Base.input_audio_format [ |
| 75 | + { |
| 76 | + in_bit_depth 32 |
| 77 | + in_valid_bit_depth 32 |
| 78 | + } |
| 79 | + ] |
| 80 | + Object.Base.output_audio_format [ |
| 81 | + { |
| 82 | + out_bit_depth 32 |
| 83 | + out_valid_bit_depth 32 |
| 84 | + } |
| 85 | + ] |
| 86 | + } |
| 87 | + dolby-dax."1" { |
| 88 | + num_input_audio_formats 1 |
| 89 | + num_output_audio_formats 1 |
| 90 | + Object.Base.input_audio_format [ |
| 91 | + { |
| 92 | + in_rate 48000 |
| 93 | + in_bit_depth 32 |
| 94 | + in_valid_bit_depth 32 |
| 95 | + ibs "$[(512 * ($[($in_bit_depth / 8)])) * ($in_channels / 2)]" |
| 96 | + } |
| 97 | + ] |
| 98 | + Object.Base.output_audio_format [ |
| 99 | + { |
| 100 | + out_rate 48000 |
| 101 | + out_bit_depth 32 |
| 102 | + out_valid_bit_depth 32 |
| 103 | + obs "$[(512 * ($[($out_bit_depth / 8)])) * ($out_channels / 2)]" |
| 104 | + } |
| 105 | + ] |
| 106 | + } |
| 107 | + |
| 108 | + pipeline."1" { |
| 109 | + priority 0 |
| 110 | + lp_mode 0 |
| 111 | + } |
| 112 | + } |
| 113 | + |
| 114 | + Object.Base { |
| 115 | + !route [ |
| 116 | + { |
| 117 | + source gain.$index.1 |
| 118 | + sink dolby-dax.$index.1 |
| 119 | + } |
| 120 | + { |
| 121 | + source mixout.$index.1 |
| 122 | + sink gain.$index.1 |
| 123 | + } |
| 124 | + ] |
| 125 | + } |
| 126 | + |
| 127 | + direction "playback" |
| 128 | + dynamic_pipeline 1 |
| 129 | + time_domain "timer" |
| 130 | +} |
0 commit comments