aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/msp3400.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>2005-06-24 01:05:07 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 03:06:39 -0400
commit56fc08ca375491b965cb76fad65bfb98973e80d8 (patch)
treed19bb1d6e1d139dda8989188fae49cf124f3aaac /drivers/media/video/msp3400.c
parentb45009b0288a96a3458f4f8e93cb776678d41875 (diff)
[PATCH] v4l: update for tuner cards and some V4L chips
Tuner improvements and additions. TEA5767 FM tuner added. Several small fixes. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Nickolay V Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/msp3400.c')
-rw-r--r--drivers/media/video/msp3400.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c
index 09464d624a6b..05b83faa9a02 100644
--- a/drivers/media/video/msp3400.c
+++ b/drivers/media/video/msp3400.c
@@ -147,6 +147,7 @@ static unsigned short normal_i2c[] = {
147 I2C_MSP3400C_ALT >> 1, 147 I2C_MSP3400C_ALT >> 1,
148 I2C_CLIENT_END 148 I2C_CLIENT_END
149}; 149};
150static unsigned short normal_i2c_range[] = {I2C_CLIENT_END,I2C_CLIENT_END};
150I2C_CLIENT_INSMOD; 151I2C_CLIENT_INSMOD;
151 152
152/* ----------------------------------------------------------------------- */ 153/* ----------------------------------------------------------------------- */
@@ -735,7 +736,6 @@ static int msp34xx_sleep(struct msp3400c *msp, int timeout)
735{ 736{
736 DECLARE_WAITQUEUE(wait, current); 737 DECLARE_WAITQUEUE(wait, current);
737 738
738again:
739 add_wait_queue(&msp->wq, &wait); 739 add_wait_queue(&msp->wq, &wait);
740 if (!kthread_should_stop()) { 740 if (!kthread_should_stop()) {
741 if (timeout < 0) { 741 if (timeout < 0) {
@@ -751,12 +751,9 @@ again:
751#endif 751#endif
752 } 752 }
753 } 753 }
754 754 if (current->flags & PF_FREEZE)
755 refrigerator(PF_FREEZE);
755 remove_wait_queue(&msp->wq, &wait); 756 remove_wait_queue(&msp->wq, &wait);
756
757 if (try_to_freeze(PF_FREEZE))
758 goto again;
759
760 return msp->restart; 757 return msp->restart;
761} 758}
762 759
@@ -1436,7 +1433,7 @@ static int msp_detach(struct i2c_client *client);
1436static int msp_probe(struct i2c_adapter *adap); 1433static int msp_probe(struct i2c_adapter *adap);
1437static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg); 1434static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg);
1438 1435
1439static int msp_suspend(struct device * dev, pm_message_t state, u32 level); 1436static int msp_suspend(struct device * dev, u32 state, u32 level);
1440static int msp_resume(struct device * dev, u32 level); 1437static int msp_resume(struct device * dev, u32 level);
1441 1438
1442static void msp_wake_thread(struct i2c_client *client); 1439static void msp_wake_thread(struct i2c_client *client);
@@ -1841,7 +1838,7 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
1841 return 0; 1838 return 0;
1842} 1839}
1843 1840
1844static int msp_suspend(struct device * dev, pm_message_t state, u32 level) 1841static int msp_suspend(struct device * dev, u32 state, u32 level)
1845{ 1842{
1846 struct i2c_client *c = container_of(dev, struct i2c_client, dev); 1843 struct i2c_client *c = container_of(dev, struct i2c_client, dev);
1847 1844