alsaucm: add alsa-ucm udev rules for PAZ00 (Toshiba AC100/Dynabook AZ).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2018-09-07 10:53:19 +02:00
parent f6b59282f7
commit 25bea6baf7
3 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View file

@ -47,6 +47,7 @@ speaker-test/speaker-test
alsaloop/alsaloop alsaloop/alsaloop
alsaucm/alsaucm alsaucm/alsaucm
alsaucm/alsaucm.1 alsaucm/alsaucm.1
alsaucm/89-alsa-ucm.rules
topology/alsatplg topology/alsatplg
include/aconfig.h* include/aconfig.h*

View file

@ -0,0 +1,8 @@
SUBSYSTEM!="sound", GOTO="ucm_end"
ACTION!="change", GOTO="ucm_end"
KERNEL!="card*", GOTO="ucm_end"
ATTRS{id}=="PAZ00", RUN+="@bindir@/alsaucm -c PAZ00 set _verb HiFi"
ATTRS{id}=="PAZ00", RUN+="@bindir@/alsaucm -c PAZ00 set _verb Record"
LABEL="ucm_end"

View file

@ -15,4 +15,17 @@ alsaucm_LDADD = -lasound
%.1: %.rst %.1: %.rst
rst2man $< > $@ rst2man $< > $@
EXTRA_DIST = alsaucm.rst udevrules_DATA = \
89-alsa-ucm.rules
edit = \
$(SED) -r -e 's,@bindir\@,$(bindir),g' \
-e 's,@mydatadir\@,$(mydatadir),g' \
< $< > $@ || rm $@
89-alsa-ucm.rules: 89-alsa-ucm.rules.in
$(edit)
EXTRA_DIST = alsaucm.rst 89-alsa-ucm.rules.in
CLEANFILES = 89-alsa-ucm.rules