Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
57 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 57

more...
Support us!
Recent OS4 Files
OS4Depot.net





TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 17:23
Posts: 535
Time for a little AmiTV update. :)

First, the good news....

I have CX2388x drivers kinda working! That is I've got a stable picture, animating at 50fps on my workbench. I've tried it with a C64 and a Tom and Jerry CED (kinda like a cross between a DVD and an LP), and both look perfect. Only got a PAL source working so far but as that's the more difficult one to get working I'm chuffed.

Now the bad news....

You don't want to know how I'm getting the 50fps! I'll tell you anyway, though!

The CX2388x raises an interrupt when told to in its RISC program. I'm doing a busy main loop, and then rendering to the window whenever the interrupt flag is set. Of course this is rather slow and kind of destroys the point of interrupts. However...
I can't get the Amiga to call the interrupt routine! This worked on the Bt8x8 card (too well, it crashed the system most of the time!). I'm doing the usual stuff...

PCIDevice->MapInterrupt();
(create the interrupt structure)
IExec->AddIntServer()

but even though the CX2388x card is clearly raising the interrupt (I'm testing the interrupt flag and clearing it and getting the correct 50fps) my interrupt handler is never being called. Anyone got any ideas? The interrupt number is 26, the CX2388x uses interrupt pin A#. I think IRQ for A# in the UBoot screen is set to default (9 I think?) does that make a difference? All interrupts set to Level triggering in UBoot.

OK, that's part 1. It's annoying, perhaps not a showstopper as long as you don't want to do anything else while the TV is running. Here's part 2....

I can only get a small window! As soon as I use a reasonable sized window, say more than about 3/5 of the full resolution (768x576), the signal loses data - it looks like there's a bottleneck in the system somewhere and the FIFO buffers are full and overflowing. It's not consistent though, just some lines have pixels missing.
Can the DMA of the A1 (XE in this case) really be so slow that the TV card is waiting to DMA to the Amiga RAM and overflowing? Because of the data loss occasionally the card loses its sync and the RISC program stops and needs to be restarted. No good really. It's the only thing I can think of, though, that could be causing it to happen. A small display (say 320x256) works perfectly with no data loss.

I wonder if I could just increase the FIFO buffers... hmm... might work...
Just how slow is DMA on the A1? Bear in mind I'm trying to pump a 768x576x32 signal across the bus at 50fps. Still no overlay code remember.

Oh, yeah... does anyone here have a CX2388x-based card to test this? I'm using the latest WinTV PVR card (HVR-1300 or something) - the CX23882 is used in a lot of modern TV cards.

_________________
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
   Report Go to top

Re: TV card drivers part 2... the return!!!
Just popping in
Joined:
2006/11/23 21:49
From Budapest / Hungary
Posts: 97
Just doing a fast calculation: 768x576x3x50 -> 66Mb/sec
Lot's of data. Why 32bit? Isn't it possible to send 16bit or less (maybe 12bit) ?

   Report Go to top

Re: TV card drivers part 2... the return!!!
Amigans Defender
Joined:
2006/11/18 10:33
From Flinders NSW Australia
Posts: 772
is the pixelview bt878 going to work without crashing my A1 yet ?
am looking forward to being able to use my tv card

_________________
Amiga is the heart and soul of computing nothing else comes close
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 17:23
Posts: 535
Yes, it is possible... and something else on my list to try... the reason I've not done so yet is because I had a similar problem on the Bt8x8 version and changing to 16 bit made little difference, from what I recall, and was hassle because of ARGB formats and endianness and stuff.

The fact that the TV card defaults to 32-bit also suggests a modern machine should be able to cope....

_________________
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 17:23
Posts: 535
Quote:

poweramiga wrote:
is the pixelview bt878 going to work without crashing my A1 yet ?
am looking forward to being able to use my tv card


I can't get the Bt8x8 working with interrupts without locking the machine solid. So at best - until I have overlay drivers - you'll have a very slow Amiga while it's running. I've not tested it but I may be able to use the same system as I'm using on the CX2388x version, i.e. a busy loop checking for the interrupt but not raising said interrupt in the interrupt chain. It might work, but will always be sloooow. It suffered often from the same bandwidth issues, too.

Roll on overlay drivers...

_________________
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
   Report Go to top

Re: TV card drivers part 2... the return!!!
Not too shy to talk
Joined:
2006/11/27 18:02
From Somerset, UK
Posts: 353
Could you post a link to the card you are using.
If its reasonably priced i could by one and help try it out for you.

_________________
A1XE, A1200T, X1000 & X5000
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 17:23
Posts: 535
This is what I got:

Card Specs

(you can get it from other places of course)

You could get a cheaper version without all the widgetry of course, at the moment I've only got as far as the CX23882 chip, partly as it's most important, and partly as it's the only chip on the card I have the datasheet for!

I wouldn't recommend going much out of pocket though as I don't know when or even if I'll ever get a fully working TV app - kinda busy most days, but hoping to get something released over xmas/new year!


Edited by afxgroup on 2006/12/21 19:30:32
_________________
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
   Report Go to top

Re: TV card drivers part 2... the return!!!
Just popping in
Joined:
2006/12/3 17:22
Posts: 9
I calculated a value of 768*576*32*50/8 = 88,5 MByte/s

this is too much data for a 33MHz clocked bus.

320*200*32*50/8 = 12,8MByte maybe this is why small resolutions do work.

   Report Go to top

Re: TV card drivers part 2... the return!!!
Home away from home
Joined:
2006/11/26 21:45
From a story that hasn't been written yet
Posts: 3456
@Spirantho

I hope you'll get it to work, this is the last thing i'd
need to make my AOne perfect (together with a Catweasel)

Wish you best of luck, keep us updated, please

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr.
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 14:35
From Nantes, France
Posts: 863
@Spirantho

Keep faith and the development going because if...No *when* you manage to make it work, suddenly you had reopened the multimedia way for the Amiga : PVR, video processing etc.

_________________
Back to a quiet home... At last
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 17:23
Posts: 535
Quote:

abalaban wrote:
@Spirantho

Keep faith and the development going because if...No *when* you manage to make it work, suddenly you had reopened the multimedia way for the Amiga : PVR, video processing etc.


Unfortunately it's not a matter of faith, it's a matter of possibility.

I can only work on chips for which I have the datasheets. While I do have the datasheet for the CX23882 chip, I don't have the necessary sheets for the other chips (this card has a hardware MPEG encoder and a hardware MPEG decoder).. If I can't get hold of the datasheets, then there's no way I can get it to work!

OTOH, if I do get hold of it we should be able to have the full hardware MPEG en/decoder PVR functionality!

_________________
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
   Report Go to top

Re: TV card drivers part 2... the return!!!
Just popping in
Joined:
2006/11/23 21:49
From Budapest / Hungary
Posts: 97
Quote:
OTOH, if I do get hold of it we should be able to have the full hardware MPEG en/decoder PVR functionality!


In that case, you will not need that huge amount of data moving through the PCI bus.

_________________
A1-XE/G4@933+Radeon7500/64MB, A1200BPPC+BVision
AmigaOS4 on both of course.
   Report Go to top

Re: TV card drivers part 2... the return!!!
Amigans Defender
Joined:
2006/11/26 23:16
From Canada
Posts: 985
Note that there have been some changes to the Exec API as a result of the new memory system. Perhaps some of your problems will "go away" once you have the next OS4 release installed and you've updated your driver.

If you don't want to wait, contact Hyperion and see if you can be added as a 3rd party developer to get early access.

_________________
ExecSG Team Lead
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/27 17:23
Posts: 535
Quote:

ssolie wrote:
If you don't want to wait, contact Hyperion and see if you can be added as a 3rd party developer to get early access.


Possible, but I doubt it.. I'm not really doing much with all that, and I doubt the interrupt handling has changed much.

I've emailed Rogue about getting access to such things, but he's not replied. He is rather on the busy side, though!

_________________
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
   Report Go to top

Re: TV card drivers part 2... the return!!!
Amigans Defender
Joined:
2006/12/2 13:27
From Taranto, Italy
Posts: 916
however you should try with a standard TV resolution first of all and wait for the overlay that can the hard work for you

   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/24 17:14
Posts: 624
Quote:

Spirantho wrote:
I've emailed Rogue about getting access to such things, but he's not replied. He is rather on the busy side, though!


I'm sorry about that, but as you said, I am rather busy. What's even worse is that for things like that the management needs to be involved, the lawyer needs to send an NDA, stuff like that... and that will take even longer.

I'll try to do something about it after Christmas. Things should be a bit more quiet then.

_________________
Seriously, if you do want to contact me write me a mail. You're more likely to get a reply then.
   Report Go to top

Re: TV card drivers part 2... the return!!!
Quite a regular
Joined:
2006/11/25 13:38
From Adelaide South Australia
Posts: 619
@rogue

"Things should be a bit more quiet then."

OMG, ...... you reminded me, it's my anniversary on the
10 Jan!-:)

Thanks

ace

   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project