All of lore.kernel.org
 help / color / mirror / Atom feed
* aplay won't play on any second sound card
@ 2002-07-11  8:48 John Covici
  2002-07-12 15:02 ` Patrick Shirkey
  0 siblings, 1 reply; 5+ messages in thread
From: John Covici @ 2002-07-11  8:48 UTC (permalink / raw)
  To: alsa-devel

Using the rc2 aplay, it doesn't honor -c 1 at all, just plays on card
0.  I even changed the aliases around so what was card1 is now 0, but
aplay still only plays on card 0.

-- 
         John Covici
         covici@ccs.covici.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: aplay won't play on any second sound card
  2002-07-11  8:48 aplay won't play on any second sound card John Covici
@ 2002-07-12 15:02 ` Patrick Shirkey
  2002-07-12 18:56   ` autodetection at install Patrick Shirkey
  2002-07-12 19:00   ` Patrick Shirkey
  0 siblings, 2 replies; 5+ messages in thread
From: Patrick Shirkey @ 2002-07-12 15:02 UTC (permalink / raw)
  To: John Covici; +Cc: alsa-devel

John Covici wrote:
> Using the rc2 aplay, it doesn't honor -c 1 at all, just plays on card
> 0.  I even changed the aliases around so what was card1 is now 0, but
> aplay still only plays on card 0.
> 

aplay -D hw:0,0 --> card 0 device 0

aplay -D hw:1,0 --> card 1 device 0 etc...

-d is for duration of play.

-- 
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* autodetection at install
  2002-07-12 15:02 ` Patrick Shirkey
@ 2002-07-12 18:56   ` Patrick Shirkey
  2002-07-12 19:09     ` Paul Davis
  2002-07-12 19:00   ` Patrick Shirkey
  1 sibling, 1 reply; 5+ messages in thread
From: Patrick Shirkey @ 2002-07-12 18:56 UTC (permalink / raw)
  Cc: alsa-devel

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

I have a small perl script which I am working on. The idea is to autodetect
a card/s and create a modules.conf based on that either at configure or as
a seperate process.

Can anyone who is more fluent in perl give me a hint as to how I can 
compare the output of list_pci to list_modules and return the correct 
card name and module?

The script has two subs. They just parse the /proc/pci and the INSTALL 
file to get the current output. It has to be run from the alsa-driver dir.


-- 
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================

[-- Attachment #2: autocard --]
[-- Type: text/plain, Size: 1067 bytes --]



sub list_pci {

	open (FILE, "/proc/pci") 
	or die "Cannot open /proc/pci. \n Do you have permission to access this file?";
   
    for $linepci (<FILE>) {
	
	if ($linepci =~ /Multimedia audio controller/g) {
   	print $linepci;
	}
    }

#    close FILE;

}

sub list_modules {

	open (FILE, "INSTALL") 
	or die "Cannot open INSTALL. \n Do you have permission to access this file?";
   
    	for $linemodule (<FILE>) {

	if ($linemodule =~ /\.o$/) {
#		print  $linemodule;
		    	while (<>) {
				foreach $word ( split ) { 
	    				# do something with $word here
	   				print "$linemodule\n" ;
					} 
    				}  
#		print  $linemodule;

		}
    	}

#    close FILE;
}


# Output to shell

list_modules();

print "\n The modules for the following card/s can be found in the above.\n If your card is not listed below it means it is a PNP (very old)\n or USB card and this script cannot find it.\n\n The modules for ALSA USB support are: \n\n \tsnd-usb-audio\n \tsnd-usb-midi\n\n";

print " These are the cards found on your system:\n\n";
list_pci();
print "\n";


^ permalink raw reply	[flat|nested] 5+ messages in thread

* autodetection at install
  2002-07-12 15:02 ` Patrick Shirkey
  2002-07-12 18:56   ` autodetection at install Patrick Shirkey
@ 2002-07-12 19:00   ` Patrick Shirkey
  1 sibling, 0 replies; 5+ messages in thread
From: Patrick Shirkey @ 2002-07-12 19:00 UTC (permalink / raw)
  Cc: alsa-devel

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

Try that again. after saving this time :)

I have a small perl script which I am working on. The idea is to autodetect
a card/s and create a modules.conf based on that either at configure or as
a seperate process.

Can anyone who is more fluent in perl give me a hint as to how I can
compare the output of list_pci to list_modules and return the correct
card name and module?

The script has two subs. They just parse the /proc/pci and the INSTALL
file to get the current output. It has to be run from the alsa-driver dir.


-- 
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================


[-- Attachment #2: autocard --]
[-- Type: text/plain, Size: 901 bytes --]



sub list_pci {

	open (FILE, "/proc/pci") 
	or die "Cannot open /proc/pci. \n Do you have permission to access this file?";
   
    for $linepci (<FILE>) {
	
	if ($linepci =~ /Multimedia audio controller/g) {
   	print $linepci;
	}
    }

#    close FILE;

}

sub list_modules {

	open (FILE, "INSTALL") 
	or die "Cannot open INSTALL. \n Do you have permission to access this file?";
   
    	for $linemodule (<FILE>) {

		if ($linemodule =~ /\.o$/) {
			print  $linemodule;
		}
    	}

#    close FILE;
}


# Output to shell

list_modules();

print "\n The modules for the following card/s can be found in the above.\n If your card is not listed below it means it is a PNP (very old)\n or USB card and this script cannot find it.\n\n The modules for ALSA USB support are: \n\n \tsnd-usb-audio\n \tsnd-usb-midi\n\n";

print " These are the cards found on your system:\n\n";
list_pci();
print "\n";


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: autodetection at install
  2002-07-12 18:56   ` autodetection at install Patrick Shirkey
@ 2002-07-12 19:09     ` Paul Davis
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Davis @ 2002-07-12 19:09 UTC (permalink / raw)
  To: Patrick Shirkey; +Cc: alsa-devel

>I have a small perl script which I am working on. The idea is to autodetect
>a card/s and create a modules.conf based on that either at configure or as
>a seperate process.

IIRC, this has already been written, but its not up-to-date. its in
the alsa-conf CVS module.

--p


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-12 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-11  8:48 aplay won't play on any second sound card John Covici
2002-07-12 15:02 ` Patrick Shirkey
2002-07-12 18:56   ` autodetection at install Patrick Shirkey
2002-07-12 19:09     ` Paul Davis
2002-07-12 19:00   ` Patrick Shirkey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.