From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Cards PCI ids Date: Tue, 05 Nov 2002 18:29:48 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <1036423472.9417.75.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1036423472.9417.75.camel@localhost.localdomain> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Patrice Tisserand Cc: Free Ekanayaka , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At 04 Nov 2002 16:24:31 +0100, Patrice Tisserand wrote: > > On Mon, 2002-11-04 at 15:35, Free Ekanayaka wrote: > > > > Hi, > > I'd like to modify the discover library > > (http://hackers.progeny.com/discover) to use ALSA > > modules names instead of OSS ones when detecting sound devices. > > > > Is there a place where I can found a mapping like: > > > > soundcard PCI Id ---> ALSA module name > > > > ? > > > Hi, > I don't know where you can find a such mapping, but maybe you can > extract it from drivers source code. > As far as I know, each pci driver contains a pci_device_id array > initialize with VENDOR_ID and DEVICE_ID of supported pci device. > > For example, if you look into ens1370.c you will find: > static struct pci_device_id snd_audiopci_ids[] __devinitdata = { > #ifdef CHIP1370 > { 0x1274, 0x5000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* > ES1370 */ > #endif > #ifdef CHIP1371 > { 0x1274, 0x1371, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* > ES1371 */ > { 0x1274, 0x5880, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* > ES1373 - CT5880 */ > { 0x1102, 0x8938, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* > Ectiva EV1938 */ > #endif > { 0, } > }; > > I hope it will help you. or, you can check the file /lib/modules/VERSION/modules.pcimap, which holds the all entries for pci modules (although it's a bit cryptic :) Takashi ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en