Skip to contentSkip to conversation

alsactl: Move systemd unit start-up from basic.target to sound.target

PATCH Takashi Iwai 1 participant 1 message Oct 6, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
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=88dfa2938af

Simplify 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.

---

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_MODULES outputs 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