Hello Clemens,

I understand, that 'pcm.!default()' overwrites default settings of default
device, but why not? Or philosophy goes as: create new device and connect
programs over their Alsa settings?
But than, a lot of programs don't even have Alsa settings. YOu cant change
sound devices, or anything for that matter.

I'd accept this way if programs could be confugred with ALSA over
environmental variable, but as you said yourself earlier, feature is pretty
much undocumented.

On Mon, May 4, 2015 at 10:29 AM, Legreg Accounts <legreg.accou...@gmail.com>
wrote:

> Hello,
>
> I guess this is a newbie question, but I have searched and tried several
> things without result (maybe because I misunderstood something).
>
> My problem is that :
> I have an usb sound that I want to use by default.
> Which means I also have other sound cards...
>
> My ~/.asoundrc is as follow:
> pcm.!default {
>         type plug
>         slave.pcm {
>                 type hw
>                 card 0
>                 device 0
>         }
> }
>
> But, sometimes, the device order is modified, which I can confirm with
> "aplay -l".
>
> I have tried methods here without result:
> http://alsa.opensrc.org/MultipleCards#The_older_.22index.3D.22_method
>
>
> Then I just tried to define the index to 0 in
> my /etc/modprobe.d/alsa-base.conf, but it doesn't seem to change anything...
>
> # autoloader aliases
> install sound-slot-0 /sbin/modprobe snd-card-0
> install sound-slot-1 /sbin/modprobe snd-card-1
> install sound-slot-2 /sbin/modprobe snd-card-2
> install sound-slot-3 /sbin/modprobe snd-card-3
> install sound-slot-4 /sbin/modprobe snd-card-4
> install sound-slot-5 /sbin/modprobe snd-card-5
> install sound-slot-6 /sbin/modprobe snd-card-6
> install sound-slot-7 /sbin/modprobe snd-card-7
> # Cause optional modules to be loaded above generic modules
> install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe
> --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
> install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && {
> /sbin/modprobe --quiet snd-seq-midi ; : ; }
> install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && {
> /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
> # Keep snd-pcsp from beeing loaded as first soundcard
> #options snd-pcsp index=1
> # Keep snd-usb-audio from beeing loaded as first soundcard
> options snd-usb-audio index=0
> # Prevent abnormal drivers from grabbing index 0
> options bt87x index=-2
> options cx88_alsa index=-2
> options snd-atiixp-modem index=-2
> options snd-intel8x0m index=-2
> options snd-via82xx-modem index=-2
>
>
> Do you an idea of what the problem could be?
>
> Thanks in advance (and sorry for my English)...
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to