diff options
author | Hartmut Hackmann <hartmut.hackmann@t-online.de> | 2006-10-07 00:45:23 +0200 |
---|---|---|
committer | Hartmut Hackmann <hartmut.hackmann@t-online.de> | 2006-10-07 00:45:23 +0200 |
commit | be718c2ee751899a991924e3fa346b293d170688 (patch) | |
tree | 338a58e88cabd05b1a2d210ee94ed8268eb9bb89 /linux/drivers/media/video | |
parent | ee3ab795a7d66be05f847ccc7ac80a6810ac5ff8 (diff) | |
download | mediapointer-dvb-s2-be718c2ee751899a991924e3fa346b293d170688.tar.gz mediapointer-dvb-s2-be718c2ee751899a991924e3fa346b293d170688.tar.bz2 |
Support status readout for saa713x based FM radio
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
This patch adds readout for stereo and signal level for
saa713x cards which use the saa713x as FM demodulator.
These are many cards based on saa7133, tda8290 and tda8275a.
FM channel search should work now.
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-video.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c index ca42682f9..8f456a439 100644 --- a/linux/drivers/media/video/saa7134/saa7134-video.c +++ b/linux/drivers/media/video/saa7134/saa7134-video.c @@ -2256,7 +2256,11 @@ static int radio_do_ioctl(struct inode *inode, struct file *file, t->type = V4L2_TUNER_RADIO; saa7134_i2c_call_clients(dev, VIDIOC_G_TUNER, t); - + if (dev->input->amux == TV) { + t->signal = 0xf800 - ((saa_readb(0x581) & 0x1f) << 11); + t->rxsubchans = (saa_readb(0x529) & 0x08) ? + V4L2_TUNER_SUB_STEREO : V4L2_TUNER_SUB_MONO; + } return 0; } case VIDIOC_S_TUNER: |