提交 51aefd73 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] saa7134: swap ts_init_encoder and ts_reset_encoder

This will make the next patch a bit easier to read.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 15e64f0d
...@@ -48,17 +48,7 @@ MODULE_PARM_DESC(debug,"enable debug messages"); ...@@ -48,17 +48,7 @@ MODULE_PARM_DESC(debug,"enable debug messages");
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
static void ts_reset_encoder(struct saa7134_dev* dev) static void ts_reset_encoder(struct saa7134_dev* dev);
{
if (!dev->empress_started)
return;
saa_writeb(SAA7134_SPECIAL_MODE, 0x00);
msleep(10);
saa_writeb(SAA7134_SPECIAL_MODE, 0x01);
msleep(100);
dev->empress_started = 0;
}
static int ts_init_encoder(struct saa7134_dev* dev) static int ts_init_encoder(struct saa7134_dev* dev)
{ {
...@@ -79,6 +69,18 @@ static int ts_init_encoder(struct saa7134_dev* dev) ...@@ -79,6 +69,18 @@ static int ts_init_encoder(struct saa7134_dev* dev)
return 0; return 0;
} }
static void ts_reset_encoder(struct saa7134_dev* dev)
{
if (!dev->empress_started)
return;
saa_writeb(SAA7134_SPECIAL_MODE, 0x00);
msleep(10);
saa_writeb(SAA7134_SPECIAL_MODE, 0x01);
msleep(100);
dev->empress_started = 0;
}
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
static int ts_open(struct file *file) static int ts_open(struct file *file)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册