Skip to content

Commit

Permalink
V4L/DVB (10924): saa7134: enable serial transport streaming interface
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent e894428 commit 90a4cc7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
15 changes: 13 additions & 2 deletions drivers/media/video/saa7134/saa7134-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,19 @@ static int buffer_activate(struct saa7134_dev *dev,
saa_writeb(SAA7134_TS_SERIAL1, 0x00);

/* Start TS stream */
saa_writeb(SAA7134_TS_SERIAL0, 0x40);
saa_writeb(SAA7134_TS_PARALLEL, 0xEC);
switch (saa7134_boards[dev->board].ts_type) {
case SAA7134_MPEG_TS_PARALLEL:
saa_writeb(SAA7134_TS_SERIAL0, 0x40);
saa_writeb(SAA7134_TS_PARALLEL, 0xec);
break;
case SAA7134_MPEG_TS_SERIAL:
saa_writeb(SAA7134_TS_SERIAL0, 0xd8);
saa_writeb(SAA7134_TS_PARALLEL, 0x6c);
saa_writeb(SAA7134_TS_PARALLEL_SERIAL, 0xbc);
saa_writeb(SAA7134_TS_SERIAL1, 0x02);
break;
}

dev->ts_state = SAA7134_TS_STARTED;
}

Expand Down
6 changes: 6 additions & 0 deletions drivers/media/video/saa7134/saa7134.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ enum saa7134_mpeg_type {
SAA7134_MPEG_DVB,
};

enum saa7134_mpeg_ts_type {
SAA7134_MPEG_TS_PARALLEL = 0,
SAA7134_MPEG_TS_SERIAL,
};

struct saa7134_board {
char *name;
unsigned int audio_clock;
Expand All @@ -334,6 +339,7 @@ struct saa7134_board {
/* peripheral I/O */
enum saa7134_video_out video_out;
enum saa7134_mpeg_type mpeg;
enum saa7134_mpeg_ts_type ts_type;
unsigned int vid_port_opts;
};

Expand Down

0 comments on commit 90a4cc7

Please sign in to comment.