Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
88 user(s) are online (85 user(s) are browsing Forums)

Members: 0
Guests: 88

more...

Support us!

Headlines

 
  Register To Post  

TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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!
Go to top
Re: TV card drivers part 2... the return!!!
Just popping in
Just popping in


See User information
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) ?

Go to top
Re: TV card drivers part 2... the return!!!
Amigans Defender
Amigans Defender


See User information
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
Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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!
Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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!
Go to top
Re: TV card drivers part 2... the return!!!
Not too shy to talk
Not too shy to talk


See User information
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, X5020, CDTV, CD32 , A500+ A500
OS4.1b / OS3.2b
Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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!
Go to top
Re: TV card drivers part 2... the return!!!
Just popping in
Just popping in


See User information
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.

Go to top
Re: TV card drivers part 2... the return!!!
Home away from home
Home away from home


See User information
@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

Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
@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
Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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!
Go to top
Re: TV card drivers part 2... the return!!!
Just popping in
Just popping in


See User information
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.
Go to top
Re: TV card drivers part 2... the return!!!
Amigans Defender
Amigans Defender


See User information
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
Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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!
Go to top
Re: TV card drivers part 2... the return!!!
Amigans Defender
Amigans Defender


See User information
however you should try with a standard TV resolution first of all and wait for the overlay that can the hard work for you

Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
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.
Go to top
Re: TV card drivers part 2... the return!!!
Quite a regular
Quite a regular


See User information
@rogue

"Things should be a bit more quiet then."

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

Thanks

ace

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project