| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | adi,adau7118.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nuno Sá <nuno.sa@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU7118.pdf 21 - adi,adau7118 26 "#sound-dai-cells": 29 iovdd-supply: 32 dvdd-supply: 35 adi,decimation-ratio: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | qcom,spmi-vadc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 15 voltage. The VADC is a 15-bit sigma-delta ADC. 17 voltage. The VADC is a 16-bit sigma-delta ADC. 22 - items: 23 - const: qcom,pms405-adc [all …]
|
| D | qcom,pm8xxx-xoadc.txt | 8 - compatible: should be one of: 9 "qcom,pm8018-adc" 10 "qcom,pm8038-adc" 11 "qcom,pm8058-adc" 12 "qcom,pm8921-adc" 14 - reg: should contain the ADC base address in the PMIC, typically 17 - xoadc-ref-supply: should reference a regulator that can supply 22 iio-bindings.txt for more details, but notice that this particular 26 - #address-cells: should be set to <2>, the first cell is the 33 - #size-cells: should be set to <0> [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
| D | sc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 struct device *dev = &sc->pdev->dev; in sc_dump_regs() 25 #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \ in sc_dump_regs() 26 ioread32(sc->base + CFG_##r)) in sc_dump_regs() 28 dev_dbg(dev, "SC Registers @ %pa:\n", &sc->res->start); in sc_dump_regs() 58 * set the horizontal scaler coefficients according to the ratio of output to 59 * input widths, after accounting for up to two levels of decimation 74 dst_w <<= 1; /* first level decimation */ in sc_set_hs_coeffs() 76 dst_w <<= 1; /* second level decimation */ in sc_set_hs_coeffs() 84 idx = HS_LT_9_16_SCALE + sixteenths - 8; in sc_set_hs_coeffs() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | qcom-vadc-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 /* Max ADC code represents full-scale range of 1.8V */ 32 /* Default decimation - 1024 for rev2, 840 for pmic5 */ 45 #define PMI_CHG_SCALE_1 -138890 55 #define DIE_TEMP_ADC7_SCALE_1 -60000 61 * struct vadc_map_pt - Map the graph representation for ADC channel 82 * struct vadc_linear_graph - Represent ADC characteristics. 97 * struct vadc_prescale_ratio - Represent scaling ratio for ADC input. 107 * enum vadc_scale_fn_type - Scaling function to convert ADC code to 154 unsigned int *decimation; member
|
| D | qcom-spmi-adc5.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <dt-bindings/iio/qcom,spmi-vadc.h> 22 #include "qcom-vadc-common.h" 73 * Conversion time varies based on the decimation, clock rate, fast average 103 * struct adc5_channel_prop - ADC channel property. 107 * @decimation: sampling rate supported for the channel. 122 unsigned int decimation; member 132 * struct adc5_chip - ADC private structure. 171 return regmap_bulk_read(adc->regmap, adc->base + offset, data, len); in adc5_read() 176 return regmap_bulk_write(adc->regmap, adc->base + offset, data, len); in adc5_write() [all …]
|
| D | stm32-dfsdm-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 10 #include <linux/dma-mapping.h> 11 #include <linux/iio/adc/stm32-dfsdm-adc.h> 13 #include <linux/iio/hw-consumer.h> 15 #include <linux/iio/timer/stm32-lptim-trigger.h> 16 #include <linux/iio/timer/stm32-timer-trigger.h> 27 #include "stm32-dfsdm.h" 42 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */ 46 * Data from filters are in the range +/-2^(n-1) [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
| D | dpu_hw_catalog.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 94 * SSPP sub-blocks/features 101 * @DPU_SSPP_CSC_10BIT, Support of 10-bit Color space conversion 104 * @DPU_SSPP_QOS_8LVL, SSPP support 8-level QoS control 134 * MIXER sub-blocks/features 136 * @DPU_MIXER_SOURCESPLIT Layer mixer supports source-split configuration 150 * DSPP sub-blocks 161 * PINGPONG sub-blocks 179 * CTL sub-blocks [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/binary/src/ |
| D | binary.c | 1 // SPDX-License-Identifier: GPL-2.0 55 if (info->enable.dvs_envelope) { in ia_css_binary_dvs_env() 57 binary_dvs_env->width = max(dvs_env->width, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env() 58 binary_dvs_env->height = max(dvs_env->height, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env() 72 bool binary_supports_yuv_ds = info->enable.ds & 2; in ia_css_binary_internal_res() 81 isp_tmp_internal_width = in_info->res.width in ia_css_binary_internal_res() 82 + info->pipeline.left_cropping + binary_dvs_env.width; in ia_css_binary_internal_res() 83 isp_tmp_internal_height = in_info->res.height in ia_css_binary_internal_res() 84 + info->pipeline.top_cropping + binary_dvs_env.height; in ia_css_binary_internal_res() 89 (bds_out_info->res.width >= out_info->res.width)) { in ia_css_binary_internal_res() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/zoran/ |
| D | zr36060.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 59 if (ptr->codec->master_data->readreg) in zr36060_read() 60 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xff; in zr36060_read() 62 pr_err("%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read() 72 if (ptr->codec->master_data->writereg) in zr36060_write() 73 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write() 75 pr_err("%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write() 87 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status() 90 return ptr->status; in zr36060_read_status() [all …]
|
| D | zr36050.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 57 if (ptr->codec->master_data->readreg) in zr36050_read() 58 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36050_read() 61 KERN_ERR "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read() 63 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read() 70 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write() 73 if (ptr->codec->master_data->writereg) in zr36050_write() 74 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36050_write() 79 ptr->name); in zr36050_write() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
| D | cx24110.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 cx24110 - Single Chip Satellite Channel Receiver driver module 5 Copyright (C) 2002 Peter Hettkamp <peter.hettkamp@htp-tel.de> based on 74 /* leave front-end AGC parameters at default values */ 75 /* leave decimation AGC parameters at default values */ 82 {0x41,0x00}, /* @ MSB of front-end derotator frequency */ 90 {0x61,0x95}, /* GPIO pins 1-4 have special function */ 106 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in cx24110_writereg() 109 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { in cx24110_writereg() 112 return -EREMOTEIO; in cx24110_writereg() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | adau7118.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Analog Devices ADAU7118 8 channel PDM-to-I2S/TDM Converter driver 128 snd_soc_component_get_drvdata(dai->component); in adau7118_set_channel_map() 131 dev_dbg(st->dev, "Set channel map, %d", tx_num); in adau7118_set_channel_map() 134 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_channel_map() 148 snd_soc_component_get_drvdata(dai->component); in adau7118_set_fmt() 152 dev_dbg(st->dev, "Set format, fmt:%d\n", fmt); in adau7118_set_fmt() 156 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt() 162 ret = snd_soc_component_update_bits(dai->component, in adau7118_set_fmt() 168 st->right_j = true; in adau7118_set_fmt() [all …]
|
| D | nau8824.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 static int quirk_override = -1; 36 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 67 /* ratio for input clk freq */ 210 ret = down_timeout(&nau8824->jd_sem, timeout); in nau8824_sema_acquire() 212 dev_warn(nau8824->dev, "Acquire semaphore timeout\n"); in nau8824_sema_acquire() 214 ret = down_interruptible(&nau8824->jd_sem); in nau8824_sema_acquire() 216 dev_warn(nau8824->dev, "Acquire semaphore fail\n"); in nau8824_sema_acquire() 224 up(&nau8824->jd_sem); in nau8824_sema_release() 303 "Off", "NC", "u-law", "A-law" }; [all …]
|
| D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com> 34 #define NUVOTON_CODEC_DAI "nau8825-hifi" 53 int ratio; member 81 /* ratio for input clk freq */ 238 * nau8825_sema_acquire - acquire the semaphore of nau88l25 248 * this function returns -ETIME. If the sleep is interrupted by a signal, 249 * this function will return -EINTR. It returns 0 if the semaphore was 261 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire() 263 dev_warn(nau8825->dev, "Acquire semaphore timeout\n"); in nau8825_sema_acquire() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/i2c/ |
| D | bt819.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * bt819 - BT819A VideoStream Decoder (Rockwell Part) 12 * - moved over to linux>=2.4.x i2c protocol (9/9/2002) 25 #include <media/v4l2-device.h> 26 #include <media/v4l2-ctrls.h> 29 MODULE_DESCRIPTION("Brooktree-819 video decoder driver"); 35 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 38 /* ----------------------------------------------------------------------- */ 57 return &container_of(ctrl->handler, struct bt819, hdl)->sd; in to_sd() 71 {864 - 24, 20, 625 - 2, 1, 0x0504, 0x0000}, [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
| D | cx18-av-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Derived from cx25840-core.c 11 #include "cx18-driver.h" 12 #include "cx18-io.h" 13 #include "cx18-cards.h" 106 /* xtal * 0xe.2913d68/0x16 = 48000 * 384: 406 MHz pre post-div*/ in cx18_av_init() 127 /* enable sleep mode - register appears to be read only... */ in cx18_av_initialize() 167 * Disable Video Auto-config of the Analog Front End and Video PLL. in cx18_av_initialize() 171 * 0x102 (CXADEC_CHIP_CTRL), 0x104-0x106 (CXADEC_AFE_CTRL), in cx18_av_initialize() 172 * 0x108-0x109 (CXADEC_PLL_CTRL1), and 0x10c-0x10f (CXADEC_VID_PLL_FRAC) in cx18_av_initialize() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
| D | frame.c | 1 // SPDX-License-Identifier: GPL-2.0 102 hmm_set(frame->data, 0, frame->data_bytes); in ia_css_frame_zero() 111 return -EINVAL; in ia_css_frame_allocate_from_info() 115 ia_css_frame_allocate(frame, info->res.width, info->res.height, in ia_css_frame_allocate_from_info() 116 info->format, info->padded_width, in ia_css_frame_allocate_from_info() 117 info->raw_bit_depth); in ia_css_frame_allocate_from_info() 133 return -EINVAL; in ia_css_frame_allocate() 145 (*frame)->data); in ia_css_frame_allocate() 149 (void *)-1, (unsigned int)-1); in ia_css_frame_allocate() 172 if (pgnr < ((PAGE_ALIGN(me->data_bytes)) >> PAGE_SHIFT)) { in ia_css_frame_map() [all …]
|
| /kernel/linux/patches/linux-5.10/imx8mm_patch/patches/ |
| D | 0009_linux_sound.patch | 7 Change-Id: Ic34341fbcce5e6d02fefc2acad4ea1058da94b66 9 diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c 11 --- a/sound/core/pcm_dmaengine.c 13 @@ -125,6 +125,8 @@ void snd_dmaengine_pcm_set_config_from_dai_data( 16 slave_config->slave_id = dma_data->slave_id; 17 + slave_config->peripheral_config = dma_data->peripheral_config; 18 + slave_config->peripheral_size = dma_data->peripheral_size; 22 diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c 24 --- a/sound/soc/codecs/hdmi-codec.c 25 +++ b/sound/soc/codecs/hdmi-codec.c [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
| D | ipu-image-convert.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2012-2016 Mentor Graphics Inc. 9 #include <linux/dma-mapping.h> 10 #include <video/imx-ipu-image-convert.h> 11 #include "ipu-prv.h" 26 * the DMA channel's parameter memory!). IDMA double-buffering is used 27 * to convert each tile back-to-back when possible (see note below 33 * +---------+-----+ 34 * +-----+---+ | A | B | 36 * +-----+---+ --> +---------+-----+ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
| D | vc4_plane.c | 1 // SPDX-License-Identifier: GPL-2.0-only 157 return state->fb && !WARN_ON(!state->crtc); in plane_enabled() 164 if (WARN_ON(!plane->state)) in vc4_plane_duplicate_state() 167 vc4_state = kmemdup(plane->state, sizeof(*vc4_state), GFP_KERNEL); in vc4_plane_duplicate_state() 171 memset(&vc4_state->lbm, 0, sizeof(vc4_state->lbm)); in vc4_plane_duplicate_state() 172 vc4_state->dlist_initialized = 0; in vc4_plane_duplicate_state() 174 __drm_atomic_helper_plane_duplicate_state(plane, &vc4_state->base); in vc4_plane_duplicate_state() 176 if (vc4_state->dlist) { in vc4_plane_duplicate_state() 177 vc4_state->dlist = kmemdup(vc4_state->dlist, in vc4_plane_duplicate_state() 178 vc4_state->dlist_count * 4, in vc4_plane_duplicate_state() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/bridge/synopsys/ |
| D | dw-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DesignWare High-Definition Multimedia Interface (HDMI) driver 5 * Copyright (C) 2013-2015 Mentor Graphics Inc. 6 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 19 #include <linux/dma-mapping.h> 22 #include <media/cec-notifier.h> 24 #include <uapi/linux/media-bus-format.h> 37 #include "dw-hdmi-audio.h" 38 #include "dw-hdmi-cec.h" 39 #include "dw-hdmi.h" [all …]
|
| /kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
| D | v4l2-ctrls.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #define pr_fmt(fmt) "v4l2-ctrls: " fmt 15 #include <media/v4l2-ctrls.h> 16 #include <media/v4l2-dev.h> 17 #include <media/v4l2-device.h> 18 #include <media/v4l2-event.h> 19 #include <media/v4l2-fwnode.h> 20 #include <media/v4l2-ioctl.h> 23 if (!WARN_ON(!(vdev)) && ((vdev)->dev_debug & V4L2_DEV_DEBUG_CTRL)) \ 29 (master->ops && master->ops->op) [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
| D | bttv-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 bttv - Bt848 frame grabber driver 6 Copyright (C) 1996,97,98 Ralph Metzler <rjkm@thp.uni-koeln.de> 7 & Marcus Metzler <mocm@thp.uni-koeln.de> 8 (c) 1999-2002 Gerd Knorr <kraxel@bytesex.org> 14 (c) 2005-2006 Nickolay V. Shmyrev <nshmyrev@yandex.ru> 38 #include <media/v4l2-common.h> 39 #include <media/v4l2-ioctl.h> 40 #include <media/v4l2-event.h> 42 #include <media/drv-intf/msp3400.h> [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
| D | sh_css.c | 1 // SPDX-License-Identifier: GPL-2.0 98 /* Name of the sp program: should not be built-in */ 109 #define STATS_ENABLED(stage) (stage && stage->binary && stage->binary->info && \ 110 (stage->binary->info->sp.enable.s3a || stage->binary->info->sp.enable.dis)) 143 /* A global struct for save/restore to hold all the data that should sustain power-down: 152 struct ia_css_env driver_env; /* driver-supplied env copy */ 195 * - 0, if the "stop" requests have been successfully sent out. 196 * - CSS error code, otherwise. 215 * - true, if all "ia_css_pipe" instances in the target "ia_css_stream" 217 * - false, otherwise. [all …]
|