Skip to contentSkip to conversation

saa7134 empress: simultaneous capture

DISCUSSION Pete Eberlein 2 participants 2 messages Oct 27, 2008 – Oct 28, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

I'm working with a board that has a saa7134 chip with a go7007 mpeg encoder. I've modified the saa7134 driver to detect the board and load the saa7134 go7007 driver from GregKH's staging patch. I think this works similar to the saa7134 empress driver.

The raw video is on /dev/video0 and the mpeg compressed video is on /dev/video1. Video capture from each video device works fine individually, but when I try to capture from both devices simultaneously, the mpeg compressed stream goes blank (select timeout - as if there is no video signal.)

Can anyone tell me if simultaneous capture works for a saa7134 empress based board? Is there a reason I shouldn't expect this to work?

Thanks.

Signature · 9 lines
Pete Eberlein
Sensoray Co., Inc.
Email: [email protected]
http://www.sensoray.com

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#1 lore raw

Hi Pete

Quoted 5 lines

I'm working with a board that has a saa7134 chip with a go7007 mpeg encoder. I've modified the saa7134 driver to detect the board and load the saa7134 go7007 driver from GregKH's staging patch. I think this works similar to the saa7134 empress driver.

Quoted 8 lines

The raw video is on /dev/video0 and the mpeg compressed video is on /dev/video1. Video capture from each video device works fine individually, but when I try to capture from both devices simultaneously, the mpeg compressed stream goes blank (select timeout
- as if there is no video signal.)

Can anyone tell me if simultaneous capture works for a saa7134 empress based board? Is there a reason I shouldn't expect this to work?

Try start and save data from /dev/video1
cat /dev/video1 > test.dat

If data in the file test.dat consist 0x00 or 0x80 you have raw YUV channel data for /dev/video0. Check the file /linux/drivers/media/video/saa7134/saa7134-core.c

If you have this source. That's incorrect definition of IRQ.
/* TS capture -- dma 5 */
if (dev->ts_q.curr) {
ctrl |= SAA7134_MAIN_CTRL_TE5;
irq |= SAA7134_IRQ1_INTE_RA2_3 | SAA7134_IRQ1_INTE_RA2_2 |
SAA7134_IRQ1_INTE_RA2_1 | SAA7134_IRQ1_INTE_RA2_0;
}

SAA7134_IRQ1_INTE_RA2_3 and SAA7134_IRQ1_INTE_RA2_2 are used for planar video, not for TS.

Correct source

/* TS capture -- dma 5 */
if (dev->ts_q.curr) {
ctrl |= SAA7134_MAIN_CTRL_TE5;
irq |= SAA7134_IRQ1_INTE_RA2_1 |
SAA7134_IRQ1_INTE_RA2_0;
}

This patch submitted Tue Aug 26 18:47:10 2008 +0200 (2 months ago) changeset 8796 a86838411eb2

With my best regards, Dmitry.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list