diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-22 07:43:34 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:06:42 -0400 |
commit | d2a35fb172845fe75c40a3ee9c95656c7c115e48 (patch) | |
tree | 7760bfd1bce5dc46da08888ee17f403c893a7465 /drivers/media/video/ivtv/ivtv-ioctl.c | |
parent | 01f1e44fe8455b6c6c557a62119b8622fb99f5f2 (diff) |
V4L/DVB (6089): ivtv: log in status if framebuffer uses YUV instead of RGB
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index 0dde82f67e26..bb59634419cc 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -1270,7 +1270,7 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void | |||
1270 | "Global and Local" | 1270 | "Global and Local" |
1271 | }; | 1271 | }; |
1272 | static const char * const pixel_format[] = { | 1272 | static const char * const pixel_format[] = { |
1273 | "Indexed", | 1273 | "RGB Indexed", |
1274 | "RGB 5:6:5", | 1274 | "RGB 5:6:5", |
1275 | "ARGB 1:5:5:5", | 1275 | "ARGB 1:5:5:5", |
1276 | "ARGB 1:4:4:4", | 1276 | "ARGB 1:4:4:4", |
@@ -1278,6 +1278,14 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void | |||
1278 | "5", | 1278 | "5", |
1279 | "6", | 1279 | "6", |
1280 | "7", | 1280 | "7", |
1281 | "YUV Indexed", | ||
1282 | "YUV 5:6:5", | ||
1283 | "AYUV 1:5:5:5", | ||
1284 | "AYUV 1:4:4:4", | ||
1285 | "AYUV 8:8:8:8", | ||
1286 | "13", | ||
1287 | "14", | ||
1288 | "15", | ||
1281 | }; | 1289 | }; |
1282 | 1290 | ||
1283 | ivtv_get_output(itv, itv->active_output, &vidout); | 1291 | ivtv_get_output(itv, itv->active_output, &vidout); |
@@ -1290,10 +1298,11 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void | |||
1290 | mode = OUT_NONE; | 1298 | mode = OUT_NONE; |
1291 | IVTV_INFO("Output Mode: %s\n", output_modes[mode]); | 1299 | IVTV_INFO("Output Mode: %s\n", output_modes[mode]); |
1292 | ivtv_vapi_result(itv, data, CX2341X_OSD_GET_STATE, 0); | 1300 | ivtv_vapi_result(itv, data, CX2341X_OSD_GET_STATE, 0); |
1301 | data[0] |= (read_reg(0x2a00) >> 7) & 0x40; | ||
1293 | IVTV_INFO("Overlay: %s, Alpha: %s, Pixel Format: %s\n", | 1302 | IVTV_INFO("Overlay: %s, Alpha: %s, Pixel Format: %s\n", |
1294 | data[0] & 1 ? "On" : "Off", | 1303 | data[0] & 1 ? "On" : "Off", |
1295 | alpha_mode[(data[0] >> 1) & 0x3], | 1304 | alpha_mode[(data[0] >> 1) & 0x3], |
1296 | pixel_format[(data[0] >> 3) & 0x7]); | 1305 | pixel_format[(data[0] >> 3) & 0xf]); |
1297 | } | 1306 | } |
1298 | IVTV_INFO("Tuner: %s\n", | 1307 | IVTV_INFO("Tuner: %s\n", |
1299 | test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" : "TV"); | 1308 | test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" : "TV"); |