Skip to contentSkip to conversation

alsa-utils 1.0.27.1 still ships 90-alsa-restore.rules

PATCH In review Elimar Riesebieter 2 participants 6 messages May 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsa-utils 1.0.27.1 still ships 90-alsa-restore.rules

Hi all,

[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball

but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules

[0] http://www.alsa-project.org/main/index.php/Changes_v1.0.27_v1.0.27.1

Thanks

---
 alsactl/90-alsa-restore.rules.in |    8 --------
 alsactl/Makefile.am              |    5 -----
 2 files changed, 13 deletions(-)
alsactl/90-alsa-restore.rules.in deleted +0 -8
deleted file mode 100644
index 88e12e0..0000000
@@ -1,8 +0,0 @@
-ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go"
-GOTO="alsa_restore_end"
-
-LABEL="alsa_restore_go"
-TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}"
-TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}"
-
-LABEL="alsa_restore_end"
alsactl/Makefile.am +0 -5
index bac84eb..3bf8eca 100644
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c
 alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
 noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
 
-udevrules_DATA = \
-	90-alsa-restore.rules
 
 if HAVE_SYSTEMD
 
@@ -49,20 +47,17 @@ alsa-restore.service: alsa-restore.service.in
 alsa-store.service: alsa-store.service.in
 	$(edit)
 
-90-alsa-restore.rules: 90-alsa-restore.rules.in
 	$(edit)
 
 EXTRA_DIST += \
 	alsa-state.service.in \
 	alsa-restore.service.in \
 	alsa-store.service.in \
-	90-alsa-restore.rules.in
 
 CLEANFILES = \
 	alsa-state.service \
 	alsa-restore.service \
 	alsa-store.service \
-	90-alsa-restore.rules
 
 %.7: %.xml
 	xmlto man $?
#1 lore raw
Quoted 10 lines · Elimar Riesebieter

Hi all,

[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball

but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules

[0] http://www.alsa-project.org/main/index.php/Changes_v1.0.27_v1.0.27.1

[...]

Quoted 2 lines

-90-alsa-restore.rules: 90-alsa-restore.rules.in
$(edit)

^^^^^^^^
Should be removed as well

Thanks
Elimar

---
 alsactl/90-alsa-restore.rules.in |    8 --------
 alsactl/Makefile.am              |    7 -------
 2 files changed, 15 deletions(-)
alsactl/90-alsa-restore.rules.in deleted +0 -8
deleted file mode 100644
index 88e12e0..0000000
@@ -1,8 +0,0 @@
-ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go"
-GOTO="alsa_restore_end"
-
-LABEL="alsa_restore_go"
-TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}"
-TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}"
-
-LABEL="alsa_restore_end"
alsactl/Makefile.am +0 -7
index bac84eb..c32adc0 100644
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c
 alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
 noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
 
-udevrules_DATA = \
-	90-alsa-restore.rules
 
 if HAVE_SYSTEMD
 
@@ -49,20 +47,15 @@ alsa-restore.service: alsa-restore.service.in
 alsa-store.service: alsa-store.service.in
 	$(edit)
 
-90-alsa-restore.rules: 90-alsa-restore.rules.in
-	$(edit)
-
 EXTRA_DIST += \
 	alsa-state.service.in \
 	alsa-restore.service.in \
 	alsa-store.service.in \
-	90-alsa-restore.rules.in
 
 CLEANFILES = \
 	alsa-state.service \
 	alsa-restore.service \
 	alsa-store.service \
-	90-alsa-restore.rules
 
 %.7: %.xml
 	xmlto man $?
#2 lore raw
Quoted 10 lines · Elimar Riesebieter
Quoted 8 lines · Elimar Riesebieter

Hi all,

[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball

but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules

Quoted 7 lines
Quoted 2 lines

[0] http://www.alsa-project.org/main/index.php/Changes_v1.0.27_v1.0.27.1

[...]

Quoted 2 lines

-90-alsa-restore.rules: 90-alsa-restore.rules.in
$(edit)

^^^^^^^^
Should be removed as well

Forgot two backslashes...

---
 alsactl/90-alsa-restore.rules.in |    8 --------
 alsactl/Makefile.am              |   11 ++---------
 2 files changed, 2 insertions(+), 17 deletions(-)
alsactl/90-alsa-restore.rules.in deleted +0 -8
deleted file mode 100644
index 88e12e0..0000000
@@ -1,8 +0,0 @@
-ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go"
-GOTO="alsa_restore_end"
-
-LABEL="alsa_restore_go"
-TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}"
-TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}"
-
-LABEL="alsa_restore_end"
alsactl/Makefile.am +2 -9
index bac84eb..b933ce9 100644
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c
 alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
 noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
 
-udevrules_DATA = \
-	90-alsa-restore.rules
 
 if HAVE_SYSTEMD
 
@@ -49,20 +47,15 @@ alsa-restore.service: alsa-restore.service.in
 alsa-store.service: alsa-store.service.in
 	$(edit)
 
-90-alsa-restore.rules: 90-alsa-restore.rules.in
-	$(edit)
-
 EXTRA_DIST += \
 	alsa-state.service.in \
 	alsa-restore.service.in \
-	alsa-store.service.in \
-	90-alsa-restore.rules.in
+	alsa-store.service.in
 
 CLEANFILES = \
 	alsa-state.service \
 	alsa-restore.service \
-	alsa-store.service \
-	90-alsa-restore.rules
+	alsa-store.service
 
 %.7: %.xml
 	xmlto man $?
#3 lore raw
In reply to Elimar Riesebieter
Quoted 8 lines · Elimar Riesebieter

Hi all,

[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball

but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules

It's correct. The rules file should be generated after configure/make with correct paths.

It's not a complete removal of this feature. You probably miss this fix:

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=c0f70a0b8e340d6ee903ff226886bb6f969d46a1

Jaroslav

Signature · 3 lines
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.
#4 lore raw
Quoted 10 lines · Jaroslav Kysela
Quoted 8 lines · Elimar Riesebieter

Hi all,

[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball

but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules

Quoted 6 lines

It's correct. The rules file should be generated after configure/make with correct paths.

It's not a complete removal of this feature. You probably miss this fix:

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=c0f70a0b8e340d6ee903ff226886bb6f969d46a1

Well, it is useless when EPREFIX (i.e /usr) isn't mounted while udev runs? It should be better to restore mixer settings by an initscript.

Elimar

Signature · 2 lines
  On the keyboard of life you have always
  to keep a finger at the escape key;-)
#5 lore raw
Quoted 12 lines · Elimar Riesebieter
Quoted 10 lines · Jaroslav Kysela
Quoted 8 lines · Elimar Riesebieter

Hi all,

[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball

but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules

Quoted 8 lines
Quoted 6 lines

It's correct. The rules file should be generated after configure/make with correct paths.

It's not a complete removal of this feature. You probably miss this fix:

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=c0f70a0b8e340d6ee903ff226886bb6f969d46a1

Well, it is useless when EPREFIX (i.e /usr) isn't mounted while udev runs?

The distro should handle this situation.

Quoted 1 line

It should be better to restore mixer settings by an initscript.

It does not work for plug and play devices.

Jaroslav

Signature · 3 lines
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.