armbian-build/packages/bsp
Matthijs Kooijman 0aa61abe78
armbian-audio-config: Massively speed up script (#4549)
* armbian-audio-config: Massively speed up script

This script calls amixer to set various mixer volumes, by simply trying
a bunch of mixer names for each sound card in the system. In practice,
this meant the amixer command was called 158 times for each sound card.
The overhead of all these forks and probably also amixer startup added
together to produce a noticable slowdown in startup.

For example on an Orange Pi PC, the script took about 6 seconds per
soundcard. This was on a system with a few extra USB soundcards (6 alsa
cards in total):

    $ time bash ./armbian-audio-config.original

     real    0m35.662s
     user    0m20.145s
     sys     0m15.145s

This commit modifies the script to spawn amixer only once per alsa card,
passing all the mixer set commands through stdin. This pretty much
completely kills the slowdown. On the same 6-card system:

    $ time bash ./armbian-audio-config

    real    0m0.406s
    user    0m0.345s
    sys     0m0.229s

* armbian-audio-config: Add quotes to fix lint errors
2022-12-12 08:15:35 +01:00
..
aml-s9xx-box Fix the amlogic tvbox build's extlinux.conf to use uImage for the kernel (#4509) 2022-11-29 19:47:50 +01:00
armbianmonitor some shellcheck fixes (#4013) 2022-07-25 11:39:11 +02:00
clockworkpi-a06 Add clockworkpi-a06 support (#3768) 2022-05-11 21:47:28 +02:00
common armbian-audio-config: Massively speed up script (#4549) 2022-12-12 08:15:35 +01:00
cubox
helios64 helios64: fix udev rules to let fancontrol work again (#3367) 2021-12-25 21:53:53 +01:00
jethub Update oneshot service for eth reset at system start. (AR-1098) (#3965) 2022-07-09 11:46:40 +02:00
lime-a64
mpv Soft video playback on full screen 2019-05-23 21:30:24 +02:00
mt7623 Bananapi R2 (#1151) 2018-11-08 18:51:42 +01:00
mvebu Shellcheck fixes on armbianmonitor (#3994) 2022-07-14 10:12:24 +02:00
mvebu64 Espressobin u boot fit image (#3766) 2022-05-07 15:50:53 +02:00
nanopim4 Implement fan controller for Nanopi M4 (#3231) 2021-10-31 12:12:06 +01:00
odroid [ odroid xu4 ] use udev rules to set ethernet rps 2018-12-23 13:09:56 +00:00
olinuxino
pinebook
pinebook-pro Remove duplicated entries for Pinebook PRO bsp creation (#3031) 2021-07-18 15:41:58 +02:00
rk322x fix typo 2022-10-04 21:59:14 +02:00
rk3318 rockchip64: add ssv6051p wifi driver for current and edge kernel (#4269) 2022-10-12 11:22:33 +02:00
rk3328 rockchip64: add rk3318-box tvbox board patch and configurations (#3921) 2022-06-23 08:30:54 +02:00
rk3399 rockchip64: set gpu governor default to simple_ondemand 2022-06-26 15:12:40 +02:00
rockchip rockchip: enable broadcom serdev bluetooth for current and edge kernels 2021-09-16 17:51:34 +00:00
rockpis Rockpis wifi fixes (#4008) 2022-10-13 18:34:43 +02:00
sun8i-v3s/etc/default Add Pine64 PineCube support (#2364) 2020-11-25 19:50:10 +01:00
sunxi Add bluetooth support for Orange PI 3 LTS (#3896) 2022-06-15 21:16:41 +02:00
sunxi-temp
10-no-new-privileges.conf
99disable-power-management
armbian_first_run.txt.template
h3consumption some shellcheck fixes (#4013) 2022-07-25 11:39:11 +02:00
h3disp Update URLs (#2870) 2021-06-10 11:27:51 +02:00