diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-28 00:14:39 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-28 00:14:39 +0200 |
commit | 9f0e0ef7b8b2f1738655fec9095f3a6c7d46be91 (patch) | |
tree | e3755f79c4271ca86a517f254f0182cf60d9ee80 /v4l2-apps/util/v4l2-ctl.cpp | |
parent | 502f8947100c39b36eb660adfa7ea1cc1d4fae64 (diff) | |
download | mediapointer-dvb-s2-9f0e0ef7b8b2f1738655fec9095f3a6c7d46be91.tar.gz mediapointer-dvb-s2-9f0e0ef7b8b2f1738655fec9095f3a6c7d46be91.tar.bz2 |
v4l2-ctl: show name and afc when calling VIDIOC_G_TUNER
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/util/v4l2-ctl.cpp')
-rw-r--r-- | v4l2-apps/util/v4l2-ctl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/v4l2-apps/util/v4l2-ctl.cpp b/v4l2-apps/util/v4l2-ctl.cpp index 41946978a..5d70ed9f3 100644 --- a/v4l2-apps/util/v4l2-ctl.cpp +++ b/v4l2-apps/util/v4l2-ctl.cpp @@ -1997,6 +1997,7 @@ int main(int argc, char **argv) memset(&vt, 0, sizeof(struct v4l2_tuner)); if (doioctl(fd, VIDIOC_G_TUNER, &vt, "VIDIOC_G_TUNER") == 0) { printf("Tuner:\n"); + printf("\tName : %s\n", vt.name); printf("\tCapabilities : %s\n", tcap2s(vt.capability).c_str()); if (vt.capability & V4L2_TUNER_CAP_LOW) printf("\tFrequency range : %.1f MHz - %.1f MHz\n", @@ -2004,7 +2005,7 @@ int main(int argc, char **argv) else printf("\tFrequency range : %.1f MHz - %.1f MHz\n", vt.rangelow / 16.0, vt.rangehigh / 16.0); - printf("\tSignal strength : %d%%\n", (int)(vt.signal / 655.35)); + printf("\tSignal strength/AFC : %d%%/%d\n", (int)(vt.signal / 655.35), vt.afc); printf("\tCurrent audio mode : %s\n", audmode2s(vt.audmode)); printf("\tAvailable subchannels: %s\n", rxsubchans2s(vt.rxsubchans).c_str()); |