[MPlayer-dev-eng] vidix: problems with rivatv_lock_nv04()
Guillaume LECERF
foxcore at gmail.com
Sun Aug 5 15:43:54 CEST 2007
2007/8/5, Guillaume LECERF <foxcore at gmail.com>:
> So I tried to find some lock related code in others nvidia oss sources.
> I found a recurrent implementation (here from
> linux-2.6.22.1/drivers/video/riva/riva_hw.c) :
>
> static void vgaLockUnlock (RIVA_HW_INST *chip, int Lock)
> {
> U008 cr11;
> VGA_WR08(chip->PCIO, 0x3D4, 0x11);
> cr11 = VGA_RD08(chip->PCIO, 0x3D5);
> if(Lock) cr11 |= 0x80;
> else cr11 &= ~0x80;
> VGA_WR08(chip->PCIO, 0x3D5, cr11);
> }
> static void nv3LockUnlock (RIVA_HW_INST *chip, int Lock)
> {
> VGA_WR08(chip->PVIO, 0x3C4, 0x06);
> VGA_WR08(chip->PVIO, 0x3C5, Lock ? 0x99 : 0x57);
> vgaLockUnlock(chip, Lock);
> }
> static void nv4LockUnlock (RIVA_HW_INST *chip, int Lock)
> {
> VGA_WR08(chip->PCIO, 0x3D4, 0x1F);
> VGA_WR08(chip->PCIO, 0x3D5, Lock ? 0x99 : 0x57);
> vgaLockUnlock(chip, Lock);
> }
Here is the corresponding patch, but it doesn't change anything, still
the green window.
--
Guillaume LECERF
GeeXboX developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock_try2.diff
Type: text/x-patch
Size: 994 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070805/b1800725/attachment.bin>
More information about the MPlayer-dev-eng
mailing list