Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/
H A 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
21 - adi,adau7118
26 "#sound-dai-cells":
29 iovdd-supply:
32 dvdd-supply:
35 adi,decimation-ratio:
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/
H A 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 …]
H A Dqcom,pm8xxx-xoadc.txt8 - 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 …]
/OK3568_Linux_fs/kernel/drivers/media/platform/ti-vpe/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dqcom-vadc-common.h1 /* 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
H A Dqcom-spmi-adc5.c1 // 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 …]
H A 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>
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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_catalog.h1 /* 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 …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/binary/src/
H A Dbinary.c1 // 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 …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/
H A Dvideoio.hpp13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
54 - @ref videoio_overview
55 - Tutorials: @ref tutorial_table_of_content_videoio
104 CAP_ANDROID = 1000, //!< Android - not used
118 CAP_OPENCV_MJPEG = 2200, //!< Built-in OpenCV MotionJPEG codec
131 CAP_PROP_POS_FRAMES =1, //!< 0-based index of the frame to be decoded/captured next.
136 CAP_PROP_FOURCC =6, //!< 4-character code of codec. see VideoWriter::fourcc .
139 CAP_PROP_MODE =9, //!< Backend-specific value indicating the current capture mode.
169 CAP_PROP_SAR_NUM =40, //!< Sample aspect ratio: num/den (num)
170 CAP_PROP_SAR_DEN =41, //!< Sample aspect ratio: num/den (den)
[all …]
H A Dfeatures2d.hpp13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
65 - An example explaining keypoint matching can be found at
67 - An example on descriptor matching evaluation can be found at
69 - An example on one to many image matching can be found at
78 - A complete Bag-Of-Words sample can be found at
80 - (Python) An example using the features2D framework to perform object categorization can be
154 @param mask Mask specifying where to look for keypoints (optional). It must be a 8-bit integer
155 matrix with non-zero values in the region of interest.
181 descriptor for keypoint j-th keypoint.
195 descriptor for keypoint j-th keypoint.
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/zoran/
H A Dzr36060.c1 // 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 …]
H A Dzr36050.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A 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 …]
H A Dnau8824.c1 // 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 …]
H A Dnau8825.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/media/pci/cx18/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/frame/src/
H A Dframe.c1 // 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 …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/
H A Dfeatures2d.hpp13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
65 - An example explaining keypoint matching can be found at
67 - An example on descriptor matching evaluation can be found at
69 - An example on one to many image matching can be found at
78 - A complete Bag-Of-Words sample can be found at
80 - (Python) An example using the features2D framework to perform object categorization can be
154 @param mask Mask specifying where to look for keypoints (optional). It must be a 8-bit integer
155 matrix with non-zero values in the region of interest.
181 descriptor for keypoint j-th keypoint.
195 descriptor for keypoint j-th keypoint.
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/
H A Dfeatures2d.hpp13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
65 - An example explaining keypoint matching can be found at
67 - An example on descriptor matching evaluation can be found at
69 - An example on one to many image matching can be found at
78 - A complete Bag-Of-Words sample can be found at
80 - (Python) An example using the features2D framework to perform object categorization can be
154 @param mask Mask specifying where to look for keypoints (optional). It must be a 8-bit integer
155 matrix with non-zero values in the region of interest.
181 descriptor for keypoint j-th keypoint.
195 descriptor for keypoint j-th keypoint.
[all …]
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Ddw_hdmi.c2 * (C) Copyright 2008-2017 Fuzhou Rockchip Electronics Co., Ltd
4 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch-rockchip/clock.h>
19 #include <linux/media-bus-format.h>
35 * slow so we pre-compute values we expect to see.
215 writel(val, hdmi->regs + (offset << 2)); in dw_hdmi_writel()
220 return readl(hdmi->regs + (offset << 2)); in dw_hdmi_readl()
225 writeb(val, hdmi->regs + offset); in dw_hdmi_writeb()
230 return readb(hdmi->regs + offset); in dw_hdmi_readb()
235 hdmi->write(hdmi, val, offset); in hdmi_writeb()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/ipu-v3/
H A 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>
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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vc4/
H A Dvc4_plane.c1 // 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 …]

12