
Я работаю на встраиваемой системе Linux (kernel-5.10), и системе необходимо настроить плагин ladspa для работы со звуком.
Моя настройка asound.conf выглядит следующим образом: она определяет имя устройства PCM mono_ladspa_pcm
и цепочку плагинов ladspa для воспроизведения звука в моноканале.
pcm.mono_ladspa_pcm {
type ladspa # Use ladspa plugin
slave {
pcm "hw:0,4" # input device
}
channels 1 # mono channel
playback_plugins { # Playback plugin definition.
0 { # 1st plugin
label "lpf" # plugin name/label
input {
bindings {
0 0 # connect input channel to plugin's input
}
}
output {
bindings {
0 0 # connect plugin's output to output channel
}
}
}
}
}
При указанных выше настройках НЕ воспроизводится звук.
Я уверен, что настройки пути плагина, метка или ID верны, а оборудование в порядке.
Обновлено с помощью плагина фильтра ladspa.
Вот еще один asound.conf
с ladspa low-pass-filter
.
pcm.my_lpf {
type ladspa # LADSPA
slave {
pcm "hw:0,4" # input device
}
channels 1 # mono-channel
path "/usr/lib/ladspa"
playback_plugins { # plugin definition
0 {
label "lpf" # plugin lable: lpf
input {
bindings {
0 1 # input channel to lpf input
}
controls {
4 5000
}
}
output {
bindings {
0 2 # lpf output to output channel.
}
}
controls {
4 5000
}
}
}
}
Я потратил много времени на тестирование и отладку, но так и не смог заставить их работать.