Commit 21fa715e authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (3248): Add selected input to saa7115 VIDIOC_LOG_STATUS output.


- Add selected input to VIDIOC_LOG_STATUS output.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent fbc46e74
...@@ -801,6 +801,11 @@ static void saa7115_log_status(struct i2c_client *client) ...@@ -801,6 +801,11 @@ static void saa7115_log_status(struct i2c_client *client)
signalOk = (reg1f & 0xc1) == 0x81 && (reg1e & 0xc0) == 0x80; signalOk = (reg1f & 0xc1) == 0x81 && (reg1e & 0xc0) == 0x80;
vcr = !(reg1f & 0x10); 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("Video signal: %s\n", signalOk ? (vcr ? "VCR" : "broadcast/DVD") : "bad");
saa7115_info("Frequency: %s\n", (reg1f & 0x20) ? "60Hz" : "50Hz"); saa7115_info("Frequency: %s\n", (reg1f & 0x20) ? "60Hz" : "50Hz");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment