summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-07-03 00:57:28 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-07-03 00:57:28 +0000
commitbaa52f41b316708d50ad39912800718637f7cef2 (patch)
tree255673d508a3256cf1a106f2fbe04ddc53c791ae /linux/drivers
parent78badebc2e534316f98cafe175f2e4f2096e79fa (diff)
downloadmediapointer-dvb-s2-baa52f41b316708d50ad39912800718637f7cef2.tar.gz
mediapointer-dvb-s2-baa52f41b316708d50ad39912800718637f7cef2.tar.bz2
* tuner-core.c:
- Reintroduced check for is_stereo pointer eliminated on previous cleanup. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-core.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 3d14c424a..cccddaeef 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-core.c,v 1.45 2005/07/03 00:22:14 nsh Exp $
+ * $Id: tuner-core.c,v 1.46 2005/07/03 00:57:28 mchehab Exp $
*
* i2c tv tuner chip device driver
* core core, i.e. kernel interfaces, registering and so on
@@ -602,13 +602,15 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
if (t->has_signal)
tuner->signal = t->has_signal(client);
- if (t->is_stereo(client)) {
- tuner->rxsubchans =
- V4L2_TUNER_SUB_STEREO |
- V4L2_TUNER_SUB_MONO;
- } else {
- tuner->rxsubchans =
- V4L2_TUNER_SUB_MONO;
+ if (t->is_stereo) {
+ if (t->is_stereo(client)) {
+ tuner->rxsubchans =
+ V4L2_TUNER_SUB_STEREO |
+ V4L2_TUNER_SUB_MONO;
+ } else {
+ tuner->rxsubchans =
+ V4L2_TUNER_SUB_MONO;
+ }
}
tuner->capability |=