diff options
| -rw-r--r-- | Documentation/DocBook/media/v4l/media-types.xml | 4 | ||||
| -rw-r--r-- | drivers/media/i2c/adp1653.c | 2 | ||||
| -rw-r--r-- | drivers/media/i2c/adv7604.c | 3 | ||||
| -rw-r--r-- | drivers/media/usb/au0828/au0828-video.c | 3 | ||||
| -rw-r--r-- | drivers/staging/media/davinci_vpfe/vpfe_video.c | 2 | ||||
| -rw-r--r-- | include/uapi/linux/media.h | 54 |
6 files changed, 34 insertions, 34 deletions
diff --git a/Documentation/DocBook/media/v4l/media-types.xml b/Documentation/DocBook/media/v4l/media-types.xml index 1af384250910..0ee0f3386cdf 100644 --- a/Documentation/DocBook/media/v4l/media-types.xml +++ b/Documentation/DocBook/media/v4l/media-types.xml | |||
| @@ -57,10 +57,6 @@ | |||
| 57 | <entry>Connector for a RGB composite signal.</entry> | 57 | <entry>Connector for a RGB composite signal.</entry> |
| 58 | </row> | 58 | </row> |
| 59 | <row> | 59 | <row> |
| 60 | <entry><constant>MEDIA_ENT_F_CONN_TEST</constant></entry> | ||
| 61 | <entry>Connector for a test generator.</entry> | ||
| 62 | </row> | ||
| 63 | <row> | ||
| 64 | <entry><constant>MEDIA_ENT_F_CAM_SENSOR</constant></entry> | 60 | <entry><constant>MEDIA_ENT_F_CAM_SENSOR</constant></entry> |
| 65 | <entry>Camera video sensor entity.</entry> | 61 | <entry>Camera video sensor entity.</entry> |
| 66 | </row> | 62 | </row> |
diff --git a/drivers/media/i2c/adp1653.c b/drivers/media/i2c/adp1653.c index 7e9cbf757e95..fb7ed730d932 100644 --- a/drivers/media/i2c/adp1653.c +++ b/drivers/media/i2c/adp1653.c | |||
| @@ -497,7 +497,7 @@ static int adp1653_probe(struct i2c_client *client, | |||
| 497 | if (!client->dev.platform_data) { | 497 | if (!client->dev.platform_data) { |
| 498 | dev_err(&client->dev, | 498 | dev_err(&client->dev, |
| 499 | "Neither DT not platform data provided\n"); | 499 | "Neither DT not platform data provided\n"); |
| 500 | return EINVAL; | 500 | return -EINVAL; |
| 501 | } | 501 | } |
| 502 | flash->platform_data = client->dev.platform_data; | 502 | flash->platform_data = client->dev.platform_data; |
| 503 | } | 503 | } |
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index f8dd7505b529..e1719ffdfb3d 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c | |||
| @@ -1960,10 +1960,9 @@ static int adv76xx_isr(struct v4l2_subdev *sd, u32 status, bool *handled) | |||
| 1960 | } | 1960 | } |
| 1961 | 1961 | ||
| 1962 | /* tx 5v detect */ | 1962 | /* tx 5v detect */ |
| 1963 | tx_5v = io_read(sd, 0x70) & info->cable_det_mask; | 1963 | tx_5v = irq_reg_0x70 & info->cable_det_mask; |
| 1964 | if (tx_5v) { | 1964 | if (tx_5v) { |
| 1965 | v4l2_dbg(1, debug, sd, "%s: tx_5v: 0x%x\n", __func__, tx_5v); | 1965 | v4l2_dbg(1, debug, sd, "%s: tx_5v: 0x%x\n", __func__, tx_5v); |
| 1966 | io_write(sd, 0x71, tx_5v); | ||
| 1967 | adv76xx_s_detect_tx_5v_ctrl(sd); | 1966 | adv76xx_s_detect_tx_5v_ctrl(sd); |
| 1968 | if (handled) | 1967 | if (handled) |
| 1969 | *handled = true; | 1968 | *handled = true; |
diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c index 8c54fd21022e..a13625722848 100644 --- a/drivers/media/usb/au0828/au0828-video.c +++ b/drivers/media/usb/au0828/au0828-video.c | |||
| @@ -1843,8 +1843,7 @@ static void au0828_analog_create_entities(struct au0828_dev *dev) | |||
| 1843 | ent->function = MEDIA_ENT_F_CONN_RF; | 1843 | ent->function = MEDIA_ENT_F_CONN_RF; |
| 1844 | break; | 1844 | break; |
| 1845 | default: /* AU0828_VMUX_DEBUG */ | 1845 | default: /* AU0828_VMUX_DEBUG */ |
| 1846 | ent->function = MEDIA_ENT_F_CONN_TEST; | 1846 | continue; |
| 1847 | break; | ||
| 1848 | } | 1847 | } |
| 1849 | 1848 | ||
| 1850 | ret = media_entity_pads_init(ent, 1, &dev->input_pad[i]); | 1849 | ret = media_entity_pads_init(ent, 1, &dev->input_pad[i]); |
diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_vpfe/vpfe_video.c index 3ec7e65a3ffa..db49af90217e 100644 --- a/drivers/staging/media/davinci_vpfe/vpfe_video.c +++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c | |||
| @@ -147,7 +147,7 @@ static int vpfe_prepare_pipeline(struct vpfe_video_device *video) | |||
| 147 | mutex_lock(&mdev->graph_mutex); | 147 | mutex_lock(&mdev->graph_mutex); |
| 148 | ret = media_entity_graph_walk_init(&graph, entity->graph_obj.mdev); | 148 | ret = media_entity_graph_walk_init(&graph, entity->graph_obj.mdev); |
| 149 | if (ret) { | 149 | if (ret) { |
| 150 | mutex_unlock(&video->lock); | 150 | mutex_unlock(&mdev->graph_mutex); |
| 151 | return -ENOMEM; | 151 | return -ENOMEM; |
| 152 | } | 152 | } |
| 153 | media_entity_graph_walk_start(&graph, entity); | 153 | media_entity_graph_walk_start(&graph, entity); |
diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 1e3c8cb43bd7..625b38f65764 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h | |||
| @@ -66,27 +66,33 @@ struct media_device_info { | |||
| 66 | /* | 66 | /* |
| 67 | * DVB entities | 67 | * DVB entities |
| 68 | */ | 68 | */ |
| 69 | #define MEDIA_ENT_F_DTV_DEMOD (MEDIA_ENT_F_BASE + 1) | 69 | #define MEDIA_ENT_F_DTV_DEMOD (MEDIA_ENT_F_BASE + 0x00001) |
| 70 | #define MEDIA_ENT_F_TS_DEMUX (MEDIA_ENT_F_BASE + 2) | 70 | #define MEDIA_ENT_F_TS_DEMUX (MEDIA_ENT_F_BASE + 0x00002) |
| 71 | #define MEDIA_ENT_F_DTV_CA (MEDIA_ENT_F_BASE + 3) | 71 | #define MEDIA_ENT_F_DTV_CA (MEDIA_ENT_F_BASE + 0x00003) |
| 72 | #define MEDIA_ENT_F_DTV_NET_DECAP (MEDIA_ENT_F_BASE + 4) | 72 | #define MEDIA_ENT_F_DTV_NET_DECAP (MEDIA_ENT_F_BASE + 0x00004) |
| 73 | 73 | ||
| 74 | /* | 74 | /* |
| 75 | * Connectors | 75 | * I/O entities |
| 76 | */ | 76 | */ |
| 77 | /* It is a responsibility of the entity drivers to add connectors and links */ | 77 | #define MEDIA_ENT_F_IO_DTV (MEDIA_ENT_F_BASE + 0x01001) |
| 78 | #define MEDIA_ENT_F_CONN_RF (MEDIA_ENT_F_BASE + 21) | 78 | #define MEDIA_ENT_F_IO_VBI (MEDIA_ENT_F_BASE + 0x01002) |
| 79 | #define MEDIA_ENT_F_CONN_SVIDEO (MEDIA_ENT_F_BASE + 22) | 79 | #define MEDIA_ENT_F_IO_SWRADIO (MEDIA_ENT_F_BASE + 0x01003) |
| 80 | #define MEDIA_ENT_F_CONN_COMPOSITE (MEDIA_ENT_F_BASE + 23) | ||
| 81 | /* For internal test signal generators and other debug connectors */ | ||
| 82 | #define MEDIA_ENT_F_CONN_TEST (MEDIA_ENT_F_BASE + 24) | ||
| 83 | 80 | ||
| 84 | /* | 81 | /* |
| 85 | * I/O entities | 82 | * Connectors |
| 86 | */ | 83 | */ |
| 87 | #define MEDIA_ENT_F_IO_DTV (MEDIA_ENT_F_BASE + 31) | 84 | /* It is a responsibility of the entity drivers to add connectors and links */ |
| 88 | #define MEDIA_ENT_F_IO_VBI (MEDIA_ENT_F_BASE + 32) | 85 | #ifdef __KERNEL__ |
| 89 | #define MEDIA_ENT_F_IO_SWRADIO (MEDIA_ENT_F_BASE + 33) | 86 | /* |
| 87 | * For now, it should not be used in userspace, as some | ||
| 88 | * definitions may change | ||
| 89 | */ | ||
| 90 | |||
| 91 | #define MEDIA_ENT_F_CONN_RF (MEDIA_ENT_F_BASE + 0x30001) | ||
| 92 | #define MEDIA_ENT_F_CONN_SVIDEO (MEDIA_ENT_F_BASE + 0x30002) | ||
| 93 | #define MEDIA_ENT_F_CONN_COMPOSITE (MEDIA_ENT_F_BASE + 0x30003) | ||
| 94 | |||
| 95 | #endif | ||
| 90 | 96 | ||
| 91 | /* | 97 | /* |
| 92 | * Don't touch on those. The ranges MEDIA_ENT_F_OLD_BASE and | 98 | * Don't touch on those. The ranges MEDIA_ENT_F_OLD_BASE and |
| @@ -291,14 +297,14 @@ struct media_v2_entity { | |||
| 291 | __u32 id; | 297 | __u32 id; |
| 292 | char name[64]; /* FIXME: move to a property? (RFC says so) */ | 298 | char name[64]; /* FIXME: move to a property? (RFC says so) */ |
| 293 | __u32 function; /* Main function of the entity */ | 299 | __u32 function; /* Main function of the entity */ |
| 294 | __u16 reserved[12]; | 300 | __u32 reserved[6]; |
| 295 | }; | 301 | } __attribute__ ((packed)); |
| 296 | 302 | ||
| 297 | /* Should match the specific fields at media_intf_devnode */ | 303 | /* Should match the specific fields at media_intf_devnode */ |
| 298 | struct media_v2_intf_devnode { | 304 | struct media_v2_intf_devnode { |
| 299 | __u32 major; | 305 | __u32 major; |
| 300 | __u32 minor; | 306 | __u32 minor; |
| 301 | }; | 307 | } __attribute__ ((packed)); |
| 302 | 308 | ||
| 303 | struct media_v2_interface { | 309 | struct media_v2_interface { |
| 304 | __u32 id; | 310 | __u32 id; |
| @@ -310,22 +316,22 @@ struct media_v2_interface { | |||
| 310 | struct media_v2_intf_devnode devnode; | 316 | struct media_v2_intf_devnode devnode; |
| 311 | __u32 raw[16]; | 317 | __u32 raw[16]; |
| 312 | }; | 318 | }; |
| 313 | }; | 319 | } __attribute__ ((packed)); |
| 314 | 320 | ||
| 315 | struct media_v2_pad { | 321 | struct media_v2_pad { |
| 316 | __u32 id; | 322 | __u32 id; |
| 317 | __u32 entity_id; | 323 | __u32 entity_id; |
| 318 | __u32 flags; | 324 | __u32 flags; |
| 319 | __u16 reserved[9]; | 325 | __u32 reserved[5]; |
| 320 | }; | 326 | } __attribute__ ((packed)); |
| 321 | 327 | ||
| 322 | struct media_v2_link { | 328 | struct media_v2_link { |
| 323 | __u32 id; | 329 | __u32 id; |
| 324 | __u32 source_id; | 330 | __u32 source_id; |
| 325 | __u32 sink_id; | 331 | __u32 sink_id; |
| 326 | __u32 flags; | 332 | __u32 flags; |
| 327 | __u32 reserved[5]; | 333 | __u32 reserved[6]; |
| 328 | }; | 334 | } __attribute__ ((packed)); |
| 329 | 335 | ||
| 330 | struct media_v2_topology { | 336 | struct media_v2_topology { |
| 331 | __u64 topology_version; | 337 | __u64 topology_version; |
| @@ -345,7 +351,7 @@ struct media_v2_topology { | |||
| 345 | __u32 num_links; | 351 | __u32 num_links; |
| 346 | __u32 reserved4; | 352 | __u32 reserved4; |
| 347 | __u64 ptr_links; | 353 | __u64 ptr_links; |
| 348 | }; | 354 | } __attribute__ ((packed)); |
| 349 | 355 | ||
| 350 | static inline void __user *media_get_uptr(__u64 arg) | 356 | static inline void __user *media_get_uptr(__u64 arg) |
| 351 | { | 357 | { |
