From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Knorr Subject: Re: [Alsa-devel] Problem with Avermedia 771 Date: Thu, 21 Oct 2004 10:59:08 +0200 Sender: linux-dvb-bounce@linuxtv.org Message-ID: <20041021085908.GC32566@bytesex> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Errors-to: linux-dvb-bounce@linuxtv.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: To: Clemens Ladisch Cc: Takashi Iwai , Gerd Knorr , Jaroslav Kysela , Holger Waechtler , dvb list , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org > A centralized card list looks more advantageous now ... Hmm, along these lines maybe? Gerd ==============================[ cut here ]============================== enum bt878_func1 { BT878_FUNC1_IS_UNKNOWN = 0, BT878_FUNC1_IS_AUDIO, BT878_FUNC1_IS_DVB, BT878_FUNC1_IS_OTHER, }; struct bt878_entry { u16 subvendor; u16 subdevice; char *name; enum bt878_func1 func1; /* what PCI function 1 is used for? */ int bttv_id; /* for bttv, index into bttv_tvcards[] */ int audio_rate; /* for alsa/btaudio, sample rate */ }; const struct bt878_entry* bt878_db_lookup(struct pci_dev *pci);