Skip to content

Commit

Permalink
V4L/DVB (3248): Add selected input to saa7115 VIDIOC_LOG_STATUS output.
Browse files Browse the repository at this point in the history
- Add selected input to VIDIOC_LOG_STATUS output.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent fbc46e7 commit 21fa715
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,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) ? "60Hz" : "50Hz");

Expand Down

0 comments on commit 21fa715

Please sign in to comment.