Le Thu, 05 Oct 2006 19:27:16 -0400, Lee Revell <[EMAIL PROTECTED]> a écrit :
> On Thu, 2006-10-05 at 16:19 -0700, Bill Unruh wrote: > > On Thu, 5 Oct 2006, Lee Revell wrote: > > > > > On Thu, 2006-10-05 at 14:33 -0700, Bill Unruh wrote: > > >> On Thu, 5 Oct 2006, Lee Revell wrote: > > >> > > >>> On Thu, 2006-10-05 at 20:42 +0200, Dominique Michel wrote: > > >>>> It can be the case if you have an USB sound card as a webcam. The > > >>>> snd_usb_audio will be loaded by hotplug before at alsasound load the > > >>>> alsa > > >>>> modules, and the regular sound card will be the second sound card. > > >>>> > > >>>> If it is the case, you have to add > > >>>> "snd-usb-audio" (without the double quotes) in /etc/udev/blacklist and > > >>>> alsasound > > >>>> will work as expected. > > >>>> > > >>>> If it not solve the problem, what is the output of > > >>>> > > >>>> lsmod|grep snd > > >>>> > > >>> > > >>> Blacklisting snd-usb-audio would be a pretty heavy handed approach. > > >>> Applications should not rely on any specific card ordering. > > >> > > >> And people should not speed on the highways. > > >> > > > > > > But what if people actually have USB audio devices? There must be a > > > better way... > > > > > > > Yes, it is a problem with Linux that one cannot specify the order in which > > Linux specifies things like soundcards, disk drives, ethernet cards,.... > > It tends to depend on the random events during bootup. > > > > This is not a problem with Linux. ALSA supports addressing devices by > name. Applications that rely on a specific card order are broken. > > Fix the apps, problem solved. > > Lee > > But my cables cannot switch without at I take a hand-light, go under the table and switch the cables by hand. I say that because many apps are not fixed, or can work with different ways. With the default option, or without option, most of the audio programs will use the first sound card they will find in the system and just don't care about the name of the device. If the first sound card is a webcam, they will use it. Even alsamixer will do that: -c <card number or identification> Select the soundcard to use, if you have more than one. Cards are numbered from 0 (the default). We have to be practical. And it is so many options in a system at it is much more easier and faster to define the order of the sound cards in /etc/modules.d/alsa once for all and just use this order, even if it implies to have to blacklist the sound modules that will load before at alsasound load them. Dominique -- Dominique Michel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user