Skip to content

Commit

Permalink
[PATCH] v4l: 803: after msp34xxg reset msp wake thread should be called
Browse files Browse the repository at this point in the history
- After msp34xxg_reset, msp_wake_thread should be called to
	wake again.

Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Mauro Carvalho Chehab authored and Linus Torvalds committed Nov 9, 2005
1 parent 02f7427 commit 4c0772a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions drivers/media/video/msp3400.c
Original file line number Diff line number Diff line change
Expand Up @@ -1788,10 +1788,9 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
dprintk("msp34xx: AUDC_SET_RADIO\n");
msp->norm = VIDEO_MODE_RADIO;
dprintk("msp34xx: switching to radio mode\n");
if (IS_MSP34XX_G(msp)) {
if (IS_MSP34XX_G(msp))
msp34xxg_reset(client);
break;
}

msp->watch_stereo = 0;
switch (msp->opmode) {
case OPMODE_MANUAL:
Expand Down Expand Up @@ -1906,10 +1905,9 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)

dprintk("msp34xx: VIDIOCSCHAN (norm=%d)\n",vc->norm);
msp->norm = vc->norm;
if (IS_MSP34XX_G(msp)) {
if (IS_MSP34XX_G(msp))
msp34xxg_reset(client);
break;
}

msp_wake_thread(client);
break;
}
Expand All @@ -1919,10 +1917,9 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
{
/* new channel -- kick audio carrier scan */
dprintk("msp34xx: VIDIOCSFREQ\n");
if (IS_MSP34XX_G(msp)) {
if (IS_MSP34XX_G(msp))
msp34xxg_reset(client);
break;
}

msp_wake_thread(client);
break;
}
Expand Down

0 comments on commit 4c0772a

Please sign in to comment.