[MPlayer-dev-eng] [PATCH] detection for Zoran cards

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Jan 4 13:40:09 CET 2005


Hi,
On Mon, Jan 03, 2005 at 08:57:08PM +0100, Dominik 'Rathann' Mierzejewski wrote:
> On Monday, 03 January 2005 at 15:36, Reimar Döffinger wrote:
> > I was told on IRC that the following patch was needed for some people. My guess
> > is it's for kernels with PCI device name database.
> 
> You mean "without". ^_^

Right.

> > Any comments?
> 
> Yes, while we're at it, we shouldn't use /proc/pci, because it's
> deprecated. Parsing lspci output instead is portable across different
> Linux kernels.

How about this one then? Will this work everywhere (is lspci always in
sbin?)

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.948
diff -u -r1.948 configure
--- configure	30 Dec 2004 12:11:32 -0000	1.948
+++ configure	4 Jan 2005 12:39:57 -0000
@@ -5825,7 +5825,7 @@
 if test "$_zr" = auto ; then
   #36067's seem to identify themselves as 36057PQC's, so the line 
   #below should work for 36067's and 36057's. 
-  if grep -e "Multimedia video controller: Zoran Corporation ZR36057" /proc/pci > /dev/null 2>&1; then
+  if test -n "`/sbin/lspci -d 11de:6057`"; then
     _zr=yes 
   else
     _zr=no


More information about the MPlayer-dev-eng mailing list