diff options
author | Michael Krufky <devnull@localhost> | 2005-09-01 21:29:58 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-09-01 21:29:58 +0000 |
commit | 2ed64b9da92cc89925b7bc68127ea3cbf9783e22 (patch) | |
tree | 5254881ba49689234ef36edc0c935f626d38bc62 /linux/drivers/media | |
parent | 8c6d6e7f2528bf9406e998b23c530423476d4163 (diff) | |
download | mediapointer-dvb-s2-2ed64b9da92cc89925b7bc68127ea3cbf9783e22.tar.gz mediapointer-dvb-s2-2ed64b9da92cc89925b7bc68127ea3cbf9783e22.tar.bz2 |
* tda9887.c: (tda9887_fixup_std):
* tuner-core.c: (tuner_fixup_std):
- print warning if pal= or secam= argument is unrecognized
Signed-off-by: Philip Rowlands <phr@doc.ic.ac.uk>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/tda9887.c | 13 | ||||
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 14 |
2 files changed, 26 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tda9887.c b/linux/drivers/media/video/tda9887.c index 30859372d..2850bc956 100644 --- a/linux/drivers/media/video/tda9887.c +++ b/linux/drivers/media/video/tda9887.c @@ -32,6 +32,7 @@ TDA9887 (world), TDA9885 (USA) Note: OP2 of tda988x must be set to 1, else MT2032 is disabled! - KNC One TV-Station RDS (saa7134) + - Hauppauge PVR-150/500 (possibly more) */ @@ -531,6 +532,12 @@ static int tda9887_fixup_std(struct tda9887 *t) dprintk(PREFIX "insmod fixup: PAL => PAL-DK\n"); t->std = V4L2_STD_PAL_DK; break; + case '-': + /* default parameter, do nothing */ + break; + default: + printk(PREFIX "pal= argument not recognised\n"); + break; } } if ((t->std & V4L2_STD_SECAM) == V4L2_STD_SECAM) { @@ -547,6 +554,12 @@ static int tda9887_fixup_std(struct tda9887 *t) dprintk(PREFIX "insmod fixup: SECAM => SECAM-L\n"); t->std = V4L2_STD_SECAM_L; break; + case '-': + /* default parameter, do nothing */ + break; + default: + printk(PREFIX "secam= argument not recognised\n"); + break; } } return 0; diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 1024086b6..126b67c05 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.68 2005/08/18 02:06:25 mkrufky Exp $ + * $Id: tuner-core.c,v 1.69 2005/09/01 21:29:58 mkrufky Exp $ * * i2c tv tuner chip device driver * core core, i.e. kernel interfaces, registering and so on @@ -292,6 +292,12 @@ static int tuner_fixup_std(struct tuner *t) tuner_dbg ("insmod fixup: PAL => PAL-N\n"); t->std = V4L2_STD_PAL_N; break; + case '-': + /* default parameter, do nothing */ + break; + default: + tuner_warn ("pal= argument not recognised\n"); + break; } } if ((t->std & V4L2_STD_SECAM) == V4L2_STD_SECAM) { @@ -308,6 +314,12 @@ static int tuner_fixup_std(struct tuner *t) tuner_dbg ("insmod fixup: SECAM => SECAM-L\n"); t->std = V4L2_STD_SECAM_L; break; + case '-': + /* default parameter, do nothing */ + break; + default: + tuner_warn ("secam= argument not recognised\n"); + break; } } |