From: Holger Waechtler <holger@qanu.de>
To: Jaroslav Kysela <perex@suse.cz>
Cc: Gerd Knorr <kraxel@bytesex.org>, dvb list <linux-dvb@linuxtv.org>,
alsa-devel@lists.sourceforge.net
Subject: Re: [Alsa-devel] Problem with Avermedia 771
Date: Fri, 15 Oct 2004 13:58:11 +0200 [thread overview]
Message-ID: <416FBB53.5070104@qanu.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0410151254140.20968@pnote.perex-int.cz>
Jaroslav Kysela wrote:
>On Fri, 15 Oct 2004, Gerd Knorr wrote:
>
>
>
>>The list of DVB card ID's isn't that long at the moment (from bttv):
>>
>> // DVB cards (using pci function .1 for mpeg data xfer)
>> { 0x01010071, BTTV_NEBULA_DIGITV, "Nebula Electronics DigiTV" },
>> { 0x07611461, BTTV_AVDVBT_761, "AverMedia AverTV DVB-T" },
>> { 0x002611bd, BTTV_TWINHAN_DST, "Pinnacle PCTV SAT CI" },
>> { 0x00011822, BTTV_TWINHAN_DST, "Twinhan VisionPlus DVB-T" },
>> { 0xfc00270f, BTTV_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" },
>> { 0x07711461, BTTV_AVDVBT_771, "AVermedia DVB-T 771" },
>> { 0xdb1018ac, BTTV_DVICO_DVBT_LITE, "DVICO FusionHDTV DVB-T Lite" },
>> ^^^^ subsystem device
>> ^^^^ subsystem vendor
>>
>>The alsa driver could either blacklist those or use a whitelist. The
>>whitelist approach probably is more work, but would have the advantage
>>that the driver could also filter out analog tv cards where you don't
>>get any useful audio data out of the card. And there is at least one
>>DVB card which can't be identified by PCI Subsystem ID because it hasn't
>>one, the whitelist approach would catch that one as well.
>>
>>Comments?
>>
>>
>
>I think that the database should be on one central place.
>I suggest to create a simple function in a standalone module:
>
>#define BTTV_CAP_AUDIOISVIDEO (1<<0)
>
>unsigned int bttv_caps(struct pci_dev *bttv, char **name);
>
>It will simply check, if audio is real audio and return the real name for
>passed bttv card. Then we can call this function from our driver, too.
>
Please implement the whitelist approach as suggested by Gerd. It's will
always cause problems if drivers attach to cards that are not known
(whitelisted) to work. The whitelists can easily get updated by the
maintainers, a central database for all cards requires much more efforts.
On the long term it would make things easier if bttv, cx88 and
saa714x-drivers would not instanciate itself as PCI drivers but would
only provide the library functions to talk with the hardware. Then the
DVB/audio/TV-card-driver can implement the PCI attach function on their
own and are free to use i2c adresses showing up on the board, EEPROM
content etc to validate whitelisted cards, this would even work for the
cards without valid subsystem IDs.
Holger
next prev parent reply other threads:[~2004-10-15 11:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <416ED29A.7060200@qanu.de>
2004-10-15 10:11 ` Problem with Avermedia 771 Gerd Knorr
2004-10-15 11:03 ` Jaroslav Kysela
2004-10-15 11:58 ` Holger Waechtler [this message]
2004-10-18 13:01 ` Gerd Knorr
2004-10-18 14:50 ` Takashi Iwai
2004-10-19 16:13 ` Gerd Knorr
2004-10-20 13:06 ` Takashi Iwai
2004-10-20 13:17 ` Takashi Iwai
2004-10-20 15:02 ` Clemens Ladisch
2004-10-20 15:20 ` Takashi Iwai
2004-10-21 7:22 ` Clemens Ladisch
2004-10-21 8:59 ` [Alsa-devel] " Gerd Knorr
2004-10-21 10:05 ` Takashi Iwai
2004-10-21 10:18 ` Gerd Knorr
2004-10-21 10:38 ` Takashi Iwai
2004-10-21 11:43 ` Gerd Knorr
2004-10-21 12:11 ` Takashi Iwai
2004-10-21 16:36 ` Takashi Iwai
2004-10-25 9:36 ` Clemens Ladisch
2004-10-20 15:27 ` Gerd Knorr
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=416FBB53.5070104@qanu.de \
--to=holger@qanu.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=kraxel@bytesex.org \
--cc=linux-dvb@linuxtv.org \
--cc=perex@suse.cz \
/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 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.