How do I have pd select the correct sound card, regardless of what device numbering it gets from alsa? The problem is now that for some reason, the device listing of my sound cards and midi devices keeps changing quite often. After a reboot, it is often the case that pd tries to connect to the wrong alsa device, and I have to select it manually again. Anyone know a good trick to cope with this? Thanks Tim
http://alsa.opensrc.org/MultipleCards should give you a few clues, and there's probably some advice elsewhere specific to your distro.
On 3 September 2011 21:33, tim vets timvets@gmail.com wrote:
How do I have pd select the correct sound card, regardless of what device numbering it gets from alsa? The problem is now that for some reason, the device listing of my sound cards and midi devices keeps changing quite often. After a reboot, it is often the case that pd tries to connect to the wrong alsa device, and I have to select it manually again. Anyone know a good trick to cope with this? Thanks Tim _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Has anybody had any success with udev?
I need to use oss and have tried to create a udev.rule to connect two identical usb midi interfaces and identify them by the usb port.
I ended up creating the devices in /dev/ and /dev/snd/ and named them /dev/midi1, /dev/midi2 and/or /dev/snd/midiC1D0, /dev/snd/C2D0.
They show up correctly in the folder /dev/ but I don't know how to assign them to anything alsa-base.conf can use.
The first one that gets plugged in is always midi1 no matter where I plug it in. If I plug only one of them into the second usb port it will create midi1 and midi2. alsa-base.conf cannot seem to use the udev rules. It looks like something is assigning the soundcard numbers before or after udev.
Any ideas?
Ingo
http://alsa.opensrc.org/MultipleCards should give you a few clues, and there's probably some advice elsewhere specific to your distro.
On 3 September 2011 21:33, tim vets timvets@gmail.com wrote:
How do I have pd select the correct sound card, regardless of what
device
numbering it gets from alsa? The problem is now that for some reason, the device listing of my sound cards and midi devices keeps changing quite often. After a reboot, it is often the case that pd tries to connect to the
wrong
alsa device, and I have to select it manually again. Anyone know a good trick to cope with this? Thanks Tim _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Sun, Sep 4, 2011 at 14:33, Ingo ingo@miamiwave.com wrote:
Has anybody had any success with udev?
I need to use oss and have tried to create a udev.rule to connect two identical usb midi interfaces and identify them by the usb port.
I ended up creating the devices in /dev/ and /dev/snd/ and named them /dev/midi1, /dev/midi2 and/or /dev/snd/midiC1D0, /dev/snd/C2D0.
They show up correctly in the folder /dev/ but I don't know how to assign them to anything alsa-base.conf can use.
The first one that gets plugged in is always midi1 no matter where I plug it in. If I plug only one of them into the second usb port it will create midi1 and midi2. alsa-base.conf cannot seem to use the udev rules. It looks like something is assigning the soundcard numbers before or after udev.
Any ideas?
Ingo
More than udev it might be a modprobe thing. I have these rules in /etc/modprobe.d/alsa-base.conf :
options snd-emu10k1 index=0 options snd_intel8x0 index=1
...which make my Soundblaster card always be hw:0 and the motherboard sound card be hw:1.
Andras
That's what I was thinking, too. But it doesn't work like this. The devices I create with udev show up in /dev. But the devices used by /etc/modprobe.d/alsa-base.conf :
snd-emu10k1 snd_intel8x0
do not show up in /dev.
That means the sound device names are created somewhere else. Names that I create with udev in /dev seem to be ignored by modprobe.d/alsa-base.conf.
So the question is where are these sound card IDs generated and how could I create such an ID with udev?
Ingo
On Sun, Sep 4, 2011 at 14:33, Ingo ingo@miamiwave.com wrote: Has anybody had any success with udev?
I need to use oss and have tried to create a udev.rule to connect two identical usb midi interfaces and identify them by the usb port.
I ended up creating the devices in /dev/ and /dev/snd/ and named them /dev/midi1, /dev/midi2 and/or /dev/snd/midiC1D0, /dev/snd/C2D0.
They show up correctly in the folder /dev/ but I don't know how to assign them to anything alsa-base.conf can use.
The first one that gets plugged in is always midi1 no matter where I plug
it
in. If I plug only one of them into the second usb port it will create midi1 and midi2. alsa-base.conf cannot seem to use the udev rules. It looks like something is assigning the soundcard numbers before or after udev.
Any ideas?
Ingo
More than udev it might be a modprobe thing. I have these rules in /etc/modprobe.d/alsa-base.conf : options snd-emu10k1 index=0 options snd_intel8x0 index=1
...which make my Soundblaster card always be hw:0 and the motherboard sound card be hw:1.
Andras
Sorry, I haven't read your message completely and I thought it was a reiteration of Tim's original question. I think Tim will be alrite with the alsa-base.conf solution, but your problem is trickier.
Andras
2011/9/5 Ingo ingo@miamiwave.com
That's what I was thinking, too. But it doesn't work like this. The devices I create with udev show up in /dev. But the devices used by /etc/modprobe.d/alsa-base.conf :
snd-emu10k1 snd_intel8x0
do not show up in /dev.
That means the sound device names are created somewhere else. Names that I create with udev in /dev seem to be ignored by modprobe.d/alsa-base.conf.
So the question is where are these sound card IDs generated and how could I create such an ID with udev?
Ingo
On Sun, Sep 4, 2011 at 14:33, Ingo ingo@miamiwave.com wrote: Has anybody had any success with udev?
I need to use oss and have tried to create a udev.rule to connect two identical usb midi interfaces and identify them by the usb port.
I ended up creating the devices in /dev/ and /dev/snd/ and named them /dev/midi1, /dev/midi2 and/or /dev/snd/midiC1D0, /dev/snd/C2D0.
They show up correctly in the folder /dev/ but I don't know how to assign them to anything alsa-base.conf can use.
The first one that gets plugged in is always midi1 no matter where I plug
it
in. If I plug only one of them into the second usb port it will create midi1 and midi2. alsa-base.conf cannot seem to use the udev rules. It looks like something is assigning the soundcard numbers before or
after
udev.
Any ideas?
Ingo
More than udev it might be a modprobe thing. I have these rules in /etc/modprobe.d/alsa-base.conf :
options snd-emu10k1 index=0 options snd_intel8x0 index=1
...which make my Soundblaster card always be hw:0 and the motherboard
sound
card be hw:1.
Andras
Tim,
You may want to consider using jack, which will allow you to use the device names rather than IDs so long as you do not have multiple devices of the same type.
To get the names of the devices use cat /proc/asound/cards from the terminal. This will list all sound devices. In my case on this machine that command returns:
0 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xfccf4000 irq 16
1 [R15 ]: RME9652 - RME Digi9652 (Rev 1.5) RME Digi9652 (Rev 1.5) at 0xfd000000, irq 20
To address the RME card, I can use the alsa device hw:R15 in my jack startup.
Otherwise, you could probably achieve the same with a custom alsa device specifying the hardware in ~/.asoundrc to overide the default also device, but don't me ask me how...
-michael
On Sun, Sep 4, 2011 at 5:33 AM, tim vets timvets@gmail.com wrote:
How do I have pd select the correct sound card, regardless of what device numbering it gets from alsa? The problem is now that for some reason, the device listing of my sound cards and midi devices keeps changing quite often. After a reboot, it is often the case that pd tries to connect to the wrong alsa device, and I have to select it manually again. Anyone know a good trick to cope with this? Thanks Tim _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list