Home
last modified time | relevance | path

Searched +full:sub +full:- +full:device (Results 1 – 25 of 1041) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/include/media/
Dv4l2-flash-led-class.h1 /* 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 …]
Dv4l2-async.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
14 struct device;
21 * enum v4l2_async_match_type - type of asynchronous subdevice logic to be used
26 * @V4L2_ASYNC_MATCH_DEVNAME: Match will use the device name
30 * This enum is used by the asyncrhronous sub-device logic to define the
31 * algorithm that will be used to match an asynchronous device.
41 * struct v4l2_async_subdev - sub-device descriptor, as known to a bridge
44 * @match: union of per-bus type matching data sets
49 * string containing the device name to be matched.
[all …]
/kernel/linux/linux-4.19/sound/usb/hiface/
Dpcm.c4 * Copyright 2012-2013 (C) M2TECH S.r.l and Amarula Solutions B.V.
57 bool panic; /* if set driver won't do anymore pcm on device */
118 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate() local
151 dev_err(&device->dev, "Unsupported rate %d\n", rate); in hiface_pcm_set_rate()
152 return -EINVAL; in hiface_pcm_set_rate()
163 ret = usb_control_msg(device, usb_sndctrlpipe(device, 0), in hiface_pcm_set_rate()
168 dev_err(&device->dev, "Error setting samplerate %d.\n", rate); in hiface_pcm_set_rate()
179 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() local
181 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_get_substream()
182 return &rt->playback; in hiface_pcm_get_substream()
[all …]
/kernel/linux/linux-5.10/sound/usb/hiface/
Dpcm.c1 // 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->dev; in hiface_pcm_set_rate() local
147 dev_err(&device->dev, "Unsupported rate %d\n", rate); in hiface_pcm_set_rate()
148 return -EINVAL; in hiface_pcm_set_rate()
159 ret = usb_control_msg_send(device, 0, in hiface_pcm_set_rate()
164 dev_err(&device->dev, "Error setting samplerate %d.\n", rate); in hiface_pcm_set_rate()
173 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() local
175 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_get_substream()
[all …]
/kernel/linux/linux-4.19/include/media/
Dv4l2-flash-led-class.h2 * V4L2 flash LED sub-device registration helpers.
15 #include <media/v4l2-ctrls.h>
16 #include <media/v4l2-subdev.h>
24 * struct v4l2_flash_ctrl_data - flash control initialization data, filled
37 * struct v4l2_flash_ops - V4L2 flash operations
41 * @intensity_to_led_brightness: Convert intensity to brightness in a device
43 * @led_brightness_to_intensity: convert brightness to intensity in a device
56 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data
59 * @intensity: non-flash strobe constraints for the LED
61 * device can report; corresponding LED_FAULT* bit
[all …]
Dv4l2-fwnode.h7 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
25 #include <media/v4l2-mediabus.h>
34 * struct v4l2_fwnode_bus_mipi_csi2 - MIPI CSI-2 bus data structure
51 * struct v4l2_fwnode_bus_parallel - parallel data bus data structure
63 * struct v4l2_fwnode_bus_mipi_csi1 - CSI-1/CCP2 data bus structure
65 * false - not inverted, true - inverted
66 * @strobe: false - data/clock, true - data/strobe
81 * struct v4l2_fwnode_endpoint - the endpoint data structure
115 * struct v4l2_fwnode_link - a link between two endpoints
129 * v4l2_fwnode_endpoint_parse() - parse all fwnode node properties
[all …]
Dv4l2-async.h4 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
17 struct device;
27 * enum v4l2_async_match_type - type of asynchronous subdevice logic to be used
32 * @V4L2_ASYNC_MATCH_DEVNAME: Match will use the device name
36 * This enum is used by the asyncrhronous sub-device logic to define the
37 * algorithm that will be used to match an asynchronous device.
47 * struct v4l2_async_subdev - sub-device descriptor, as known to a bridge
50 * @match: union of per-bus type matching data sets
55 * string containing the device name to be matched.
68 * Driver-specific match criteria.
[all …]
/kernel/linux/linux-4.19/Documentation/media/kapi/
Dv4l2-subdev.rst1 V4L2 sub-devices
2 ----------------
4 Many drivers need to communicate with sub-devices. These devices can do all
6 encoding or decoding. For webcams common sub-devices are sensors and camera
10 driver with a consistent interface to these sub-devices the
11 :c:type:`v4l2_subdev` struct (v4l2-subdev.h) was created.
13 Each sub-device driver must have a :c:type:`v4l2_subdev` struct. This struct
14 can be stand-alone for simple sub-devices or it might be embedded in a larger
16 low-level device struct (e.g. ``i2c_client``) that contains the device data as
19 it easy to go from a :c:type:`v4l2_subdev` to the actual low-level bus-specific
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/media/
Dv4l2-subdev.rst1 .. 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 …]
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/
Dbttv-gpio.c1 // 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, struct device_driver *drv) in bttv_sub_bus_match()
33 struct bttv_sub_driver *sub = to_bttv_sub_drv(drv); in bttv_sub_bus_match() local
[all …]
/kernel/linux/linux-4.19/drivers/media/pci/bt8xx/
Dbttv-gpio.c3 bttv-gpio.c -- gpio sub drivers
5 sysfs-based sub driver interface for bttv
9 Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de)
10 & Marcus Metzler (mocm@thp.uni-koeln.de)
11 (c) 1999-2003 Gerd Knorr <kraxel@bytesex.org>
34 #include <linux/device.h>
40 /* ----------------------------------------------------------------------- */
43 static int bttv_sub_bus_match(struct device *dev, struct device_driver *drv) in bttv_sub_bus_match()
45 struct bttv_sub_driver *sub = to_bttv_sub_drv(drv); in bttv_sub_bus_match() local
46 int len = strlen(sub->wanted); in bttv_sub_bus_match()
[all …]
/kernel/linux/linux-5.10/sound/soc/uniphier/
Daio-dma.c1 // 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 …]
Daio-cpu.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2016-2018 Socionext Inc.
25 struct device *dev = &chip->pdev->dev; in is_valid_pll()
27 if (pll_id < 0 || chip->num_plls <= pll_id) { in is_valid_pll()
32 return chip->plls[pll_id].enable; in is_valid_pll()
36 * find_volume - find volume supported HW port by HW port number
40 * Find AIO device from device list by HW port number. Volume feature is
51 for (i = 0; i < chip->num_aios; i++) { in find_volume()
52 struct uniphier_aio_sub *sub = &chip->aios[i].sub[0]; in find_volume() local
54 if (!sub->swm) in find_volume()
[all …]
Daio-compress.c1 // 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 = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new() local
37 sub->compr_area = kzalloc(size, GFP_KERNEL); in uniphier_aio_comprdma_new()
38 if (!sub->compr_area) in uniphier_aio_comprdma_new()
39 return -ENOMEM; in uniphier_aio_comprdma_new()
41 if (sub->swm->dir == PORT_DIR_OUTPUT) in uniphier_aio_comprdma_new()
[all …]
/kernel/linux/linux-4.19/sound/soc/uniphier/
Daio-cpu.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2016-2018 Socionext Inc.
25 struct device *dev = &chip->pdev->dev; in is_valid_pll()
27 if (pll_id < 0 || chip->num_plls <= pll_id) { in is_valid_pll()
32 return chip->plls[pll_id].enable; in is_valid_pll()
36 * find_volume - find volume supported HW port by HW port number
40 * Find AIO device from device list by HW port number. Volume feature is
51 for (i = 0; i < chip->num_aios; i++) { in find_volume()
52 struct uniphier_aio_sub *sub = &chip->aios[i].sub[0]; in find_volume() local
54 if (!sub->swm) in find_volume()
[all …]
Daio-dma.c1 // 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 …]
Daio-compress.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2017-2018 Socionext Inc.
9 #include <linux/dma-mapping.h>
24 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_new()
25 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_new()
26 struct uniphier_aio *aio = uniphier_priv(rtd->cpu_dai); in uniphier_aio_comprdma_new()
27 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new() local
35 sub->compr_area = kzalloc(size, GFP_KERNEL); in uniphier_aio_comprdma_new()
36 if (!sub->compr_area) in uniphier_aio_comprdma_new()
37 return -ENOMEM; in uniphier_aio_comprdma_new()
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Ddev-subdev.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
6 Sub-device Interface
13 components as software blocks called sub-devices.
15 V4L2 sub-devices are usually kernel-only objects. If the V4L2 driver
16 implements the media device API, they will automatically inherit from
17 media entities. Applications will be able to enumerate the sub-devices
21 In addition to make sub-devices discoverable, drivers can also choose to
23 sub-device driver and the V4L2 device driver support this, sub-devices
24 will feature a character device node on which ioctls can be called to
26 - query, read and write sub-devices controls
[all …]
Dvidioc-subdev-querycap.rst1 .. 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 …]
/kernel/linux/linux-4.19/Documentation/media/uapi/v4l/
Ddev-subdev.rst1 .. -*- coding: utf-8; mode: rst -*-
6 Sub-device Interface
13 components as software blocks called sub-devices.
15 V4L2 sub-devices are usually kernel-only objects. If the V4L2 driver
16 implements the media device API, they will automatically inherit from
17 media entities. Applications will be able to enumerate the sub-devices
21 In addition to make sub-devices discoverable, drivers can also choose to
23 sub-device driver and the V4L2 device driver support this, sub-devices
24 will feature a character device node on which ioctls can be called to
26 - query, read and write sub-devices controls
[all …]
/kernel/linux/linux-4.19/sound/usb/caiaq/
Daudio.c2 * Copyright (c) 2006-2008 Daniel Mack, Karsten Wiese
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include <linux/device.h>
27 #include "device.h"
44 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
65 struct snd_pcm_substream *sub) in activate_substream() argument
67 spin_lock(&cdev->spinlock); in activate_substream()
69 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in activate_substream()
70 cdev->sub_playback[sub->number] = sub; in activate_substream()
72 cdev->sub_capture[sub->number] = sub; in activate_substream()
[all …]
/kernel/linux/linux-5.10/sound/usb/caiaq/
Daudio.c1 // 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
54 spin_lock(&cdev->spinlock); in activate_substream()
56 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in activate_substream()
57 cdev->sub_playback[sub->number] = sub; in activate_substream()
59 cdev->sub_capture[sub->number] = sub; in activate_substream()
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/media/
Dqcom_camss.rst1 .. 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 …]
/kernel/linux/linux-4.19/Documentation/media/v4l-drivers/
Dqcom_camss.rst7 ------------
23 ----------------------------------
28 - 2 / 3 CSIPHY modules. They handle the Physical layer of the CSI2 receivers.
30 - 2 / 4 CSID (CSI Decoder) modules. They handle the Protocol and Application
34 - ISPIF (ISP Interface) module. Handles the routing of the data streams from
36 - 1 / 2 VFE (Video Front End) module(s). Contain a pipeline of image processing
46 -----------------------
50 - Input from camera sensor via CSIPHY;
51 - Generation of test input data by the TG in CSID;
52 - RDI interface of VFE
[all …]
/kernel/linux/linux-5.10/include/media/davinci/
Dvpfe_capture.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2008-2009 Texas Instruments Inc
12 #include <media/v4l2-dev.h>
16 #include <media/v4l2-fh.h>
17 #include <media/v4l2-ioctl.h>
18 #include <media/v4l2-device.h>
19 #include <media/videobuf-dma-contig.h>
32 #define CAPTURE_DRV_NAME "vpfe-capture"
53 /* Sub device name */
55 /* Sub device group id */
[all …]

12345678910>>...42