| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwmon/ |
| H A D | ti,tmp513.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Eric Tremblay <etremblay@distech-controls.com> 14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 15 that include remote sensors, a local temperature sensor, and a high-side 17 remote temperatures, on-chip temperatures, and system voltage/power/current 28 - ti,tmp512 29 - ti,tmp513 34 shunt-resistor-micro-ohms: [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 /* Gain and Volume */ 33 /* -54dB */ 34 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 35 /* -52.5dB to 15dB */ 36 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 41 /* -78dB to 12dB */ 42 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 51 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 52 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); [all …]
|
| H A D | max9759.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <sound/soc-dapm.h> 22 unsigned int gain; member 28 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in pga_event() 32 gpiod_set_value_cansleep(priv->gpiod_shutdown, 0); in pga_event() 34 gpiod_set_value_cansleep(priv->gpiod_shutdown, 1); in pga_event() 48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get() 67 if (ucontrol->value.integer.value[0] < 0 || in speaker_gain_control_put() 68 ucontrol->value.integer.value[0] > 3) in speaker_gain_control_put() 69 return -EINVAL; in speaker_gain_control_put() [all …]
|
| H A D | mt6351.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6351.c -- mt6351 ALSA SoC audio codec driver 8 #include <linux/dma-mapping.h> 202 regmap_update_bits(cmpnt->regmap, MT6351_ZCD_CON2, in set_hp_gain_zero() 204 regmap_update_bits(cmpnt->regmap, MT6351_ZCD_CON2, in set_hp_gain_zero() 225 dev_warn(cmpnt->dev, "%s(), error rate %d, return 3", in get_cap_reg_val() 256 dev_warn(cmpnt->dev, "%s(), error rate %d, return 8", in get_play_reg_val() 266 struct snd_soc_component *cmpnt = dai->component; in mt6351_codec_dai_hw_params() 270 dev_dbg(priv->dev, "%s(), substream->stream %d, rate %d\n", in mt6351_codec_dai_hw_params() 271 __func__, substream->stream, rate); in mt6351_codec_dai_hw_params() [all …]
|
| H A D | mt6358.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6358.c -- mt6358 ALSA SoC audio codec driver 107 priv->mtkaif_protocol = mtkaif_protocol; in mt6358_set_mtkaif_protocol() 115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set() 117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set() 119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set() 130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset() 132 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset() 134 regmap_update_bits(priv->regmap, MT6358_GPIO_DIR0, in playback_gpio_reset() 141 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3_CLR, in capture_gpio_set() [all …]
|
| H A D | cpcap.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017 - 2018 Sebastian Reichel <sre@kernel.org> 8 * Copyright (C) 2007 - 2009 Motorola, Inc. 14 #include <linux/mfd/motorola-cpcap.h> 19 /* Register 513 CPCAP_REG_CC --- CODEC */ 37 /* Register 514 CPCAP_REG_CDI --- CODEC Digital Audio Interface */ 54 /* Register 515 CPCAP_REG_SDAC --- Stereo DAC */ 68 /* Register 516 CPCAP_REG_SDACDI --- Stereo DAC Digital Audio Interface */ 84 /* Register 517 CPCAP_REG_TXI --- TX Interface */ 102 /* Register 518 CPCAP_REG_TXMP --- Mic Gain */ [all …]
|
| H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include <linux/mfd/twl4030-audio.h> 59 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 71 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 81 return -EIO; in twl4030_read() 90 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 108 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 112 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 116 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
| H A D | cx20810_config.h | 55 0x0c, 0x3B, /* Enable I2S-TX and set Master Mode, enable ADC3/4 FIFO */ 58 0x30, 0x14, /* 7 wire mode,24-bit sample size,// Normal mode */ 69 * if using 20/16/12/8/4 dB gain, set register 72 0xBC, 0x28, /* ADC1 8dB Gain */ 73 0xBD, 0x28, /* ADC2 8dB Gain */ 74 0xBE, 0x28, /* ADC3 8dB Gain */ 75 0xBF, 0x28, /* ADC4 8dB Gain */ 84 *0xA0 , 0x0F ,// ADC1, Mute PGA, enable AAF/ADC/PGA 85 *0xA7 , 0x0F ,// ADC2, Mute PGA, enable AAF/ADC/PGA 86 *0xAE , 0x0F ,// ADC3, Mute PGA, enable AAF/ADC/PGA [all …]
|
| H A D | da7218.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7218.c - DA7218 ALSA SoC Codec Driver 22 #include <sound/soc-dapm.h> 37 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0); 38 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0); 39 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0); 40 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0); 50 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0); [all …]
|
| H A D | cs42l52.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l52.c -- CS42L52 ALSA SoC audio driver 28 #include <sound/soc-dapm.h> 130 static DECLARE_TLV_DB_SCALE(hl_tlv, -10200, 50, 0); 132 static DECLARE_TLV_DB_SCALE(hpd_tlv, -9600, 50, 1); 134 static DECLARE_TLV_DB_SCALE(ipd_tlv, -9600, 100, 0); 138 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0); 140 static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0); 142 static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0); 144 static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0); [all …]
|
| H A D | wm8940.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8940.c -- WM8940 ALSA Soc Audio driver 14 * No means to obtain current gain if alc enabled. 141 { 0x2d, 0x0050 }, /* PGA Gain */ 153 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" }; 171 static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1); 172 static DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0); 173 static DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0); 174 static DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0); 176 static DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 0); [all …]
|
| H A D | da7219.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7219.c - DA7219 ALSA SoC Codec Driver 13 #include <linux/clk-provider.h> 26 #include <sound/soc-dapm.h> 33 #include "da7219-aad.h" 41 static const DECLARE_TLV_DB_SCALE(da7219_mic_gain_tlv, -600, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7219_mixin_gain_tlv, -450, 150, 0); 43 static const DECLARE_TLV_DB_SCALE(da7219_adc_dig_gain_tlv, -8325, 75, 0); 44 static const DECLARE_TLV_DB_SCALE(da7219_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7219_sidetone_gain_tlv, -4200, 300, 0); [all …]
|
| H A D | es7243e_usr_cfg.h | 4 * Author: David Yang, <yangxiaohua@everest-semi.com> 6 * <info@everest-semi.com> 31 * In normal mode, ES7243E supports four digital formats including I2S, LJ, DSP-A and DSP-B, with 33 * In TDM mode, ES7243E only supports DSP-A TDM, doesn't support DSP-B TDM. 106 * to select PGA gain for different analog input channel 107 * user must allocate the PGA gain for each analog input channel 108 * ES7243E_MIC_ARRAY_AIN1_PGA to ES7243E_MIC_ARRAY_AIN16_PGA is used for PGA gain
|
| H A D | ml26124.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0); 55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0); 56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0); 57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0); 58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0); 60 static const char * const ml26124_companding[] = {"16bit PCM", "u-law", 61 "A-law"}; 119 SOC_DAPM_SINGLE("PGA Switch", ML26124_SPK_AMP_OUT, 5, 1, 0), 145 SND_SOC_DAPM_PGA("PGA", ML26124_PW_IN_PW_MNG, 3, 0, NULL, 0), [all …]
|
| H A D | da9055.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 /* Input - Gain, Select and Filter Registers */ 72 /* Output - Gain, Select and Filter Registers */ 286 /* Gain and Volume */ 289 0x0, 0x10, TLV_DB_SCALE_ITEM(-5400, 0, 0), 290 /* -54dB to 15dB */ 291 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0) 296 /* -78dB to 12dB */ 297 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 306 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); [all …]
|
| H A D | es8311.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * es8311.c -- ES8311/ES8312 ALSA SoC Audio Codec 7 * Authors: David Yang(yangxiaohua@everest-semi.com) 10 * Based on es8374.c by David Yang(yangxiaohua@everest-semi.com) 52 -9550, 50, true); 54 -9550, 50, true); 62 -3600, 200, false); 64 -3600, 200, false); 66 -9600, 600, false); 126 SOC_SINGLE_TLV("MIC PGA GAIN", ES8311_SYSTEM_REG14, [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/sound/soc/ |
| H A D | pops-clicks.rst | 23 shutdown and follows some basic rules:- 26 Startup Order :- DAC --> Mixers --> Output PGA --> Digital Unmute 28 Shutdown Order :- Digital Mute --> Output PGA --> Mixers --> DAC 31 a PGA (programmable gain amplifier) before being output to the speakers. 43 Startup Order - Input PGA --> Mixers --> ADC 45 Shutdown Order - ADC --> Mixers --> Input PGA 51 when a volume control is changed near its maximum gain value. The zipper noise 52 is heard when the gain increase or decrease changes the mean audio signal 54 for each volume control. The ZC forces the gain change to occur when the signal
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/ |
| H A D | es8311.txt | 5 - compatible: "everest,es8311" 6 - reg: the I2C address of the device for I2C 7 - spk-ctl-gpios: control spk enable/disable 10 - clocks: The phandle of the master clock to the CODEC 11 - clock-names: Should be "mclk" 12 - adc-pga-gain: The PGA Gain of ADC, the value range is: 0(0dB) ~ 10(30dB), 14 - adc-volume: The volume of ADC, range is: 0x00(-95dB) ~ 0xff(+32dB), 0dB is 0xbf. 15 - dac-volume: The volume of DAC, range is: 0x00(-95dB) ~ 0xff(+32dB), 0dB is 0xbf. 16 - aec-mode: The string of description AEC path between ADC and DAC, It should be: 24 And aec-mode is "adc left, adc right" by default, if the property [all …]
|
| /OK3568_Linux_fs/external/rockchip-test/audio/ |
| H A D | test_loopback.sh | 10 amixer set "Right PGA Mux" "DifferentialR" 11 amixer set "Left PGA Mux" "DifferentialL" 20 # PGA gain 44 if [ -n "$1" ]; then 48 if [ -n "$2" ]; then 52 # play_gain_tbl="-30 -25 -20 -15 -10 -5 0 5 10 15 20 25 30" 53 play_gain_tbl="-30" 54 set -- $play_gain_tbl 60 mkdir -p $PATH_CAPTURE 70 # playback -> capture -> playback [all …]
|
| H A D | audio_functions_test.sh | 17 echo -n "Please select a test case: " 22 mkdir -p $PATH_AUDIO 28 amixer set "Right PGA Mux" "DifferentialR" 29 amixer set "Left PGA Mux" "DifferentialL" 43 gain=-30 46 if [ -n "$1" ]; then 50 while [ $ch -ge 1 ] 56 echo "play_device=$play_device, ch="$ch", rate="$fs", bit=$bits, $seconds sec, gain=$gain" 57 sox -b $bits -r $fs -c $ch -n -t alsa $play_device synth $seconds sine 440 gain $gain 76 if [ -n "$1" ]; then [all …]
|
| /OK3568_Linux_fs/debian/overlay-debug/rockchip-test/audio/ |
| H A D | test_loopback.sh | 10 amixer set "Right PGA Mux" "DifferentialR" 11 amixer set "Left PGA Mux" "DifferentialL" 20 # PGA gain 44 if [ -n "$1" ]; then 48 if [ -n "$2" ]; then 52 # play_gain_tbl="-30 -25 -20 -15 -10 -5 0 5 10 15 20 25 30" 53 play_gain_tbl="-30" 54 set -- $play_gain_tbl 60 mkdir -p $PATH_CAPTURE 70 # playback -> capture -> playback [all …]
|
| H A D | audio_functions_test.sh | 17 echo -n "Please select a test case: " 22 mkdir -p $PATH_AUDIO 28 amixer set "Right PGA Mux" "DifferentialR" 29 amixer set "Left PGA Mux" "DifferentialL" 43 gain=-30 46 if [ -n "$1" ]; then 50 while [ $ch -ge 1 ] 56 echo "play_device=$play_device, ch="$ch", rate="$fs", bit=$bits, $seconds sec, gain=$gain" 57 sox -b $bits -r $fs -c $ch -n -t alsa $play_device synth $seconds sine 440 gain $gain 76 if [ -n "$1" ]; then [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/gspca/stv06xx/ |
| H A D | stv06xx_hdcs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 7 * Copyright (c) 2008 Chia-I Wu 10 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 11 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 12 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 13 * P/N 861075-0040: Sensor HDCS1000 ASIC 14 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 15 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web [all …]
|
| /OK3568_Linux_fs/kernel/include/media/i2c/ |
| H A D | cs53l32a.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 cs53l32a.h - definition for cs53l32a inputs and outputs 13 placed in two modes, the first mode bypasses the PGA (gain), 14 the second goes through the PGA. Hence there are three
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43/ |
| H A D | phy_g.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 /* OFDM PHY registers are defined in the A-PHY header. */ 9 #define B43_PHY_VERSION_CCK B43_PHY_CCK(0x00) /* Versioning register for B-PHY */ 11 #define B43_PHY_PGACTL B43_PHY_CCK(0x15) /* PGA control */ 24 /* Extended G-PHY Registers */ 26 #define B43_PHY_GTABCTL B43_PHY_EXTG(0x03) /* G-PHY table control (see below) */ 27 #define B43_PHY_GTABOFF 0x03FF /* G-PHY table offset (see below) */ 28 #define B43_PHY_GTABNR 0xFC00 /* G-PHY table number (see below) */ 30 #define B43_PHY_GTABDATA B43_PHY_EXTG(0x04) /* G-PHY table data */ 49 /*** G-PHY table numbers */ [all …]
|