mirror of https://github.com/thesofproject/sof.git
Tools: Topology2: Easier controls create with bench_comp_generate.sh
This patch adds to benchmark topologies template .conf files generator commented out control examples types for easier ALSA controls create. The controls include files are renamed since they may contain all controls types and not just bytes. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
d4d0a0ca13
commit
2831afe345
|
@ -30,12 +30,12 @@ generate_comp ()
|
||||||
Object.Widget.${comp}.1 {
|
Object.Widget.${comp}.1 {
|
||||||
index 1
|
index 1
|
||||||
<include/bench/one_input_output_format_${format}.conf>
|
<include/bench/one_input_output_format_${format}.conf>
|
||||||
<include/bench/${comp}_control_bytes_playback.conf>
|
<include/bench/${comp}_controls_playback.conf>
|
||||||
}
|
}
|
||||||
Object.Widget.${comp}.2 {
|
Object.Widget.${comp}.2 {
|
||||||
index 3
|
index 3
|
||||||
<include/bench/one_input_output_format_${format}.conf>
|
<include/bench/one_input_output_format_${format}.conf>
|
||||||
<include/bench/${comp}_control_bytes_capture.conf>
|
<include/bench/${comp}_controls_capture.conf>
|
||||||
}
|
}
|
||||||
<include/bench/host_io_gateway_pipelines_${format}.conf>
|
<include/bench/host_io_gateway_pipelines_${format}.conf>
|
||||||
<include/bench/${comp}_hda_route.conf>
|
<include/bench/${comp}_hda_route.conf>
|
||||||
|
@ -71,32 +71,50 @@ EOF_ROUTE
|
||||||
|
|
||||||
generate_playback_controls ()
|
generate_playback_controls ()
|
||||||
{
|
{
|
||||||
fn=${comp}_control_bytes_playback.conf
|
fn=${comp}_controls_playback.conf
|
||||||
echo Creating file "$fn"
|
echo Creating file "$fn"
|
||||||
cat > "$fn" <<EOF_PLAYBACK_BYTES
|
cat > "$fn" <<EOF_PLAYBACK_BYTES
|
||||||
# Created initially with script "${FULL_CMD[@]}"
|
# Created initially with script "${FULL_CMD[@]}"
|
||||||
# may need edits to modify controls
|
# may need edits to modify controls
|
||||||
Object.Control.bytes."1" {
|
Object.Control {
|
||||||
name '\$ANALOG_PLAYBACK_PCM ${comp^^} bytes'
|
# Un-comment the supported controls in ${comp^^}
|
||||||
IncludeByKey.BENCH_${comp^^}_PARAMS {
|
#bytes."1" {
|
||||||
"default" "include/components/${comp}/default.conf"
|
# name '\$ANALOG_PLAYBACK_PCM ${comp^^} bytes'
|
||||||
}
|
# IncludeByKey.BENCH_${comp^^}_PARAMS {
|
||||||
|
# "default" "include/components/${comp}/default.conf"
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
#mixer."1" {
|
||||||
|
# name '\$ANALOG_PLAYBACK_PCM ${comp^^} switch or volume'
|
||||||
|
#}
|
||||||
|
#enum."1" {
|
||||||
|
# name '\$ANALOG_PLAYBACK_PCM ${comp^^} enum'
|
||||||
|
#}
|
||||||
}
|
}
|
||||||
EOF_PLAYBACK_BYTES
|
EOF_PLAYBACK_BYTES
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_capture_controls ()
|
generate_capture_controls ()
|
||||||
{
|
{
|
||||||
fn=${comp}_control_bytes_capture.conf
|
fn=${comp}_controls_capture.conf
|
||||||
echo Creating file "$fn"
|
echo Creating file "$fn"
|
||||||
cat > "$fn" <<EOF_CAPTURE_BYTES
|
cat > "$fn" <<EOF_CAPTURE_BYTES
|
||||||
# Created initially with script "${FULL_CMD[@]}"
|
# Created initially with script "${FULL_CMD[@]}"
|
||||||
# may need edits to modify controls
|
# may need edits to modify controls
|
||||||
Object.Control.bytes."1" {
|
Object.Control {
|
||||||
name '\$ANALOG_CAPTURE_PCM ${comp^^} bytes'
|
# Un-comment the supported controls in ${comp^^}
|
||||||
IncludeByKey.BENCH_${comp^^}_PARAMS {
|
#bytes."1" {
|
||||||
"default" "include/components/${comp}/default.conf"
|
# name '\$ANALOG_CAPTURE_PCM ${comp^^} bytes'
|
||||||
}
|
# IncludeByKey.BENCH_${comp^^}_PARAMS {
|
||||||
|
# "default" "include/components/${comp}/default.conf"
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
#mixer."1" {
|
||||||
|
# name '\$ANALOG_CAPTURE_PCM ${comp^^} switch or volume'
|
||||||
|
#}
|
||||||
|
#enum."1" {
|
||||||
|
# name '\$ANALOG_CAPTURE_PCM ${comp^^} enum'
|
||||||
|
#}
|
||||||
}
|
}
|
||||||
EOF_CAPTURE_BYTES
|
EOF_CAPTURE_BYTES
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue