/openbmc/linux/drivers/media/i2c/ |
H A D | tda7432.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * For the STS-Thompson TDA7432 audio processor chip 5 * Handles audio functions: volume, balance, tone, loudness 18 * debug - set to 1 if you'd like to see debug messages 21 * loudness - set between 0 and 15 for varying degrees of loudness effect 23 * maxvol - set maximum volume to +20db (1), default is 0db(0) 37 #include <media/v4l2-device.h> 38 #include <media/v4l2-ioctl.h> 39 #include <media/v4l2-ctrls.h> 46 MODULE_DESCRIPTION("bttv driver for the tda7432 audio processor chip"); [all …]
|
H A D | wm8775.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8775 - driver version 0.0.1 10 * - Cleanup 11 * - V4L2 API update 12 * - sound fixes 22 #include <media/v4l2-device.h> 23 #include <media/v4l2-ctrls.h> 32 /* ----------------------------------------------------------------------- */ 50 u8 input; /* Last selected input (0-0xf) */ 60 return &container_of(ctrl->handler, struct wm8775_state, hdl)->sd; in to_sd() [all …]
|
H A D | tvaudio.c | 2 * Driver for simple i2c audio chips. 14 * Copyright(c) 2005-2008 Mauro Carvalho Chehab 15 * - Some cleanups, code fixes, etc 16 * - Convert it to V4L2 API 21 * debug - set to 1 if you'd like to see debug messages 40 #include <media/v4l2-device.h> 41 #include <media/v4l2-ctrls.h> 43 /* ---------------------------------------------------------------------- */ 53 #define UNSET (-1U) 55 /* ---------------------------------------------------------------------- */ [all …]
|
H A D | tlv320aic23b.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * tlv320aic23b - driver version 0.0.1 20 #include <media/v4l2-device.h> 21 #include <media/v4l2-ctrls.h> 28 /* ----------------------------------------------------------------------- */ 42 return &container_of(ctrl->handler, struct tlv320aic23b_state, hdl)->sd; in to_sd() 52 return -1; in tlv320aic23b_write() 60 return -1; in tlv320aic23b_write() 76 return -EINVAL; in tlv320aic23b_s_clock_freq() 85 switch (ctrl->id) { in tlv320aic23b_s_ctrl() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-fm-tx.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _fm-tx-controls: 11 parameters for audio compression, pilot tone generation, audio deviation 15 .. _fm-tx-control-id: 27 step are driver-specific. 34 to 31 pre-defined programme types. 52 programme-related information or any other text. In these cases, 65 then the audio was recorded as stereo. 70 bit of the Decoder Identification code. If set, then the audio was 75 then the audio is compressed. [all …]
|
/openbmc/linux/sound/aoa/codecs/ |
H A D | onyx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Apple Onboard Audio driver for Onyx codec (header) 16 * -1 (0dB) to -127 (-63.0 dB) or others (muted) */ 48 /* 8 + input gain in dB, valid range for input gain is -4 .. 20 dB */ 57 /* bits 1-5 control channel bits 1-5 */ 61 /* controls channel bits 8-15 */ 64 /* control channel bits 24-29, high 2 bits reserved */ 70 /* lower 4 bits control bits 32-35 of channel control and word length */
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | issi,is31fl319x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vincent Knecht <vincent.knecht@mailoo.org> 14 Previously known as Si-En SN319{0,1,3,6,9}. 26 - issi,is31fl3190 27 - issi,is31fl3191 28 - issi,is31fl3193 29 - issi,is31fl3196 30 - issi,is31fl3199 [all …]
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | echoaudio.h | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 7 This file is part of Echo Digital Audio's generic driver library. 9 Echo Digital Audio's generic driver library is free software; 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 34 +-----------+ 35 record | |<-------------------- Inputs 36 <-------| | | 39 ------->| | +-------+ [all …]
|
H A D | gina20_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 7 This file is part of Echo Digital Audio's generic driver library. 9 Echo Digital Audio's generic driver library is free software; 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 41 return -ENODEV; in init_hw() 45 dev_err(chip->card->dev, in init_hw() 46 "init_hw - could not initialize DSP comm page\n"); in init_hw() 50 chip->device_id = device_id; in init_hw() [all …]
|
H A D | layla20_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 7 This file is part of Echo Digital Audio's generic driver library. 9 Echo Digital Audio's generic driver library is free software; 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 44 return -ENODEV; in init_hw() 48 dev_err(chip->card->dev, in init_hw() 49 "init_hw - could not initialize DSP comm page\n"); in init_hw() 53 chip->device_id = device_id; in init_hw() [all …]
|
/openbmc/linux/Documentation/admin-guide/media/ |
H A D | si476x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 ------------------- 14 - According to the SiLabs' datasheet it is possible to update the 15 firmware of the radio chip in the run-time, thus bringing it to the 23 ------------------------------- 31 * /sys/kernel/debug/<device-name>/acf 52 0x05 smute 0 - Audio is not soft muted 53 1 - Audio is soft muted 54 0x06 smattn Soft mute attenuation level in dB 60 0x10 pilot 0 - Stereo pilot is not present [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tas5720.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tas5720.c - ALSA SoC Texas Instruments TAS5720 Mono Audio Amplifier 5 * Copyright (C)2015-2016 Texas Instruments Incorporated - https://www.ti.com 22 #include <sound/soc-dapm.h> 37 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */ 38 "pvdd", /* Class-D amp and analog power supply (connected). */ 57 struct snd_soc_component *component = dai->component; in tas5720_hw_params() 72 dev_err(component->dev, "unsupported sample rate: %u\n", rate); in tas5720_hw_params() 73 return -EINVAL; in tas5720_hw_params() 79 dev_err(component->dev, "error setting sample rate: %d\n", ret); in tas5720_hw_params() [all …]
|
H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include <linux/mfd/twl4030-audio.h> 67 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 79 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 89 return -EIO; in twl4030_read() 98 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 116 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 124 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 128 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [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 | rk817_codec.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rk817 ALSA SoC Audio driver 33 * I don't have another implementation to compare from the Rockchip sources. Hard-coding for now. 46 if (rk817->mic_in_differential) { in rk817_init() 62 /* Set the PLL pre-divide value (values not documented). */ in rk817_set_component_pll() 74 * 0db~-95db, 0.375db/step, for example: 75 * 0x00: 0dB 76 * 0xff: -95dB 79 static const DECLARE_TLV_DB_MINMAX(rk817_vol_tlv, -9500, 0); 82 * PGA GAIN L/R volume setting [all …]
|
H A D | idt821034.c | 1 // SPDX-License-Identifier: GPL-2.0 21 u16 gain; member 28 u8 spi_tx_buf; /* Cannot use stack area for SPI (dma-safe memory) */ 29 u8 spi_rx_buf; /* Cannot use stack area for SPI (dma-safe memory) */ 55 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write() 59 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write() 64 idt821034->spi_tx_buf = val; in idt821034_8bit_write() 66 dev_vdbg(&idt821034->spi->dev, "spi xfer wr 0x%x\n", val); in idt821034_8bit_write() 68 return spi_sync_transfer(idt821034->spi, xfer, 2); in idt821034_8bit_write() 85 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_read() [all …]
|
H A D | ak4671.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ak4671.c -- audio driver for AK4671 119 * from -24 to 6 dB in 6 dB steps (mute instead of -30 dB) 121 static DECLARE_TLV_DB_SCALE(out1_tlv, -3000, 600, 1); 125 * from -33 to 6 dB in 3 dB steps (mute instead of -33 dB) 127 static DECLARE_TLV_DB_SCALE(out2_tlv, -3300, 300, 1); 131 * from -6 to 3 dB in 3 dB steps 133 static DECLARE_TLV_DB_SCALE(out3_tlv, -600, 300, 0); 136 * Mic amp gain control: 137 * from -15 to 30 dB in 3 dB steps [all …]
|
H A D | sgtl5000.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // sgtl5000.c -- SGTL5000 ALSA SoC Audio driver 5 // Copyright 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved. 26 #include <sound/soc-dapm.h> 80 /* AVC: Threshold dB -> register: pre-calculated values */ 110 #define LINREG_VDDD ((1600 - LDO_VOLTAGE / 1000) / 50) 190 /* When VAG powering on to get local loop from Line-In, the sleep in vag_power_on() 210 * If the event comes from HP and Line-In is selected, in vag_power_consumers() 212 * As HP_POWERUP is not set when HP muxed to line-in, in vag_power_consumers() 240 * - LINE_IN (for HP events) / HP (for DAC/ADC events) in vag_power_off() [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 …]
|
/openbmc/linux/sound/soc/mediatek/mt6797/ |
H A D | mt6797-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // MediaTek ALSA SoC Audio DAI ADDA Control 10 #include "mt6797-afe-common.h" 11 #include "mt6797-interconnection.h" 12 #include "mt6797-reg.h" 65 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 88 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform() 134 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_adda_ul_event() 137 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_adda_ul_event() 138 __func__, w->name, event); in mtk_adda_ul_event() [all …]
|
/openbmc/linux/sound/sparc/ |
H A D | amd7930.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Based entirely upon drivers/sbus/audio/amd7930.c which is: 9 * --- Notes from Thomas's original driver --- 10 * This is the lowlevel driver for the AMD7930 audio chip found on all 14 * integrated audio encoder/decoder. When Sun decided on what chip to 15 * use for audio, they had the brilliant idea of using the amd7930 and 16 * only connecting the audio encoder/decoder pins. 19 * databook which has all the programming information and gain tables. 21 * Advanced Micro Devices' Am79C30A is an ISDN/audio chip used in the 23 * which provide mono-channel audio at 8K samples per second via either [all …]
|
/openbmc/linux/sound/soc/intel/atom/ |
H A D | sst-mfld-dsp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * sst_mfld_dsp.h - Intel SST Driver for audio engine 7 * Copyright (C) 2008-14 Intel Corporation 31 /* Bits B7: SST or IA/SC ; B6-B4: Msg Category; B3-B0: Msg Type */ 120 /* Buffer under-run */ 126 * - IPC High: pvt_id is set to zero. Always short message. 127 * - msg_id is in lower 16-bits of IPC low payload. 128 * - pipe_id is in higher 16-bits of IPC low payload for period_elapsed. 129 * - error id is in higher 16-bits of IPC low payload for async errors. 151 /* AUDIO/MUSIC CODEC Type Definitions */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | maxim,max98504.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 14 with an IRQ output signal, PCM and PDM digital audio interface (DAI) and a 27 DIOVDD-supply: true 28 DVDD-supply: true 29 PVDD-supply: true 31 maxim,brownout-threshold: 39 maxim,brownout-attenuation: [all …]
|
/openbmc/linux/sound/usb/ |
H A D | mixer_maps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 const struct usbmix_dB_map *dB; member 41 USB_IN[1] --->FU[2]------------------------------+->MU[16]-->PU[17]-+->FU[18]--+->EU[27]--+->EU[21]… 43 USB_IN[3] -+->SU[5]-->FU[6]--+->MU[14] ->PU[15]->+ | | | … 45 Dig_IN[4] -+ | | | | +->FU[28]… 47 Lin-IN[7] -+-->FU[8]---------+ | | +-------------------… 49 Mic-IN[9] --+->FU[10]----------------------------+ | 51 || +----------------------------------------------------+ 53 …++--+->SU[11]-->FU[12] ---------------------------------------------------------------------------… 73 { 17, NULL, 1 }, /* DISABLED: PU-switch (any effect?) */ [all …]
|