summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 42fd26107..7773cd91b 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -4491,21 +4491,17 @@ static int std_callback(struct saa7146_dev* dev, struct saa7146_standard *std)
{
av7110_t *av7110 = (av7110_t*)dev->ext_priv;
printk("std_callback\n");
- switch( std->id ) {
- case V4L2_STD_PAL: {
- av7110->vidmode = VIDEO_MODE_PAL;
- SetMode(av7110, av7110->vidmode);
- break;
- }
- case V4L2_STD_NTSC: {
- av7110->vidmode = VIDEO_MODE_NTSC;
- SetMode(av7110, av7110->vidmode);
- break;
- }
- default: {
- return -1;
- }
+ if (std->id == V4L2_STD_PAL) {
+ av7110->vidmode = VIDEO_MODE_PAL;
+ SetMode(av7110, av7110->vidmode);
+ }
+ else if (std->id == V4L2_STD_NTSC) {
+ av7110->vidmode = VIDEO_MODE_NTSC;
+ SetMode(av7110, av7110->vidmode);
}
+ else
+ return -1;
+
return 0;
}