summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorHans Verkuil <devnull@localhost>2005-12-28 14:41:30 +0000
committerHans Verkuil <devnull@localhost>2005-12-28 14:41:30 +0000
commit0fc51e8bf17914511d3610f5c2c1ad7644c54863 (patch)
tree76e42d80f873deaff793c7a1cb458c0dd1eff665 /linux/drivers/media/video
parent3903e5e84502de31dfacdf513c6ca866358ffded (diff)
downloadmediapointer-dvb-s2-0fc51e8bf17914511d3610f5c2c1ad7644c54863.tar.gz
mediapointer-dvb-s2-0fc51e8bf17914511d3610f5c2c1ad7644c54863.tar.bz2
Add selected input to saa7115 VIDIOC_LOG_STATUS output.
- Add selected input to VIDIOC_LOG_STATUS output. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/saa7115.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7115.c b/linux/drivers/media/video/saa7115.c
index 9c32000e5..c4e203715 100644
--- a/linux/drivers/media/video/saa7115.c
+++ b/linux/drivers/media/video/saa7115.c
@@ -729,6 +729,11 @@ static void saa7115_log_status(struct i2c_client *client)
signalOk = (reg1f & 0xc1) == 0x81 && (reg1e & 0xc0) == 0x80;
vcr = !(reg1f & 0x10);
+ if (state->input >= 6) {
+ saa7115_info("Input: S-Video %d\n", state->input - 6);
+ } else {
+ saa7115_info("Input: Composite %d\n", state->input);
+ }
saa7115_info("Video signal: %s\n", signalOk ? (vcr ? "VCR" : "broadcast/DVD") : "bad");
saa7115_info("Frequency: %s\n", (reg1f & 0x20) ? "60 Hz" : "50 Hz");