| /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-4.19/Documentation/devicetree/bindings/iio/adc/ |
| D | qcom,spmi-vadc.txt | 4 voltage. The VADC is a 15-bit sigma-delta ADC. 8 - compatible: 11 Definition: Should contain "qcom,spmi-vadc". 13 - reg: 15 Value type: <prop-encoded-array> 18 - #address-cells: 24 - #size-cells: 29 - #io-channel-cells: 33 Documentation/devicetree/bindings/iio/iio-bindings.txt 35 - interrupts: [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-4.19/drivers/media/platform/ti-vpe/ |
| D | sc.c | 26 struct device *dev = &sc->pdev->dev; in sc_dump_regs() 28 #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \ in sc_dump_regs() 29 ioread32(sc->base + CFG_##r)) in sc_dump_regs() 31 dev_dbg(dev, "SC Registers @ %pa:\n", &sc->res->start); in sc_dump_regs() 61 * set the horizontal scaler coefficients according to the ratio of output to 62 * input widths, after accounting for up to two levels of decimation 77 dst_w <<= 1; /* first level decimation */ in sc_set_hs_coeffs() 79 dst_w <<= 1; /* second level decimation */ in sc_set_hs_coeffs() 87 idx = HS_LT_9_16_SCALE + sixteenths - 8; in sc_set_hs_coeffs() 102 coeff_h += SC_NUM_TAPS_MEM_ALIGN - SC_H_NUM_TAPS; 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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/msm/disp/dpu1/ |
| D | dpu_hw_catalog.h | 1 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 100 * SSPP sub-blocks/features 106 * @DPU_SSPP_CSC_10BIT, Support of 10-bit Color space conversion 109 * @DPU_SSPP_QOS_8LVL, SSPP support 8-level QoS control 138 * MIXER sub-blocks/features 140 * @DPU_MIXER_SOURCESPLIT Layer mixer supports source-split configuration 154 * PINGPONG sub-blocks 172 * CTL sub-blocks 182 * VBIF sub-blocks and features 194 * MACRO DPU_HW_BLK_INFO - information of HW blocks inside DPU [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-4.19/drivers/staging/media/davinci_vpfe/ |
| D | dm365_ipipeif.c | 15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 83 if (dpc->en) { in ipipeif_config_dpc() 84 val = (dpc->en & 1) << IPIPEIF_DPC2_EN_SHIFT; in ipipeif_config_dpc() 85 val |= dpc->thr & IPIPEIF_DPC2_THR_MASK; in ipipeif_config_dpc() 100 return -EINVAL; in get_oneshot_mode() 108 informat = &ipipeif->formats[IPIPEIF_PAD_SINK]; in ipipeif_get_cfg_src1() 109 if (ipipeif->input == IPIPEIF_INPUT_MEMORY && in ipipeif_get_cfg_src1() 110 (informat->code == MEDIA_BUS_FMT_Y8_1X8 || in ipipeif_get_cfg_src1() 111 informat->code == MEDIA_BUS_FMT_UV8_1X8)) in ipipeif_get_cfg_src1() 122 informat = &ipipeif->formats[IPIPEIF_PAD_SINK]; in ipipeif_get_data_shift() [all …]
|
| D | dm365_resizer.c | 15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 52 /* resizer_calculate_line_length() - This function calculates the line length of 83 if (format->code != MEDIA_BUS_FMT_UYVY8_2X8 && in resizer_validate_output_image_format() 84 format->code != MEDIA_BUS_FMT_Y8_1X8 && in resizer_validate_output_image_format() 85 format->code != MEDIA_BUS_FMT_UV8_1X8 && in resizer_validate_output_image_format() 86 format->code != MEDIA_BUS_FMT_YDYUYDYV8_1X16 && in resizer_validate_output_image_format() 87 format->code != MEDIA_BUS_FMT_SGRBG12_1X12) { in resizer_validate_output_image_format() 88 dev_err(dev, "Invalid Mbus format, %d\n", format->code); in resizer_validate_output_image_format() 89 return -EINVAL; in resizer_validate_output_image_format() 91 if (!format->width || !format->height) { in resizer_validate_output_image_format() [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-4.19/drivers/media/dvb-frontends/ |
| D | cx24110.c | 2 cx24110 - Single Chip Satellite Channel Receiver driver module 4 Copyright (C) 2002 Peter Hettkamp <peter.hettkamp@htp-tel.de> based on 87 /* leave front-end AGC parameters at default values */ 88 /* leave decimation AGC parameters at default values */ 95 {0x41,0x00}, /* @ MSB of front-end derotator frequency */ 103 {0x61,0x95}, /* GPIO pins 1-4 have special function */ 119 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; in cx24110_writereg() 122 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { in cx24110_writereg() 125 return -EREMOTEIO; in cx24110_writereg() 136 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in cx24110_readreg() [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/media/zoran/ |
| D | zr36060.c | 8 * ------------------------------------------------------------------------ 20 * ------------------------------------------------------------------------ 56 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 78 if (ptr->codec->master_data->readreg) in zr36060_read() 79 value = (ptr->codec->master_data->readreg(ptr->codec, in zr36060_read() 84 ptr->name); in zr36060_read() 86 //dprintk(4, "%s: reading from 0x%04x: %02x\n",ptr->name,reg,value); in zr36060_read() 96 //dprintk(4, "%s: writing 0x%02x to 0x%04x\n",ptr->name,value,reg); in zr36060_write() 100 if (ptr->codec->master_data->writereg) in zr36060_write() 101 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write() [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 …]
|
| /kernel/linux/linux-4.19/drivers/iio/adc/ |
| 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> 22 #include "stm32-dfsdm.h" 66 unsigned int sample_freq; /* Sample frequency after filter decimation */ 110 for (p = list; p && p->name; p++) in stm32_dfsdm_str2val() 111 if (!strcmp(p->name, str)) in stm32_dfsdm_str2val() 112 return p->val; in stm32_dfsdm_str2val() [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-4.19/drivers/media/i2c/ |
| D | bt819.c | 2 * bt819 - BT819A VideoStream Decoder (Rockwell Part) 11 * - moved over to linux>=2.4.x i2c protocol (9/9/2002) 34 #include <media/v4l2-device.h> 35 #include <media/v4l2-ctrls.h> 38 MODULE_DESCRIPTION("Brooktree-819 video decoder driver"); 44 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 47 /* ----------------------------------------------------------------------- */ 66 return &container_of(ctrl->handler, struct bt819, hdl)->sd; in to_sd() 80 {864 - 24, 20, 625 - 2, 1, 0x0504, 0x0000}, 81 {858 - 24, 20, 525 - 2, 1, 0x00f8, 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-4.19/drivers/media/pci/cx18/ |
| D | cx18-av-core.c | 4 * Derived from cx25840-core.c 20 #include "cx18-driver.h" 21 #include "cx18-io.h" 22 #include "cx18-cards.h" 115 /* xtal * 0xe.2913d68/0x16 = 48000 * 384: 406 MHz pre post-div*/ in cx18_av_init() 136 /* enable sleep mode - register appears to be read only... */ in cx18_av_initialize() 176 * Disable Video Auto-config of the Analog Front End and Video PLL. in cx18_av_initialize() 180 * 0x102 (CXADEC_CHIP_CTRL), 0x104-0x106 (CXADEC_AFE_CTRL), in cx18_av_initialize() 181 * 0x108-0x109 (CXADEC_PLL_CTRL1), and 0x10c-0x10f (CXADEC_VID_PLL_FRAC) in cx18_av_initialize() 182 * ourselves, than to run around cleaning up after the auto-config. in cx18_av_initialize() [all …]
|