diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-15 20:54:28 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-15 20:54:28 +0000 |
commit | 6af0bfeb9383b433a11f526aa2d9de251d3f9d75 (patch) | |
tree | 4c95a2adc93803b6ea27d0684af2bf982f896bcb /vidix/drivers | |
parent | 7fd48f48333612ba7ad5b0c56e1ad27b0d3f6655 (diff) |
print version number, so we know if the user forgot to copy/install the driver
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5642 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/drivers')
-rw-r--r-- | vidix/drivers/mach64_vid.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vidix/drivers/mach64_vid.c b/vidix/drivers/mach64_vid.c index 5e49f8b860..1f48c129ae 100644 --- a/vidix/drivers/mach64_vid.c +++ b/vidix/drivers/mach64_vid.c @@ -20,6 +20,7 @@ #include "../../libdha/pci_names.h" #include "mach64.h" +#include "../../version.h" #define UNUSED(x) ((void)(x)) /**< Removes warning about unused arguments */ @@ -262,7 +263,10 @@ static int mach64_get_vert_stretch(void) int ret; int yres= mach64_get_yres(); - if(!supports_lcd_v_stretch) return 1<<16; + if(!supports_lcd_v_stretch){ + if(__verbose>0) printf("[mach64] vertical stretching not supported\n"); + return 1<<16; + } lcd_index= INREG(LCD_INDEX); @@ -442,6 +446,8 @@ int vixInit(void) printf("[mach64] Driver was not probed but is being initializing\n"); return EINTR; } + if(__verbose>0) printf("[mach64] version %s\n", VERSION); + if((mach64_mmio_base = map_phys_mem(pci_info.base2,0x4000))==(void *)-1) return ENOMEM; mach64_wait_for_idle(); mach64_ram_size = INREG(MEM_CNTL) & CTL_MEM_SIZEB; |