diff options
author | Gerd Knorr <devnull@localhost> | 2004-07-23 01:06:12 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-07-23 01:06:12 +0000 |
commit | 2a3e3f58e72cc7698a97a1a9071cbc93854e19da (patch) | |
tree | 96af0024469e09b1b6acf81864040fc7e5b27822 /linux/drivers/media/video/cx88/cx88-tvaudio.c | |
parent | 0acaf65c34f98f42ed85fbd98aa34beaa542c6da (diff) | |
download | mediapointer-dvb-s2-2a3e3f58e72cc7698a97a1a9071cbc93854e19da.tar.gz mediapointer-dvb-s2-2a3e3f58e72cc7698a97a1a9071cbc93854e19da.tar.bz2 |
- add range check for cx88 card= insmod option.
- make cx88 tvaudio less verbose.
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-tvaudio.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index 0b9198ecb..06faebd3a 100644 --- a/linux/drivers/media/video/cx88/cx88-tvaudio.c +++ b/linux/drivers/media/video/cx88/cx88-tvaudio.c @@ -670,9 +670,12 @@ void cx88_get_stereo(struct cx8800_dev *dev, struct v4l2_tuner *t) reg = cx_read(AUD_STATUS); mode = reg & 0x03; pilot = (reg >> 2) & 0x03; - dprintk("AUD_STATUS: 0x%x [%s/%s] ctl=%s\n", - reg, m[mode], p[pilot], - aud_ctl_names[cx_read(AUD_CTL) & 63]); + + if (dev->astat != reg) + dprintk("AUD_STATUS: 0x%x [%s/%s] ctl=%s\n", + reg, m[mode], p[pilot], + aud_ctl_names[cx_read(AUD_CTL) & 63]); + dev->astat = reg; t->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_SAP | V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2; |