mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 12:36:32 +01:00
6f7ce73159
The link name of AMD ACP digital microphones driver acp-pdm-mach
is acp-dmic-codec. Fix it to make UCM initialize it again.
Closes: https://github.com/alsa-project/alsa-utils/pull/281
Fixes: 8116639
("alsactl: 90-alsa-restore.rules - add support for AMD ACP digital microphone")
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
30 lines
1.3 KiB
Text
30 lines
1.3 KiB
Text
# do not edit this file, it will be overwritten on update
|
|
|
|
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*",@extratest@ GOTO="alsa_restore_go"
|
|
GOTO="alsa_restore_end"
|
|
|
|
LABEL="alsa_restore_go"
|
|
|
|
ENV{ALSA_CARD_NUMBER}="$attr{device/number}"
|
|
|
|
# mark HDA analog card; HDMI/DP card does not have capture devices
|
|
DRIVERS=="snd_hda_intel", TEST=="device/pcmC$env{ALSA_CARD_NUMBER}D0p", RUN+="/bin/sh -c 'echo ALSA_CARD_HDA_ANALOG=$env{ALSA_CARD_NUMBER} >> /run/udev/alsa-hda-analog-card'"
|
|
|
|
# check for ACP hardware
|
|
TEST=="device/device/acp3x-dmic-capture", GOTO="alsa_hda_analog"
|
|
TEST=="device/device/acp6x-dmic-capture", GOTO="alsa_hda_analog"
|
|
TEST=="device/device/acp63-dmic-capture", GOTO="alsa_hda_analog"
|
|
TEST=="device/device/acp-dmic-codec", GOTO="alsa_hda_analog"
|
|
GOTO="alsa_restore_std"
|
|
|
|
LABEL="alsa_hda_analog"
|
|
# restore configuration for profile with combined cards (HDA + digital mic)
|
|
TEST!="/run/udev/alsa-hda-analog-card", GOTO="alsa_restore_std"
|
|
IMPORT{program}="/usr/bin/cat /run/udev/alsa-hda-analog-card"
|
|
ENV{ALSA_CARD_HDA_ANALOG}!="", ENV{ALSA_CARD_NUMBER}="$env{ALSA_CARD_HDA_ANALOG}"
|
|
|
|
LABEL="alsa_restore_std"
|
|
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl@args@ restore $env{ALSA_CARD_NUMBER}"
|
|
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl@args@ nrestore $env{ALSA_CARD_NUMBER}"
|
|
|
|
LABEL="alsa_restore_end"
|