armbian-build/packages/bsp/common
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
..
etc Small tweaks (#4492) 2022-11-27 00:10:44 +01:00
lib Revert "modifications of firstrun scripts (#3642)" (#3772) 2022-05-08 13:49:05 -04:00
usr armbian-audio-config: Massively speed up script (#4549) 2022-12-12 08:15:35 +01:00
var/lib/polkit-1/localauthority/50-local.d Adding printing support to Desktop image, 881x driver to Rockchip NEXT, hide few items in applications menu 2017-11-30 07:29:36 +01:00