version 1.2, 2000/12/12 02:09:10
|
version 1.3, 2001/01/22 05:01:52
|
Line 383 int Prepare(struct cvdv_cards *card)
|
Line 383 int Prepare(struct cvdv_cards *card)
|
// Set up the Video Decoder as we have the stream information |
// Set up the Video Decoder as we have the stream information |
if ((!card->FrameBuffersAllocated) |
if ((!card->FrameBuffersAllocated) |
&& (card->ChannelBuffersAllocated) && (card->stream.sh.valid)) { |
&& (card->ChannelBuffersAllocated) && (card->stream.sh.valid)) { |
//printk(KERN_DEBUG LOGNAME ": Setup Decoder %d\n",channel); |
|
// Automatic PAL/NTSC-switch according to MPEG-Source |
// Automatic PAL/NTSC-switch according to MPEG-Source |
h = card->stream.vsize; |
h = card->stream.vsize; |
if (h < 480) |
if (h < 480) |
Line 408 int Prepare(struct cvdv_cards *card)
|
Line 407 int Prepare(struct cvdv_cards *card)
|
CloseCard(card); |
CloseCard(card); |
return -ENODEV; // picture too big or insufficient memory |
return -ENODEV; // picture too big or insufficient memory |
} |
} |
|
printk(KERN_DEBUG LOGNAME ": Ready to go\n"); |
card->startingV = 1; // tell the card to start playing as soon as ES-buffers are sufficiently full |
card->startingV = 1; // tell the card to start playing as soon as ES-buffers are sufficiently full |
card->startingA = 1; // tell the card to start playing as soon as ES-buffers are sufficiently full |
card->startingA = 1; // tell the card to start playing as soon as ES-buffers are sufficiently full |
} |
} |
Line 892 static int PSopen(struct inode *inode, s
|
Line 892 static int PSopen(struct inode *inode, s
|
if (card != NULL) { |
if (card != NULL) { |
printk(KERN_DEBUG LOGNAME ": -- PSopen %d\n",channel); |
printk(KERN_DEBUG LOGNAME ": -- PSopen %d\n",channel); |
CloseCard(card); |
CloseCard(card); |
DecoderStreamReset(card); |
|
DecoderSetupReset(card); |
|
if (card->open[channel]) |
if (card->open[channel]) |
printk(KERN_DEBUG LOGNAME |
printk(KERN_DEBUG LOGNAME |
": PSopen - already open: channel %d\n", |
": PSopen - already open: channel %d\n", |