| /linux/include/media/ |
| H A D | v4l2-rect.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * v4l2-rect.h - v4l2_rect helper functions 14 * v4l2_rect_set_size_to() - copy the width/height values. 21 r->width = size->width; in v4l2_rect_set_size_to() 22 r->height = size->height; in v4l2_rect_set_size_to() 26 * v4l2_rect_set_min_size() - width and height of r should be >= min_size. 33 if (r->width < min_size->width) in v4l2_rect_set_min_size() 34 r->width = min_size->width; in v4l2_rect_set_min_size() 35 if (r->height < min_size->height) in v4l2_rect_set_min_size() 36 r->height = min_size->height; in v4l2_rect_set_min_size() [all …]
|
| /linux/include/sound/sof/ |
| H A D | control.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 19 /* channel positions - uses same values as ALSA */ 24 SOF_CHMAP_FL, /**< front left */ 26 SOF_CHMAP_RL, /**< rear left */ 30 SOF_CHMAP_SL, /**< side left */ 33 SOF_CHMAP_FLC, /**< front left centre */ 35 SOF_CHMAP_RLC, /**< rear left centre */ 37 SOF_CHMAP_FLW, /**< front left wide */ 39 SOF_CHMAP_FLH, /**< front left high */ 42 SOF_CHMAP_TC, /**< top centre */ [all …]
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_draw.c | 17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 23 #include <linux/iosys-map.h> 57 dev_clips->num_rects = num_clips; in drawable_set_clipping() 58 dev_clips->chunk.next_chunk = 0; in drawable_set_clipping() 59 dev_clips->chunk.prev_chunk = 0; in drawable_set_clipping() 60 dev_clips->chunk.data_size = sizeof(struct qxl_rect) * num_clips; in drawable_set_clipping() 61 return (struct qxl_rect *)dev_clips->chunk.data; in drawable_set_clipping() 88 return -ENOMEM; in make_drawable() 90 drawable->type = type; in make_drawable() 92 drawable->surface_id = surface; /* Only primary for now */ in make_drawable() [all …]
|
| /linux/Documentation/sound/designs/ |
| H A D | channel-mapping-api.rst | 2 ALSA PCM channel-mapping API 18 ``{ front left, front right, rear left, rear right }.`` 38 the kernel/user-space ABI perspective. It uses only the existing 57 --- 61 ``type data-bytes ch0 ch1 ch2...`` 71 type is where pair-wise channels are swappable. For example, when you 88 /* this follows the alsa-lib mixer channel value + 3 */ 89 SNDRV_CHMAP_FL, /* front left */ 91 SNDRV_CHMAP_RL, /* rear left */ 95 SNDRV_CHMAP_SL, /* side left */ [all …]
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_voutlib.c | 4 * Copyright (C) 2005-2010 Texas Instruments. 11 * Video-for-Linux (Version 2) camera capture driver for 27 #include <linux/dma-mapping.h> 46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop() 47 pix->width : fbuf->fmt.width; in omap_vout_default_crop() 48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop() 49 pix->height : fbuf->fmt.height; in omap_vout_default_crop() 50 crop->width &= ~1; in omap_vout_default_crop() 51 crop->height &= ~1; in omap_vout_default_crop() 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop() [all …]
|
| H A D | omap_vout_vrfb.c | 17 #include <media/v4l2-device.h> 36 if (!vout->smsshado_virt_addr[i]) { in omap_vout_allocate_vrfb_buffers() 37 vout->smsshado_virt_addr[i] = in omap_vout_allocate_vrfb_buffers() 38 omap_vout_alloc_buffer(vout->smsshado_size, in omap_vout_allocate_vrfb_buffers() 39 &vout->smsshado_phy_addr[i]); in omap_vout_allocate_vrfb_buffers() 41 if (!vout->smsshado_virt_addr[i] && startindex != -1) { in omap_vout_allocate_vrfb_buffers() 42 if (vout->vq.memory == V4L2_MEMORY_MMAP && i >= startindex) in omap_vout_allocate_vrfb_buffers() 45 if (!vout->smsshado_virt_addr[i]) { in omap_vout_allocate_vrfb_buffers() 48 vout->smsshado_virt_addr[j], in omap_vout_allocate_vrfb_buffers() 49 vout->smsshado_size); in omap_vout_allocate_vrfb_buffers() [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | selection-api-configuration.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 20 :ref:`constraint flags <v4l2-selection-flags>`. 26 See figure :ref:`sel-targets-capture` for examples of the selection 30 The range of coordinates of the top left corner, width and height of 32 target. It is recommended for the driver developers to put the top/left 36 The top left corner, width and height of the source rectangle, that is 51 coordinates are expressed in pixels. The rectangle's top/left corner 63 :ref:`constraint flags <v4l2-selection-flags>`. 91 All coordinates are expressed in pixels. The top/left corner is always 95 The top left corner, width and height of the source rectangle, that is [all …]
|
| H A D | dev-overlay.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 11 Video overlay devices have the ability to genlock (TV-)video into the 12 (VGA-)video signal of a graphics card, or to store captured images 62 :ref:`streaming parameter <streaming-par>` ioctls as needed. The 93 1. Chroma-keying displays the overlaid image only where pixels in the 162 ------------------ 165 Size and position of the window relative to the top, left corner of 181 When chroma-keying has been negotiated with 187 :ref:`V4L2_PIX_FMT_BGR24 <V4L2-PIX-FMT-BGR32>` the value should 192 When chroma-keying has *not* been negotiated and [all …]
|
| H A D | vidioc-cropcap.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_CROPCAP - Information about the video cropping and scaling abilities 43 support cropping and/or scaling and/or have non-square pixels, and for 50 .. flat-table:: struct v4l2_cropcap 51 :header-rows: 0 52 :stub-columns: 0 55 * - __u32 56 - ``type`` 57 - Type of the data stream, set by the application. Only these types 61 * - struct :ref:`v4l2_rect <v4l2-rect-crop>` [all …]
|
| H A D | ext-ctrls-detect.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _detect-controls: 13 .. _detect-control-id: 28 .. flat-table:: 29 :header-rows: 0 30 :stub-columns: 0 32 * - ``V4L2_DETECT_MD_MODE_DISABLED`` 33 - Disable motion detection. 34 * - ``V4L2_DETECT_MD_MODE_GLOBAL`` 35 - Use a single motion detection threshold. [all …]
|
| /linux/include/uapi/linux/ |
| H A D | virtio_snd.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 132 /* 0 ... virtio_snd_config::jacks - 1 */ 172 /* 0 ... virtio_snd_config::streams - 1 */ 279 /* 0 ... virtio_snd_config::streams - 1 */ 297 /* 0 ... virtio_snd_config::chmaps - 1 */ 306 VIRTIO_SND_CHMAP_FL, /* front left */ 308 VIRTIO_SND_CHMAP_RL, /* rear left */ 312 VIRTIO_SND_CHMAP_SL, /* side left */ 315 VIRTIO_SND_CHMAP_FLC, /* front left center */ 317 VIRTIO_SND_CHMAP_RLC, /* rear left center */ [all …]
|
| /linux/drivers/media/platform/mediatek/mdp3/ |
| H A D | mtk-mdp3-type.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com> 18 s32 left; member 19 s32 top; member 29 s32 left; member 31 s32 top; member 36 s32 left; member 37 s32 top; member
|
| /linux/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_uif.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * vsp1_uif.c -- R-Car VSP1 User Logic Interface 5 * Copyright (C) 2017-2018 Laurent Pinchart 14 #include <media/media-entity.h> 15 #include <media/v4l2-subdev.h> 25 /* ----------------------------------------------------------------------------- 31 return vsp1_read(uif->entity.vsp1, in vsp1_uif_read() 32 uif->entity.index * VI6_UIF_OFFSET + reg); in vsp1_uif_read() 38 vsp1_dl_body_write(dlb, reg + uif->entity.index * VI6_UIF_OFFSET, data); in vsp1_uif_write() 46 /* ----------------------------------------------------------------------------- [all …]
|
| /linux/Documentation/driver-api/media/drivers/ |
| H A D | sh_mobile_ceu_camera.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 ----------- 12 host scales: -"- host driver 17 --------------------------------- 19 .. code-block:: none 21 -1-- 23 -2-- -\ 24 | --\ 25 | --\ 26 +-5-- . -- -3-- -\ [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun4i-a10-inet9f-rev03.dts | 4 * This file is dual-licensed: you can use it either under the terms 43 /dts-v1/; 44 #include "sun4i-a10.dtsi" 45 #include "sunxi-common-regulators.dtsi" 46 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/input/input.h> 48 #include <dt-bindings/interrupt-controller/irq.h> 51 model = "iNet-9F Rev 03"; 52 compatible = "inet-tek,inet9f-rev03", "allwinner,sun4i-a10"; 59 stdout-path = "serial0:115200n8"; [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | arcfb.c | 2 * linux/drivers/video/arcfb.c -- FB driver for Arc monochrome LCD board 17 * GPIO-less system, the board can be tested by connecting the respective sigs 24 * - testing with 4x4 25 * - testing with interrupt hw 28 * - User must set tuhold. It's in microseconds. According to the 108 spec, 30 * - User must set num_cols=x num_rows=y, eg: x=2 means 128 31 * - User must set arcfb_enable=1 to enable it 32 * - User must set dio_addr=0xIOADDR cio_addr=0xIOADDR 53 #define floorXres(a,xres) (a&(~(xres - 1))) 56 #define ceilXres(a,xres) (a|(xres - 1)) [all …]
|
| /linux/Documentation/input/ |
| H A D | gamepad.rst | 1 --------------------------- 3 --------------------------- 11 having user-space deal with different button-mappings for each gamepad, this 25 | <===DP===> |SE| |ST| (W) -|- (E) | | 35 D-Pad Left Right Action Pad 43 - Action-Pad 44 4 buttons in diamonds-shape (on the right side). The buttons are 47 - D-Pad (Direction-pad) 48 4 buttons (on the left side) that point up, down, left and right. 49 - Menu-Pad [all …]
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_hw_util.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. 15 #define REG_MASK(n) ((BIT(n)) - 1) 41 * struct dpu_hw_blk - opaque hardware block object 59 * @ adjust_a: A-coefficients for mapping curve 60 * @ adjust_b: B-coefficients for mapping curve 61 * @ adjust_c: C-coefficients for mapping curve 160 * struct dpu_drm_pix_ext_v1 - version 1 of pixel ext structure 163 * @left_ftch: Number of extra pixels to overfetch from left [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | DefaultKeyAssignments | 8 InsKeyPad-period means hold down the insert key like a shift key and 11 KeyPad-8 Say current Line 12 InsKeyPad-8 say from top of screen to reading cursor. 13 KeyPad-7 Say Previous Line (UP one line) 14 KeyPad-9 Say Next Line (down one line) 15 KeyPad-5 Say Current Word 16 InsKeyPad-5 Spell Current Word 17 KeyPad-4 Say Previous Word (left one word) 18 InsKeyPad-4 say from left edge of line to reading cursor. 19 KeyPad-6 Say Next Word (right one word) [all …]
|
| /linux/drivers/md/persistent-data/ |
| H A D | dm-btree.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include "dm-btree-internal.h" 9 #include "dm-space-map.h" 10 #include "dm-transaction-manager.h" 13 #include <linux/device-mapper.h> 18 *-------------------------------------------------------------- 20 *-------------------------------------------------------------- 36 (nr_elts - index) * elt_size); in array_insert() 41 /*----------------------------------------------------------------*/ 46 int lo = -1, hi = le32_to_cpu(n->header.nr_entries); in bsearch() [all …]
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-scaler.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * vimc-scaler.c Virtual Media Controller Driver 5 * Copyright (C) 2015-2017 Helen Koike <helen.fornazier@gmail.com> 11 #include <linux/v4l2-mediabus.h> 12 #include <media/v4l2-rect.h> 13 #include <media/v4l2-subdev.h> 15 #include "vimc-common.h" 56 .top = 0, 57 .left = 0, 63 .top = 0, [all …]
|
| /linux/sound/usb/ |
| H A D | stream.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/usb/audio-v2.h> 11 #include <linux/usb/audio-v3.h> 33 list_del(&fp->list); /* unlink for avoiding double-free */ in audioformat_free() 34 kfree(fp->rate_table); in audioformat_free() 35 kfree(fp->chmap); in audioformat_free() 46 if (!subs->num_formats) in free_substream() 48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream() 50 kfree(subs->str_pd); in free_substream() 60 free_substream(&stream->substream[0]); in snd_usb_audio_stream_free() [all …]
|
| /linux/drivers/media/platform/samsung/s5p-g2d/ |
| H A D | g2d-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Samsung S5P G2D - 2D Graphics Accelerator Driver 32 #define SRC_LEFT_TOP_REG 0x0310 /* Src Left Top Coordinate reg */ 43 #define DST_LEFT_TOP_REG 0x0410 /* Dest Left Top Coordinate reg */ 50 #define PAT_OFFSET_REG 0x050C /* Pattern Left Top Coordinate reg */
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_rect_test.c | 1 // SPDX-License-Identifier: GPL-2.0 19 KUNIT_EXPECT_EQ(test, r->x1, expected->x1); in drm_rect_compare() 20 KUNIT_EXPECT_EQ(test, r->y1, expected->y1); in drm_rect_compare() 104 /* 1:1 scaling top/left clip */ in drm_test_rect_clip_scaled_clipped() 132 /* 2:1 scaling top/left clip */ in drm_test_rect_clip_scaled_clipped() 160 /* 1:2 scaling top/left clip */ in drm_test_rect_clip_scaled_clipped() 195 * 'clip.x2 - dst.x1 >= dst width' could result a negative in drm_test_rect_clip_scaled_signed_vs_unsigned() 221 .description = "top-left x bottom-right", 228 .description = "top-right x bottom-left", 230 .r2 = DRM_RECT_INIT(1, -1, 2, 2), [all …]
|
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | meson-g12b-odroid-go-ultra.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-g12b-s922x.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/gpio/meson-g12a-gpio.h> 12 #include <dt-bindings/sound/meson-g12a-toacodec.h> 13 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 16 compatible = "hardkernel,odroid-go-ultra", "amlogic,s922x", "amlogic,g12b"; 17 model = "Hardkernel ODROID-GO-Ultra"; [all …]
|