/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | audio-graph-port.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/audio-graph-port.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 15 port-base: 16 $ref: /schemas/graph.yaml#/$defs/port-base 18 convert-rate: 19 $ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate 20 convert-channels: [all …]
|
/openbmc/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-khadas-vim3.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/gpio/meson-g12a-gpio.h> 11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 22 stdout-path = "serial0:115200n8"; 30 adc-keys { 31 compatible = "adc-keys"; 32 io-channels = <&saradc 2>; 33 io-channel-names = "buttons"; [all …]
|
H A D | meson-g12b-odroid-n2.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include "meson-g12b-odroid.dtsi" 14 dio2133: audio-amplifier-0 { 15 compatible = "simple-audio-amplifier"; 16 enable-gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; 17 VCC-supply = <&vcc_5v>; 18 sound-name-prefix = "U19"; 22 hub_5v: regulator-hub_5v { 23 compatible = "regulator-fixed"; 24 regulator-name = "HUB_5V"; [all …]
|
H A D | meson-g12a-x96-max.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-g12a.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/gpio/meson-g12a-gpio.h> 11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 14 compatible = "amediatech,x96-max", "amlogic,g12a"; 22 spdif_dit: audio-codec-1 { 23 #sound-dai-cells = <0>; 24 compatible = "linux,spdif-dit"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp157c-phycore-stm32mp15-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) 2022-2023 Steffen Trumtrar <kernel@pengutronix.de> 4 * Copyright (C) Phytec GmbH 2019-2020 - All Rights Reserved 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/leds/leds-pca9532.h> 14 #include <dt-bindings/mfd/st,stpmic1.h> [all …]
|
H A D | stm32mp15xx-dkx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/mfd/st,stpmic1.h> 22 reserved-memory { 23 #address-cells = <1>; 24 #size-cells = <1>; 28 compatible = "shared-dma-pool"; 30 no-map; 34 compatible = "shared-dma-pool"; [all …]
|
/openbmc/linux/sound/soc/ |
H A D | soc-dai.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // soc-dai.c 10 #include <sound/soc-dai.h> 11 #include <sound/soc-link.h> 13 #define soc_dai_ret(dai, ret) _soc_dai_ret(dai, __func__, ret) argument 14 static inline int _soc_dai_ret(struct snd_soc_dai *dai, in _soc_dai_ret() argument 23 case -EPROBE_DEFER: in _soc_dai_ret() 24 case -ENOTSUPP: in _soc_dai_ret() 27 dev_err(dai->dev, in _soc_dai_ret() 29 func, dai->name, ret); in _soc_dai_ret() [all …]
|
H A D | soc-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-core.c -- ALSA SoC Audio Layer 11 // with code, comments and ideas from :- 18 // o Support TDM on PCM and I2S 39 #include <sound/soc-dpcm.h> 40 #include <sound/soc-topology.h> 41 #include <sound/soc-link.h> 75 return sysfs_emit(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show() 85 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_store() 109 return attr->mode; /* always visible */ in soc_dev_attr_is_visible() [all …]
|
/openbmc/linux/sound/soc/generic/ |
H A D | simple-card-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // simple-card-utils.c 35 if (!strcmp(data->convert_sample_format, in asoc_simple_fixup_sample_fmt() 54 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in asoc_simple_parse_convert() 55 of_property_read_u32(np, prop, &data->convert_rate); in asoc_simple_parse_convert() 58 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-channels"); in asoc_simple_parse_convert() 59 of_property_read_u32(np, prop, &data->convert_channels); in asoc_simple_parse_convert() 62 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-sample-format"); in asoc_simple_parse_convert() 63 of_property_read_string(np, prop, &data->convert_sample_format); in asoc_simple_parse_convert() 68 * asoc_simple_is_convert_required() - Query if HW param conversion was requested [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | adau7118.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Analog Devices ADAU7118 8 channel PDM-to-I2S/TDM Converter driver 36 struct regmap *map; member 123 static int adau7118_set_channel_map(struct snd_soc_dai *dai, in adau7118_set_channel_map() argument 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() 145 static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in adau7118_set_fmt() argument 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() [all …]
|
H A D | tas6424.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ALSA SoC Texas Instruments TAS6424 Quad-Channel Audio Amplifier 5 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/ 23 #include <sound/soc-dapm.h> 32 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */ 34 "pvdd", /* Class-D amp output FETs supply. */ 52 * DAC digital volumes. From -103.5 to 24 dB in 0.5 dB steps. Note that 53 * setting the gain below -100 dB (register value <0x7) is effectively a MUTE 56 static DECLARE_TLV_DB_SCALE(dac_tlv, -10350, 50, 0); 74 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas6424_dac_event() [all …]
|
H A D | ab8500-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 8 * for ST-Ericsson. 14 * for ST-Ericsson. 29 #include <linux/mfd/abx500/ab8500-sysctrl.h> 30 #include <linux/mfd/abx500/ab8500-codec.h> 39 #include <sound/soc-dapm.h> 42 #include "ab8500-codec.h" 56 /* Nr of FIR/IIR-coeff banks in ANC-block */ 114 /* Private data for AB8500 device-driver */ [all …]
|
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). */ 55 struct snd_soc_dai *dai) in tas5720_hw_params() argument 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() [all …]
|
H A D | tlv320aic3x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * --------------------------------------- 17 * MONO_LOUT -> N/A | MONO_LOUT -> N/A 18 * | IN1L -> LINE1L 19 * | IN1R -> LINE1R 20 * | IN2L -> LINE2L 21 * | IN2R -> LINE2R 22 * | MIC3L/R -> N/A 25 * --------------------------------------- 89 /* Output Common-Mode Voltage */ [all …]
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-tdmout.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 #include <sound/soc-dai.h> 12 #include "axg-tdm-formatter.h" 62 if (!p->connect) in axg_tdmout_get_be() 65 if (p->sink->id == snd_soc_dapm_dai_in) in axg_tdmout_get_be() 66 return (struct snd_soc_dai *)p->sink->priv; in axg_tdmout_get_be() 68 be = axg_tdmout_get_be(p->sink); in axg_tdmout_get_be() 87 static void axg_tdmout_enable(struct regmap *map) in axg_tdmout_enable() argument 90 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_enable() 94 regmap_update_bits(map, TDMOUT_CTRL0, in axg_tdmout_enable() [all …]
|
H A D | axg-tdmin.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 #include <sound/soc-dai.h> 12 #include "axg-tdm-formatter.h" 64 if (!p->connect) in axg_tdmin_get_be() 67 if (p->source->id == snd_soc_dapm_dai_out) in axg_tdmin_get_be() 68 return (struct snd_soc_dai *)p->source->priv; in axg_tdmin_get_be() 70 be = axg_tdmin_get_be(p->source); in axg_tdmin_get_be() 89 static void axg_tdmin_enable(struct regmap *map) in axg_tdmin_enable() argument 92 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_enable() 96 regmap_update_bits(map, TDMIN_CTRL, in axg_tdmin_enable() [all …]
|
/openbmc/linux/sound/soc/atmel/ |
H A D | mchp-i2s-mcc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Driver for Microchip I2S Multi-channel controller 29 * ---- I2S Controller Register map ---- 75 * ---- Control Register (Write-only) ---- 86 * ---- Mode Register A (Read/Write) ---- 135 /* Number of TDM Channels - 1 */ 138 ((((ch) - 1) << 13) & MCHP_I2SMCC_MRA_NBCHAN_MASK) 145 /* TDM Frame Synchronization */ 163 /* Slot Width */ 164 /* 0: slot is 32 bits wide for DATALENGTH = 18/20/24 bits. */ [all …]
|
/openbmc/linux/sound/soc/stm/ |
H A D | stm32_sai_sub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 10 #include <linux/clk-provider.h> 41 #define STM_SAI_IS_PLAYBACK(ip) ((ip)->dir == SNDRV_PCM_STREAM_PLAYBACK) 42 #define STM_SAI_IS_CAPTURE(ip) ((ip)->dir == SNDRV_PCM_STREAM_CAPTURE) 47 #define STM_SAI_IS_SUB_A(x) ((x)->id == STM_SAI_A_ID) 53 #define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdif) 54 #define STM_SAI_HAS_SPDIF(x) ((x)->pdata->conf.has_spdif_pdm) 55 #define STM_SAI_HAS_PDM(x) ((x)->pdata->conf.has_spdif_pdm) 56 #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata)) [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_ssi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver 7 // Copyright 2007-2010 Freescale Semiconductor, Inc. 9 // Some notes why imx-pcm-fiq is used instead of DMA on some boards: 12 // sane processor vendors have a FIFO per AC97 slot, the i.MX has only 15 // was developed with always sends GPIO status data in slot 12 which 16 // we receive in our (PCM-) data stream. The only chance we have is to 43 #include <linux/dma/imx-dma.h> 53 #include "imx-pcm.h" 55 /* Define RX and TX to index ssi->regvals array; Can be 0 or 1 only */ [all …]
|
H A D | fsl-asoc-card.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include "imx-audmux.h" 32 #define DRIVER_NAME "fsl-asoc-card" 39 /* Default DAI format without Master and Slave flag */ 43 * struct codec_priv - CODEC private data 61 * struct cpu_priv - CPU private data 65 * @slot_width: Slot width of each frame 79 * struct fsl_asoc_card_priv - Freescale Generic ASOC card private data 80 * @dai_link: DAI link structure including normal one and DPCM link 90 * @asrc_rate: ASRC sample rate used by Back-Ends [all …]
|
/openbmc/linux/sound/soc/mediatek/mt8186/ |
H A D | mt8186-mt6366-rt1019-rt5682s.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt8186-mt6366-rt1019-rt5682s.c 4 // -- MT8186-MT6366-RT1019-RT5682S ALSA SoC machine driver 22 #include "../common/mtk-afe-platform-driver.h" 23 #include "../common/mtk-dsp-sof-common.h" 24 #include "../common/mtk-soc-card.h" 25 #include "mt8186-afe-common.h" 26 #include "mt8186-afe-clk.h" 27 #include "mt8186-afe-gpio.h" 28 #include "mt8186-mt6366-common.h" [all …]
|
/openbmc/linux/ |
H A D | opengrok0.0.log | 1 2024-12-28 20:09:05.996-0600 FINEST t1171 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/drivers/staging/media/av7110/video-continue.rst.gz' 2 2024-12-28 20:09:05.942-0600 FINEST t1149 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/u-boot/arch/sh/config.mk.gz' 3 2024-12-2 [all...] |