Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jelle de Jong <jelledejong@powercraft.nl>
To: alsa-devel@alsa-project.org
Subject: my udev rules are breaking my dmixer setup why?
Date: Sun, 09 Nov 2008 15:59:03 +0100	[thread overview]
Message-ID: <4916FAB7.7050206@powercraft.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

Hello everybody,

I am trying to use udev to get fixed device names depending on the
location of the device on the usb bus. The udev rules seems to be
working fine, however i cant get dmix to work with the udev rules using
only hw dies work. If i remove the udev rules the dmixer works fine.

Can somebody look at the attachment, and maybe do some testing, i would
highly appreciate it.

I am also on chat.freenode.org and #alsa as tuxcrafter

Thanks in advance,

Jelle

[-- Attachment #2: udev-alsa-setup.txt --]
[-- Type: text/plain, Size: 3978 bytes --]

ls -hal /dev/snd/
    total 0
    drwxr-xr-x  2 root root       320 2008-11-09 15:44 .
    drwxr-xr-x 12 root root      4.8K 2008-11-09 15:50 ..
    crw-rw----  1 root user0 116,   0 2008-11-09 15:44 controlC0
    crw-rw----  1 root user1 116,  32 2008-11-09 15:44 controlC1
    crw-rw----  1 root user2 116,  64 2008-11-09 15:44 controlC2
    crw-rw----  1 root user3 116,  96 2008-11-09 15:44 controlC3
    crw-rw----  1 root user0 116,  24 2008-11-09 15:44 pcmC0D0c
    crw-rw----  1 root user0 116,  16 2008-11-09 15:49 pcmC0D0p
    crw-rw----  1 root user1 116,  56 2008-11-09 15:44 pcmC1D0c
    crw-rw----  1 root user1 116,  48 2008-11-09 15:44 pcmC1D0p
    crw-rw----  1 root user2 116,  88 2008-11-09 15:44 pcmC2D0c
    crw-rw----  1 root user2 116,  80 2008-11-09 15:44 pcmC2D0p
    crw-rw----  1 root user3 116, 120 2008-11-09 15:44 pcmC3D0c
    crw-rw----  1 root user3 116, 112 2008-11-09 15:44 pcmC3D0p
    crw-rw----  1 root audio 116,   1 2008-11-09 15:44 seq
    crw-rw----  1 root audio 116,  33 2008-11-09 15:44 timer

------------------------------------------------------------------------

udevinfo info --attribute-walk --name=/dev/snd/controlC0

------------------------------------------------------------------------

echo 'SUBSYSTEM=="sound", KERNELS=="3-1", KERNEL=="controlC[0-9]*", NAME="snd/controlC4"
SUBSYSTEM=="sound", KERNELS=="3-2", KERNEL=="controlC[0-9]", NAME="snd/controlC5"
SUBSYSTEM=="sound", KERNELS=="4-1", KERNEL=="controlC[0-9]", NAME="snd/controlC6"
SUBSYSTEM=="sound", KERNELS=="4-2", KERNEL=="controlC[0-9]", NAME="snd/controlC7"

SUBSYSTEM=="sound", KERNELS=="3-1", KERNEL=="hwC[0-9]D0c", NAME="snd/hwC4D0c"
SUBSYSTEM=="sound", KERNELS=="3-2", KERNEL=="hwC[0-9]D0c", NAME="snd/hwC5D0c"
SUBSYSTEM=="sound", KERNELS=="4-1", KERNEL=="hwC[0-9]D0c", NAME="snd/hwC6D0c"
SUBSYSTEM=="sound", KERNELS=="4-2", KERNEL=="hwC[0-9]D0c", NAME="snd/hwC7D0c"

SUBSYSTEM=="sound", KERNELS=="3-1", KERNEL=="pcmC[0-9]D0c", NAME="snd/pcmC4D0c"
SUBSYSTEM=="sound", KERNELS=="3-2", KERNEL=="pcmC[0-9]D0c", NAME="snd/pcmC5D0c"
SUBSYSTEM=="sound", KERNELS=="4-1", KERNEL=="pcmC[0-9]D0c", NAME="snd/pcmC6D0c"
SUBSYSTEM=="sound", KERNELS=="4-2", KERNEL=="pcmC[0-9]D0c", NAME="snd/pcmC7D0c"

SUBSYSTEM=="sound", KERNELS=="3-1", KERNEL=="pcmC[0-9]D0p", NAME="snd/pcmC4D0p"
SUBSYSTEM=="sound", KERNELS=="3-2", KERNEL=="pcmC[0-9]D0p", NAME="snd/pcmC5D0p"
SUBSYSTEM=="sound", KERNELS=="4-1", KERNEL=="pcmC[0-9]D0p", NAME="snd/pcmC6D0p"
SUBSYSTEM=="sound", KERNELS=="4-2", KERNEL=="pcmC[0-9]D0p", NAME="snd/pcmC7D0p"' | tee /etc/udev/rules.d/10-persistent-sound.rules
chmod 600 /etc/udev/rules.d/10-persistent-sound.rules

------------------------------------------------------------------------
# without dmixer # this works ....

echo 'pcm.softvol {
    type softvol
    slave.pcm hw:1
    control.name Master
    control.card 1
}

pcm.!default {
    type plug
    slave.pcm softvol
}

ctl.!default {
    type hw
    card 1
}' | tee /home/user1/.asoundrc
chmod 600 /home/user1/.asoundrc
chown user1:user1 /home/user1/.asoundrc

------------------------------------------------------------------------
# with dmixer # this does not work

echo 'pcm.softvol {
    type softvol
    slave.pcm dmix:1
    control.name Master
    control.card 1
}

pcm.!default {
    type plug
    slave.pcm softvol
}

ctl.!default {
    type hw
    card 1
}' | tee /home/user1/.asoundrc
chmod 600 /home/user1/.asoundrc
chown user1:user1 /home/user1/.asoundrc

------------------------------------------------------------------------
# with dmixer # this does not work

echo 'pcm.!default {
   type plug
   slave.pcm dmixer
}
pcm.dmixer {
   type dmix
   ipc_key 2048
   slave.pcm hw:1
}
ctl.dmixer {
   type hw
   card 1
}
pcm.dsp {
    type plug
    slave.pcm dmixer
}
ctl.mixer {
    type hw
    card 1
}' | tee /home/user1/.asoundrc
chmod 600 /home/user1/.asoundrc
chown user1:user1 /home/user1/.asoundrc

------------------------------------------------------------------------

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2008-11-09 14:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-09 14:59 Jelle de Jong [this message]
2008-11-11  8:03 ` my udev rules are breaking my dmixer setup why? Takashi Iwai
2008-11-11  9:43   ` Jelle de Jong
2008-11-11 10:37     ` Takashi Iwai
2008-11-11 10:57       ` Jelle de Jong
2008-11-11 11:04         ` Takashi Iwai
2008-11-11 11:01       ` Jaroslav Kysela
2008-11-11 11:21         ` Jelle de Jong
2008-11-11 11:25           ` Takashi Iwai
2008-11-11 17:30         ` Jelle de Jong
2008-11-11 17:55           ` Jaroslav Kysela
2008-11-12 10:25             ` Jelle de Jong
2008-12-03 17:56               ` Jelle de Jong
2009-07-29 10:44             ` Jelle de Jong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4916FAB7.7050206@powercraft.nl \
    --to=jelledejong@powercraft.nl \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox