Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice Tisserand <Patrice.Tisserand@ircam.fr>
To: Free Ekanayaka <free@centrotemporeale.it>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Cards PCI ids
Date: 04 Nov 2002 16:24:31 +0100	[thread overview]
Message-ID: <1036423472.9417.75.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.44.0211041430060.1776-100000@localhost>

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.

Best regards
-- 
Patrice Tisserand --- email:mailto:Patrice.Tisserand@ircam.fr
IRCAM 1 place Stravinsky 75004 Paris FRANCE




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com

  reply	other threads:[~2002-11-04 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-03 20:49 Audigy and ac3-passthrough not working Pasi Kärkkäinen
2002-11-04  9:18 ` Takashi Iwai
2002-11-04 14:35   ` Cards PCI ids Free Ekanayaka
2002-11-04 15:24     ` Patrice Tisserand [this message]
2002-11-05 17:29       ` Takashi Iwai
2002-11-06 11:27         ` Free Ekanayaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1036423472.9417.75.camel@localhost.localdomain \
    --to=patrice.tisserand@ircam.fr \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=free@centrotemporeale.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox