Home
last modified time | relevance | path

Searched +full:decimation +full:- +full:ratio (Results 1 – 25 of 25) sorted by relevance

/Linux-v6.6/Documentation/devicetree/bindings/sound/
Dadi,adau7118.yaml1 # 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
19 - $ref: dai-common.yaml#
24 - adi,adau7118
29 "#sound-dai-cells":
32 iovdd-supply:
35 dvdd-supply:
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/thermal/
Dqcom-spmi-adc-tm5.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm5.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
14 - qcom,spmi-adc-tm5
15 - qcom,spmi-adc-tm5-gen2
16 - qcom,adc-tm7 # Incomplete / subject to change
24 "#thermal-sensor-cells":
30 "#address-cells":
[all …]
Dqcom-spmi-adc-tm-hc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
13 const: qcom,spmi-adc-tm-hc
21 "#thermal-sensor-cells":
27 "#address-cells":
30 "#size-cells":
33 qcom,avg-samples:
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/iio/adc/
Dqcom,spmi-vadc.yaml1 # 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 …]
Dqcom,pm8018-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/qcom,pm8018-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
19 - qcom,pm8018-adc
20 - qcom,pm8038-adc
21 - qcom,pm8058-adc
22 - qcom,pm8921-adc
29 xoadc-ref-supply:
[all …]
/Linux-v6.6/drivers/media/platform/ti/vpe/
Dsc.c1 // 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 …]
/Linux-v6.6/drivers/iio/adc/
Dqcom-spmi-adc5.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/iio/adc/qcom-vadc-common.h>
23 #include <dt-bindings/iio/qcom,spmi-vadc.h>
74 * Conversion time varies based on the decimation, clock rate, fast average
104 * struct adc5_channel_prop - ADC channel property.
108 * @decimation: sampling rate supported for the channel.
123 unsigned int decimation; member
133 * struct adc5_chip - ADC private structure.
160 return regmap_bulk_read(adc->regmap, adc->base + offset, data, len); in adc5_read()
165 return regmap_bulk_write(adc->regmap, adc->base + offset, data, len); in adc5_write()
[all …]
Dstm32-dfsdm-adc.c1 // 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>
28 #include "stm32-dfsdm.h"
43 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */
47 * Data from filters are in the range +/-2^(n-1)
[all …]
/Linux-v6.6/drivers/staging/media/atomisp/pci/runtime/binary/src/
Dbinary.c1 // SPDX-License-Identifier: GPL-2.0
57 if (info->enable.dvs_envelope) { in ia_css_binary_dvs_env()
59 binary_dvs_env->width = max(dvs_env->width, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env()
60 binary_dvs_env->height = max(dvs_env->height, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env()
74 bool binary_supports_yuv_ds = info->enable.ds & 2; in ia_css_binary_internal_res()
83 isp_tmp_internal_width = in_info->res.width in ia_css_binary_internal_res()
84 + info->pipeline.left_cropping + binary_dvs_env.width; in ia_css_binary_internal_res()
85 isp_tmp_internal_height = in_info->res.height in ia_css_binary_internal_res()
86 + info->pipeline.top_cropping + binary_dvs_env.height; in ia_css_binary_internal_res()
91 (bds_out_info->res.width >= out_info->res.width)) { in ia_css_binary_internal_res()
[all …]
/Linux-v6.6/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_catalog.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
4 * Copyright (c) 2015-2018, 2020 The Linux Foundation. All rights reserved.
52 * SSPP sub-blocks/features
59 * @DPU_SSPP_CSC_10BIT, Support of 10-bit Color space conversion
62 * @DPU_SSPP_QOS_8LVL, SSPP support 8-level QoS control
94 * MIXER sub-blocks/features
96 * @DPU_MIXER_SOURCESPLIT Layer mixer supports source-split configuration
112 * DSPP sub-blocks
121 * PINGPONG sub-blocks
[all …]
/Linux-v6.6/drivers/media/pci/zoran/
Dzr36060.c1 // SPDX-License-Identifier: GPL-2.0-or-later
44 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_read()
47 if (ptr->codec->master_data->readreg) in zr36060_read()
48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xff; in zr36060_read()
50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read()
57 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_write()
62 if (ptr->codec->master_data->writereg) in zr36060_write()
63 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write()
65 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write()
77 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status()
[all …]
Dzr36050.c1 // SPDX-License-Identifier: GPL-2.0-or-later
43 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_read()
47 if (ptr->codec->master_data->readreg) in zr36050_read()
48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36050_read()
50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read()
52 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read()
59 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_write()
61 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write()
64 if (ptr->codec->master_data->writereg) in zr36050_write()
65 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36050_write()
[all …]
/Linux-v6.6/drivers/media/dvb-frontends/
Dcx24110.c1 // 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 …]
/Linux-v6.6/sound/soc/codecs/
Dadau7118.c1 // 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 …]
Dnau8821.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // nau8821.c -- Nuvoton NAU88L21 audio codec driver
7 // Co-author: Seven Lee <wtli@nuvoton.com>
32 static int quirk_override = -1;
34 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
51 int ratio; member
79 /* ratio for input clk freq */
285 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8821_biq_coeff_get()
287 if (!component->regmap) in nau8821_biq_coeff_get()
288 return -EINVAL; in nau8821_biq_coeff_get()
[all …]
Dnau8824.c1 // SPDX-License-Identifier: GPL-2.0-only
35 static int quirk_override = -1;
37 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
68 /* ratio for input clk freq */
211 ret = down_timeout(&nau8824->jd_sem, timeout); in nau8824_sema_acquire()
213 dev_warn(nau8824->dev, "Acquire semaphore timeout\n"); in nau8824_sema_acquire()
215 ret = down_interruptible(&nau8824->jd_sem); in nau8824_sema_acquire()
217 dev_warn(nau8824->dev, "Acquire semaphore fail\n"); in nau8824_sema_acquire()
225 up(&nau8824->jd_sem); in nau8824_sema_release()
304 "Off", "NC", "u-law", "A-law" };
[all …]
Dnau8825.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com>
35 #define NUVOTON_CODEC_DAI "nau8825-hifi"
54 int ratio; member
83 /* ratio for input clk freq */
223 * nau8825_sema_acquire - acquire the semaphore of nau88l25
233 * this function returns -ETIME. If the sleep is interrupted by a signal,
234 * this function will return -EINTR. It returns 0 if the semaphore was
246 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire()
248 dev_warn(nau8825->dev, "Acquire semaphore timeout\n"); in nau8825_sema_acquire()
[all …]
/Linux-v6.6/drivers/media/i2c/
Dbt819.c1 // 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 …]
/Linux-v6.6/drivers/media/pci/cx18/
Dcx18-av-core.c1 // 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 …]
/Linux-v6.6/sound/soc/fsl/
Dfsl_micfil.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
19 #include <linux/dma/imx-dma.h>
100 { .compatible = "fsl,imx8mm-micfil", .data = &fsl_micfil_imx8mm },
101 { .compatible = "fsl,imx8mp-micfil", .data = &fsl_micfil_imx8mp },
102 { .compatible = "fsl,imx93-micfil", .data = &fsl_micfil_imx93 },
126 switch (micfil->quality) { in micfil_set_quality()
147 return regmap_update_bits(micfil->regmap, REG_MICFIL_CTRL2, in micfil_set_quality()
158 ucontrol->value.integer.value[0] = micfil->quality; in micfil_quality_get()
169 micfil->quality = ucontrol->value.integer.value[0]; in micfil_quality_set()
185 "Cut-off @1750Hz",
[all …]
/Linux-v6.6/drivers/media/v4l2-core/
Dv4l2-ctrls-defs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2010-2021 Hans Verkuil <hverkuil-cisco@xs4all.nl>
9 #include <media/v4l2-ctrls.h>
26 "MPEG-1/2 Layer I", in v4l2_ctrl_get_menu()
27 "MPEG-1/2 Layer II", in v4l2_ctrl_get_menu()
28 "MPEG-1/2 Layer III", in v4l2_ctrl_get_menu()
29 "MPEG-2/4 AAC", in v4l2_ctrl_get_menu()
30 "AC-3", in v4l2_ctrl_get_menu()
128 "16-bit CRC", in v4l2_ctrl_get_menu()
141 "MPEG-1", in v4l2_ctrl_get_menu()
[all …]
/Linux-v6.6/drivers/gpu/ipu-v3/
Dipu-image-convert.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2012-2016 Mentor Graphics Inc.
9 #include <linux/dma-mapping.h>
12 #include <video/imx-ipu-image-convert.h>
14 #include "ipu-prv.h"
29 * the DMA channel's parameter memory!). IDMA double-buffering is used
30 * to convert each tile back-to-back when possible (see note below
36 * +---------+-----+
37 * +-----+---+ | A | B |
39 * +-----+---+ --> +---------+-----+
[all …]
/Linux-v6.6/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi.c1 // 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.
20 #include <linux/dma-mapping.h>
23 #include <media/cec-notifier.h>
25 #include <uapi/linux/media-bus-format.h>
38 #include "dw-hdmi-audio.h"
39 #include "dw-hdmi-cec.h"
40 #include "dw-hdmi.h"
[all …]
/Linux-v6.6/drivers/gpu/drm/vc4/
Dvc4_plane.c1 // SPDX-License-Identifier: GPL-2.0-only
264 return state->fb && !WARN_ON(!state->crtc); in plane_enabled()
271 if (WARN_ON(!plane->state)) in vc4_plane_duplicate_state()
274 vc4_state = kmemdup(plane->state, sizeof(*vc4_state), GFP_KERNEL); in vc4_plane_duplicate_state()
278 memset(&vc4_state->lbm, 0, sizeof(vc4_state->lbm)); in vc4_plane_duplicate_state()
279 vc4_state->dlist_initialized = 0; in vc4_plane_duplicate_state()
281 __drm_atomic_helper_plane_duplicate_state(plane, &vc4_state->base); in vc4_plane_duplicate_state()
283 if (vc4_state->dlist) { in vc4_plane_duplicate_state()
284 vc4_state->dlist = kmemdup(vc4_state->dlist, in vc4_plane_duplicate_state()
285 vc4_state->dlist_count * 4, in vc4_plane_duplicate_state()
[all …]
/Linux-v6.6/drivers/media/pci/bt8xx/
Dbttv-driver.c1 // 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 …]