[alsa-devel] Bug: plugging in a new sound card causes mixer state of other sound cards to be changed

Angus McInnes angus at amcinnes.info
Sun Dec 1 11:27:25 CET 2013


Hi,

When I plug in my USB sound card, the mixer settings of the internal
sound card are changed. I don't want this to happen.

I believe the problem is with this commit:

http://git.alsa-project.org/?p=alsa-utils.git;a=blobdiff;f=alsactl/90-alsa-restore.rules.in;h=3ce9a6540d551cdfe1d10a43e7f767c27c551fe7;hp=fe0e1ed0ae248d810f433a2af5c72e86e17dfaf0;hb=8b34bf25c02693899b03768b0eef628eb1d7bb6e;hpb=611249ae26f435429dbe1894e210704a723ee277

The card number $attr{number} comes from the card* device. Since
KERNELS=="card*" was changed to KERNELS!="card*", alsactl restore is
run with no card number attribute, so it restores the state of all
cards.

If I change the != back to ==, alsactl restore is run with a card
number and the problem seems to be resolved.

(By the way, your bug tracker at
https://bugtrack.alsa-project.org/alsa-bug seems to be down.)

Regards,
Angus McInnes


More information about the Alsa-devel mailing list