| /linux/Documentation/driver-api/media/ |
| H A D | v4l2-subdev.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 V4L2 sub-devices 4 ---------------- 6 Many drivers need to communicate with sub-devices. These devices can do all 8 encoding or decoding. For webcams common sub-devices are sensors and camera 12 driver with a consistent interface to these sub-devices the 13 :c:type:`v4l2_subdev` struct (v4l2-subdev.h) was created. 15 Each sub-device driver must have a :c:type:`v4l2_subdev` struct. This struct 16 can be stand-alone for simple sub-devices or it might be embedded in a larger 18 low-level device struct (e.g. ``i2c_client``) that contains the device data as [all …]
|
| H A D | v4l2-intro.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------------ 7 hardware: most devices have multiple ICs, export multiple device nodes in 8 /dev, and create also non-V4L2 devices such as DVB, ALSA, FB, I2C and input 15 called 'sub-devices'. 18 creating V4L device nodes and video_buf for handling the video buffers 21 This meant that all drivers had to do the setup of device instances and 22 connecting to sub-devices themselves. Some of this is quite complicated 32 A good example to look at as a reference is the v4l2-pci-skeleton.c 38 ------------------------- [all …]
|
| /linux/include/media/ |
| H A D | v4l2-flash-led-class.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * V4L2 flash LED sub-device registration helpers. 12 #include <media/v4l2-ctrls.h> 13 #include <media/v4l2-subdev.h> 21 * struct v4l2_flash_ctrl_data - flash control initialization data, filled 34 * struct v4l2_flash_ops - V4L2 flash operations 38 * @intensity_to_led_brightness: Convert intensity to brightness in a device 40 * @led_brightness_to_intensity: convert brightness to intensity in a device 53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data 56 * @intensity: non-flash strobe constraints for the LED [all …]
|
| H A D | v4l2-async.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 15 struct device; 22 * enum v4l2_async_match_type - type of asynchronous subdevice logic to be used 29 * algorithm that will be used to match an asynchronous device. 37 * struct v4l2_async_match_desc - async connection match information 65 * struct v4l2_async_connection - sub-device connection descriptor, as known to 68 * @match: struct of match type and per-bus type matching data sets 73 * @sd: the related sub-device 88 * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations [all …]
|
| H A D | v4l2-device.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 V4L2 device support header. 12 #include <media/media-device.h> 13 #include <media/v4l2-subdev.h> 14 #include <media/v4l2-de [all...] |
| H A D | v4l2-event.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * v4l2-event.h 7 * Copyright (C) 2009--2010 Nokia Corporation. 25 * struct v4l2_kevent - Internal kernel event struct. 26 * @list: List node for the v4l2_fh->available list. 39 * struct v4l2_subscribed_event_ops - Subscribed event operations. 54 * struct v4l2_subscribed_event - Internal struct representing a subscribed 57 * @list: List node for the v4l2_fh->subscribed list. 60 * @flags: Copy of v4l2_event_subscription->flags. 85 * v4l2_event_dequeue - Dequeue events from video device. [all …]
|
| /linux/sound/usb/hiface/ |
| H A D | pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2012-2013 (C) M2TECH S.r.l and Amarula Solutions B.V. 53 bool panic; /* if set driver won't do anymore pcm on device */ 114 struct usb_device *device = rt->chip->de in hiface_pcm_set_rate() local 173 struct device *device = &rt->chip->dev->dev; hiface_pcm_get_substream() local 232 struct device *device = &rt->chip->dev->dev; hiface_pcm_stream_start() local 255 hiface_pcm_playback(struct pcm_substream * sub,struct pcm_urb * urb) hiface_pcm_playback() argument 258 struct device *device = &urb->chip->dev->dev; hiface_pcm_playback() local 306 struct pcm_substream *sub; hiface_pcm_out_urb_handler() local 352 struct pcm_substream *sub = NULL; hiface_pcm_open() local 366 struct device *device = &rt->chip->dev->dev; hiface_pcm_open() local 395 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); hiface_pcm_close() local 419 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); hiface_pcm_prepare() local 454 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); hiface_pcm_trigger() local 484 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); hiface_pcm_pointer() local [all...] |
| /linux/drivers/media/pci/bt8xx/ |
| H A D | bttv-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 bttv-gpio.c -- gpio sub drivers 6 sysfs-based sub driver interface for bttv 10 Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) 11 & Marcus Metzler (mocm@thp.uni-koeln.de) 12 (c) 1999-2003 Gerd Knorr <kraxel@bytesex.org> 22 #include <linux/device.h> 28 /* ----------------------------------------------------------------------- */ 31 static int bttv_sub_bus_match(struct device *dev, const struct device_driver *drv) in bttv_sub_bus_match() 33 const struct bttv_sub_driver *sub = to_bttv_sub_drv(drv); in bttv_sub_bus_match() local [all …]
|
| /linux/sound/soc/uniphier/ |
| H A D | aio-dma.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (c) 2016-2018 Socionext Inc. 7 #include <linux/dma-mapping.h> 28 static void aiodma_pcm_irq(struct uniphier_aio_sub *sub) in aiodma_pcm_irq() argument 30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() 31 int bytes = runtime->period_size * in aiodma_pcm_irq() 32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq() 35 spin_lock(&sub->lock); in aiodma_pcm_irq() 36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq() 37 sub->threshold + bytes); in aiodma_pcm_irq() [all …]
|
| H A D | aio-compress.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (c) 2017-2018 Socionext Inc. 9 #include <linux/dma-mapping.h> 26 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_new() 27 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_new() 29 struct uniphier_aio_sub *sub in uniphier_aio_comprdma_new() local 62 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; uniphier_aio_comprdma_free() local 80 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_open() local 106 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_free() local 127 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_get_params() local 140 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_set_params() local 171 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_hw_free() local 184 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_prepare() local 223 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_trigger() local 257 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_pointer() local 281 aio_compr_send_to_hw(struct uniphier_aio_sub * sub,char __user * buf,size_t dstsize) aio_compr_send_to_hw() argument 332 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; uniphier_aio_compr_copy() local [all...] |
| H A D | aio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (c) 2016-2018 Socionext Inc. 15 #include <sound/soc-dai.h> 43 /* IEC61937 Repetition period of data-burst in IEC60958 frames */ 52 /* IEC61937 Repetition period of Pause data-burst in IEC60958 frames */ 70 #define AUD_NAME_PCMIN1 "aio-pcmin1" 71 #define AUD_NAME_PCMIN2 "aio-pcmin2" 72 #define AUD_NAME_PCMIN3 "aio-pcmin3" 73 #define AUD_NAME_IECIN1 "aio-iecin1" 74 #define AUD_NAME_DIECIN1 "aio-diecin1" [all …]
|
| /linux/sound/usb/caiaq/ |
| H A D | audio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2006-2008 Daniel Mack, Karsten Wiese 6 #include <linux/device.h> 14 #include "device.h" 31 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1) 52 struct snd_pcm_substream *sub) in activate_substream() argument 66 deactivate_substream(struct snd_usb_caiaqdev * cdev,struct snd_pcm_substream * sub) deactivate_substream() argument 170 snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream * sub) snd_usb_caiaq_pcm_hw_free() argument 260 snd_usb_caiaq_pcm_trigger(struct snd_pcm_substream * sub,int cmd) snd_usb_caiaq_pcm_trigger() argument 284 snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream * sub) snd_usb_caiaq_pcm_pointer() argument 323 struct snd_pcm_substream *sub; check_for_elapsed_periods() local 347 struct snd_pcm_substream *sub; read_in_urb_mode0() local 376 struct snd_pcm_substream *sub; read_in_urb_mode2() local 431 struct snd_pcm_substream *sub = cdev->sub_capture[stream]; read_in_urb_mode3() local 510 struct snd_pcm_substream *sub; fill_out_urb_mode_0() local 548 struct snd_pcm_substream *sub = cdev->sub_playback[stream]; fill_out_urb_mode_3() local [all...] |
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-subdev-querycap.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_SUBDEV_QUERYCAP - Query sub-device capabilities 34 All V4L2 sub-devices support the ``VIDIOC_SUBDEV_QUERYCAP`` ioctl. It is used to 45 .. flat-table:: struct v4l2_subdev_capability 46 :header-rows: 0 47 :stub-columns: 0 50 * - __u32 51 - ``version`` 52 - Version number of the driver. 57 distribution-modified kernel uses the V4L2 stack from a newer kernel. [all …]
|
| H A D | open.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 18 The bridge driver exposes one or more V4L2 device nodes 22 the hardware, which may also expose device nodes, called V4L2 sub-devices. 24 When such V4L2 sub-devices are exposed, they allow controlling those 25 other hardware components - usually connected via a serial bus (like 26 I²C, SMBus or SPI). Depending on the bridge driver, those sub-devices 29 :ref:`V4L2 sub-devices <subdev>`. 32 :ref:`Media Controller <media_controller>` are called **MC-centric** 33 devices. The devices that are fully controlled via V4L2 device nodes 34 are called **video-node-centric**. [all …]
|
| /linux/Documentation/admin-guide/media/ |
| H A D | qcom_camss.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 ------------ 25 ---------------------------------- 30 - 2 / 3 CSIPHY modules. They handle the Physical layer of the CSI2 receivers. 32 - 2 / 4 CSID (CSI Decoder) modules. They handle the Protocol and Application 36 - ISPIF (ISP Interface) module. Handles the routing of the data streams from 38 - 1 / 2 VFE (Video Front End) module(s). Contain a pipeline of image processing 48 ----------------------- 52 - Input from camera sensor via CSIPHY; 53 - Generation of test input data by the TG in CSID; [all …]
|
| H A D | fimc.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 Copyright |copy| 2012 - 2013 Samsung Electronics Co., Ltd. 10 The FIMC (Fully Interactive Mobile Camera) device available in Samsung 17 drivers/media/platform/samsung/exynos4-is directory. 20 -------------- 22 S5PC100 (mem-to-mem only), S5PV210, Exynos4210 25 ------------------ 27 - camera parallel interface capture (ITU-R.BT601/565); 28 - camera serial interface capture (MIPI-CSI2); 29 - memory-to-memory processing (color space conversion, scaling, mirror [all …]
|
| /linux/Documentation/sound/designs/ |
| H A D | procfile.rst | 15 card-specific files are stored in the ``card*`` subdirectories. 32 Lists the ALSA native device mappings. 40 ``<card>-<device>: <name>`` 44 ``<card>-<device>: <id>: <name> : <sub-streams>`` 51 Lists the OSS device mappings. 61 The card-specific files are found in ``/proc/asound/card*`` directories. 68 stream. The number after ``pcm`` is the PCM device number from 0, and 72 The status of MIDI I/O is found in ``midi*`` files. It shows the device 73 name and the received/transmitted bytes through the MIDI device. 81 mapping by writing to this device. Read OSS-Emulation.txt for [all …]
|
| /linux/include/linux/mfd/ |
| H A D | dln2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 u16 handle; /* sub-driver handle (internally used only) */ 13 * dln2_event_cb_t - event callback function signature 15 * @pdev - the sub-device that registered this callback 16 * @echo - the echo header field received in the message 17 * @data - the data payload 18 * @len - the data payload length 29 * dl2n_register_event_cb - register a callback function for an event 31 * @pdev - the sub-device that registers the callback 32 * @event - the event for which to register a callback [all …]
|
| /linux/Documentation/devicetree/bindings/mailbox/ |
| H A D | ti,omap-mailbox.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/ti,omap-mailbox.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 35 lines can also be routed to different processor sub-systems on DRA7xx as they 48 A Mailbox device node is used to represent a Mailbox IP instance/cluster 49 within a SoC. The sub-mailboxes (actual communication channels) are 54 A device needing to communicate with a target processor device should specify 56 "mbox-names" (please see Documentation/devicetree/bindings/mailbox/mailbox.txt [all …]
|
| /linux/Documentation/usb/ |
| H A D | acm.rst | 23 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 Should you need to contact me, the author, you can do so either by e-mail - 34 The drivers/usb/class/cdc-acm.c drivers works with USB modems and USB ISDN terminal 35 adapters that conform to the Universal Serial Bus Communication Device Class 40 - 3Com OfficeConnect 56k 41 - 3Com Voice FaxModem Pro 42 - 3Com Sportster 43 - MultiTech MultiModem 56k 44 - Zoom 2986L FaxModem 45 - Compaq 56k FaxModem [all …]
|
| /linux/Documentation/leds/ |
| H A D | leds-class-flash.rst | 5 Some LED devices provide two modes - torch and flash. In the LED subsystem 6 those modes are supported by LED class (see Documentation/leds/leds-class.rst) 16 (see Documentation/ABI/testing/sysfs-class-led-flash) 18 - flash_brightness 19 - max_flash_brightness 20 - flash_timeout 21 - max_flash_timeout 22 - flash_strobe 23 - flash_fault 36 - dev: [all …]
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-async.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 9 #include <linux/device.h> 22 #include <media/v4l2-async.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-fwnode.h> 25 #include <media/v4l2-subdev.h> 27 #include "v4l2-subdev-priv.h" 33 if (!n->ops || !n->ops->bound) in v4l2_async_nf_call_bound() 36 return n->ops->bound(n, subdev, asc); in v4l2_async_nf_call_bound() [all …]
|
| /linux/include/drm/bridge/ |
| H A D | mhl.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Defines for Mobile High-Definition Link (MHL) interface 9 * Copyright (C) 2013-2014 Silicon Image, Inc. 17 /* Device Capabilities Registers */ 77 /* Extended Device Capabilities Registers */ 107 /* Device Status Registers */ 132 /* Extended Device Status Registers */ 207 MHL_SET_CAP_ID = 0x66, /* Set Capture ID for downstream device */ 208 MHL_GET_CAP_ID = 0x67, /* Get Capture ID from downstream device */ 209 MHL_MSC_MSG = 0x68, /* VS command to send RCP sub-commands */ [all …]
|
| /linux/Documentation/userspace-api/media/drivers/ |
| H A D | ccs.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 5 .. _media-ccs-uapi: 11 <https://www.mipi.org/specifications/camera-command-set>`_ compliant 12 camera sensors. It exposes three sub-devices representing the pixel array, 18 Also see :ref:`the CCS driver kernel documentation <media-ccs-driver>`. 20 Pixel Array sub-device 21 ---------------------- 23 The pixel array sub-device represents the camera sensor's pixel matrix, as well 30 ------ 32 The binner sub-device represents the binning functionality on the sensor. For [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | marvell-pxa168.txt | 4 - compatible: should be "marvell,pxa168-eth". 5 - reg: address and length of the register set for the device. 6 - interrupts: interrupt for the device. 7 - clocks: pointer to the clock for the device. 10 - port-id: Ethernet port number. Should be '0','1' or '2'. 11 - #address-cells: must be 1 when using sub-nodes. 12 - #size-cells: must be 0 when using sub-nodes. 13 - phy-handle: see ethernet.txt file in the same directory. 18 Sub-nodes: 19 Each PHY can be represented as a sub-node. This is not mandatory. [all …]
|