V4L/DVB (8797): A simple state machine was added to saa7134_ts.
commit92c36147a7fdcead94f98c0a14f30d279653fa64
authorDmitry Belimov <d.belimov@gmail.com>
Tue, 26 Aug 2008 17:16:33 +0000 (26 14:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:55 +0000 (12 09:36 -0200)
tree450358d9eb4ce34ccdeb9a93392dc1fc333564bf
parent8809b9cc8658d27c17d4fc07811b0ebd3f74f20c
V4L/DVB (8797): A simple state machine was added to saa7134_ts.

A simple state machine was added to saa7134_ts. It has three states:

        SAA7134_TS_STOPPED
        SAA7134_TS_BUFF_DONE
        SAA7134_TS_STARTED

When buffer_setup is run we start the TS initialization: set SAA7134_TS_STOPPED.
When all buffers are prepared we write data into DMA register and set
SAA7134_TS_BUFF_DONE.
When the first buffer is active start TS and set SAA7134_TS_STARTED.
When ts_release is called stop TS and set SAA7134_TS_STOPPED.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7134/saa7134-ts.c
drivers/media/video/saa7134/saa7134.h