From baa52f41b316708d50ad39912800718637f7cef2 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 3 Jul 2005 00:57:28 +0000 Subject: * tuner-core.c: - Reintroduced check for is_stereo pointer eliminated on previous cleanup. Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tuner-core.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'linux/drivers') 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 |= -- cgit v1.2.3