Chapter 6. Media Devices

Table of Contents

Video2Linux devices
Digital TV (DVB) devices
Remote Controller devices
Media Controller devices
Consumer Electronics Control devices

Video2Linux devices

enum tuner_mode — Mode of the tuner
struct tuner_setup — setup the tuner chipsets
enum param_type — type of the tuner pameters
struct tuner_range — define the frequencies supported by the tuner
struct tuner_params — Parameters to be used to setup the tuner. Those are used by drivers/media/tuners/tuner-types.c in order to specify the tuner properties. Most of the parameters are for tuners based on tda9887 IF-PLL multi-standard analog TV/Radio demodulator, with is very common on legacy analog tuners.
enum tveeprom_audio_processor — Specifies the type of audio processor used on a Hauppauge device.
struct tveeprom — Contains the fields parsed from Hauppauge eeproms
tveeprom_hauppauge_analog — Fill struct tveeprom using the contents of the eeprom previously filled at eeprom_data field.
tveeprom_read — Reads the contents of the eeprom found at the Hauppauge devices.
struct v4l2_async_subdev — sub-device descriptor, as known to a bridge
struct v4l2_async_notifier — v4l2_device notifier data
union v4l2_ctrl_ptr — A pointer to a control value.
struct v4l2_ctrl_ops — The control operations that the driver has to provide.
struct v4l2_ctrl_type_ops — The control type operations that the driver has to provide.
struct v4l2_ctrl — The control structure.
struct v4l2_ctrl_ref — The control reference.
struct v4l2_ctrl_handler — The control handler keeps track of all the
struct v4l2_ctrl_config — Control configuration structure.
v4l2_ctrl_handler_init_class — Initialize the control handler.
v4l2_ctrl_handler_free — Free all controls owned by the handler and free the control list.
v4l2_ctrl_lock — Helper function to lock the handler associated with the control.
v4l2_ctrl_unlock — Helper function to unlock the handler associated with the control.
v4l2_ctrl_handler_setup — Call the s_ctrl op for all controls belonging to the handler to initialize the hardware to the current control values.
v4l2_ctrl_handler_log_status — Log all controls owned by the handler.
v4l2_ctrl_new_custom — Allocate and initialize a new custom V4L2 control.
v4l2_ctrl_new_std — Allocate and initialize a new standard V4L2 non-menu control.
v4l2_ctrl_new_std_menu — Allocate and initialize a new standard V4L2 menu control.
v4l2_ctrl_new_std_menu_items — Create a new standard V4L2 menu control with driver specific menu.
v4l2_ctrl_new_int_menu — Create a new standard V4L2 integer menu control.
v4l2_ctrl_add_handler — Add all controls from handler add to handler hdl.
v4l2_ctrl_radio_filter — Standard filter for radio controls.
v4l2_ctrl_cluster — Mark all controls in the cluster as belonging to that cluster.
v4l2_ctrl_auto_cluster — Mark all controls in the cluster as belonging to that cluster and set it up for autofoo/foo-type handling.
v4l2_ctrl_find — Find a control with the given ID.
v4l2_ctrl_activate — Make the control active or inactive.
v4l2_ctrl_grab — Mark the control as grabbed or not grabbed.
__v4l2_ctrl_modify_range Unlocked variant of v4l2_ctrl_modify_range
v4l2_ctrl_modify_range — Update the range of a control.
v4l2_ctrl_notify — Function to set a notify callback for a control.
v4l2_ctrl_get_name — Get the name of the control
v4l2_ctrl_get_menu — Get the menu string array of the control
v4l2_ctrl_get_int_menu — Get the integer menu array of the control
v4l2_ctrl_g_ctrl — Helper function to get the control's value from within a driver.
__v4l2_ctrl_s_ctrl — Unlocked variant of v4l2_ctrl_s_ctrl.
v4l2_ctrl_g_ctrl_int64 — Helper function to get a 64-bit control's value from within a driver.
__v4l2_ctrl_s_ctrl_int64 — Unlocked variant of v4l2_ctrl_s_ctrl_int64.
v4l2_check_dv_timings_fnc — timings check callback
v4l2_valid_dv_timings — are these timings valid?
v4l2_enum_dv_timings_cap — Helper function to enumerate possible DV timings based on capabilities
v4l2_find_dv_timings_cap — Find the closest timings struct
v4l2_match_dv_timings — do two timings match?
v4l2_print_dv_timings — log the contents of a dv_timings struct
v4l2_detect_cvt — detect if the given timings follow the CVT standard
v4l2_detect_gtf — detect if the given timings follow the GTF standard
v4l2_calc_aspect_ratio — calculate the aspect ratio based on bytes 0x15 and 0x16 from the EDID.
struct v4l2_kevent — Internal kernel event struct.
struct v4l2_subscribed_event — Internal struct representing a subscribed event.
struct v4l2_flash_config — V4L2 Flash sub-device initialization data
struct v4l2_flash — Flash sub-device context
v4l2_flash_init — initialize V4L2 flash led sub-device
v4l2_flash_release — release V4L2 Flash sub-device
enum tuner_pad_index — tuner pad index for MEDIA_ENT_F_TUNER
enum if_vid_dec_pad_index — video IF-PLL pad index for MEDIA_ENT_F_IF_VID_DECODER
enum if_aud_dec_pad_index — audio/sound IF-PLL pad index for MEDIA_ENT_F_IF_AUD_DECODER
enum demod_pad_index — analog TV pad index for MEDIA_ENT_F_ATV_DECODER
v4l2_mc_create_media_graph — create Media Controller links at the graph.
v4l_enable_media_source — Hold media source for exclusive use if free
v4l_disable_media_source — Release media source
v4l2_pipeline_pm_use — Update the use count of an entity
v4l2_pipeline_link_notify — Link management notification callback
enum v4l2_mbus_type — media bus type
struct v4l2_mbus_config — media bus configuration
struct v4l2_m2m_ops — mem-to-mem device driver callbacks
v4l2_m2m_num_src_bufs_ready — return the number of source buffers ready for use
v4l2_m2m_num_dst_bufs_ready — return the number of destination buffers ready for use
v4l2_m2m_next_src_buf — return next source buffer from the list of ready buffers
v4l2_m2m_next_dst_buf — return next destination buffer from the list of ready buffers
v4l2_m2m_get_src_vq — return vb2_queue for source buffers
v4l2_m2m_get_dst_vq — return vb2_queue for destination buffers
v4l2_m2m_src_buf_remove — take off a source buffer from the list of ready buffers and return it
v4l2_m2m_dst_buf_remove — take off a destination buffer from the list of ready buffers and return it
struct v4l2_of_bus_mipi_csi2 — MIPI CSI-2 bus data structure
struct v4l2_of_bus_parallel — parallel data bus data structure
struct v4l2_of_endpoint — the endpoint data structure
struct v4l2_of_link — a link between two endpoints
v4l2_rect_set_size_to — copy the width/height values.
v4l2_rect_set_min_size — width and height of r should be >= min_size.
v4l2_rect_set_max_size — width and height of r should be <= max_size
v4l2_rect_map_inside — r should be inside boundary.
v4l2_rect_same_size — return true if r1 has the same size as r2
v4l2_rect_intersect — calculate the intersection of two rects.
v4l2_rect_scale — scale rect r by to/from
v4l2_rect_overlap — do r1 and r2 overlap?
struct v4l2_subdev_core_ops — Define core ops callbacks for subdevs
struct v4l2_subdev_tuner_ops — Callbacks used when v4l device was opened in radio mode.
struct v4l2_subdev_audio_ops — Callbacks used for audio-related settings
struct v4l2_mbus_frame_desc_entry — media bus frame description structure
struct v4l2_mbus_frame_desc — media bus data frame description
struct v4l2_subdev_video_ops — Callbacks used when v4l device was opened in video mode.
struct v4l2_subdev_vbi_ops — Callbacks used when v4l device was opened in video mode via the vbi device node.
struct v4l2_subdev_sensor_ops — v4l2-subdev sensor operations
struct v4l2_subdev_pad_ops — v4l2-subdev pad level operations
struct vb2_mem_ops — memory handling/memory allocator operations
struct vb2_plane — plane information
enum vb2_io_modes — queue access methods
enum vb2_buffer_state — current video buffer state
struct vb2_buffer — represents a video buffer
struct vb2_ops — driver-specific callbacks
struct vb2_buf_ops — driver-specific callbacks
struct vb2_queue — a videobuf queue
vb2_thread_start — start a thread for the given queue.
vb2_thread_stop — stop the thread for the given queue.
vb2_is_streaming — return streaming status of the queue
vb2_fileio_is_active — return true if fileio is active.
vb2_is_busy — return busy status of the queue
vb2_get_drv_priv — return driver private data associated with the queue
vb2_set_plane_payload — set bytesused for the plane plane_no
vb2_get_plane_payload — get bytesused for the plane plane_no
vb2_plane_size — return plane size in bytes
vb2_start_streaming_called — return streaming status of driver
vb2_clear_last_buffer_dequeued — clear last buffer dequeued flag of queue
struct vb2_v4l2_buffer — video buffer information for v4l2
struct vb2_vmarea_handler — common vma refcount tracking handler