alsactl: Move systemd unit start-up from basic.target to sound.target
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 24 lines · Chris Mayo
Ensures soundcard is ready before restoring state.
sound.target added to systemd in v18:
https://cgit.freedesktop.org/systemd/systemd/commit/?id=88dfa2938afSimplify dependencies:
- After=alsa-state.service is not needed because both units test for @daemonswitch@ with opposite outcomes.- After=sysinit.target is automatically added by systemd.
First proposed by Tom Yan.
Signed-off-by Chris Mayo <[email protected]>---
I need this because my Sound Blaster Titanium is not ready by the time basic.target is reached.
It was proposed last year by Tom Yan but looks like it didn't get in because requested config checks and documentation didn't materialise.
https://www.spinics.net/lists/alsa-devel/msg45537.html
Quoted 5 lines
I've added those (
PKG_CHECK_MODULESoutputs a message at configure time).I've left ConditionPathExistsGlob=/dev/snd/control* in alsa-restore.service because although it would normally be started by the udev rule and sound.target there's no guarantee that is how it was started.
Thanks, this looks like a sensitive change. Applied now.
Takashi