/openbmc/linux/sound/soc/intel/boards/ |
H A D | skl_hda_dsp_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2015-18 Intel Corporation. 5 * Machine Driver for SKL+ platforms with DSP and iDisp, HDA Codecs 15 #include <sound/soc-acpi.h> 16 #include "../../codecs/hdac_hdmi.h" 49 { "Analog Codec Playback", NULL, "Analog CPU Playback" }, 50 { "Analog CPU Playback", NULL, "codec0_out" }, 51 { "Digital Codec Playback", NULL, "Digital CPU Playback" }, 52 { "Digital CPU Playback", NULL, "codec1_out" }, 53 { "Alt Analog Codec Playback", NULL, "Alt Analog CPU Playback" }, [all …]
|
H A D | sof_sdw_cs_amp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * sof_sdw_cs_amp - Helpers to handle CS35L56 from generic machine driver 11 #include <sound/soc-acpi.h> 18 const char *dai_name = rtd->dai_link->codecs->dai_name; in cs_spk_init() 19 struct snd_soc_card *card = rtd->card; in cs_spk_init() 23 card->components = devm_kasprintf(card->dev, GFP_KERNEL, in cs_spk_init() 25 card->components, codec_name); in cs_spk_init() 26 if (!card->components) in cs_spk_init() 27 return -ENOMEM; in cs_spk_init() 37 bool playback) in sof_sdw_cs_amp_init() argument [all …]
|
H A D | sof_sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * sof_sdw - ASOC Machine driver for Intel SoundWire platforms 14 #include <sound/soc-acpi.h> 16 #include "../../codecs/rt711.h" 19 static int quirk_override = -1; 21 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 33 dev_dbg(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks() 50 sof_sdw_quirk = (unsigned long)id->driver_data; in sof_sdw_quirk_cb() 188 * (e.g. 15-eb1xxx, 14t-ea000 or 13-aw2xxx) 257 /* TigerLake-SDCA devices */ [all …]
|
H A D | sof_sdw_rt_amp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * sof_sdw_rt_amp - Helpers to handle RT1308/RT1316/RT1318 from generic machine driver 12 #include <sound/soc-acpi.h> 13 #include <sound/soc-dapm.h> 19 #include "../../codecs/rt1308.h" 117 pdata = dmi_data->driver_data; in rt_amp_add_device_props() 118 memcpy(¶ms, pdata->bq_params, sizeof(unsigned char) * pdata->bq_params_cnt); in rt_amp_add_device_props() 120 props[0] = PROPERTY_ENTRY_U8_ARRAY("realtek,bq-params", params); in rt_amp_add_device_props() 121 props[1] = PROPERTY_ENTRY_U32("realtek,bq-params-cnt", pdata->bq_params_cnt); in rt_amp_add_device_props() 149 { "Speaker", NULL, "rt1308-1 SPOL" }, [all …]
|
/openbmc/linux/sound/soc/mediatek/mt8173/ |
H A D | mt8173-rt5650-rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8173-rt5650-rt5514.c -- MT8173 machine driver with RT5650/5514 codecs 14 #include "../../codecs/rt5645.h" 86 struct snd_soc_card *card = runtime->card; in mt8173_rt5650_rt5514_init() 87 struct snd_soc_component *component = asoc_rtd_to_codec(runtime, 0)->component; in mt8173_rt5650_rt5514_init() 104 dev_err(card->dev, "Can't new Headset Jack %d\n", ret); in mt8173_rt5650_rt5514_init() 120 SND_SOC_DAILINK_DEFS(playback, 132 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "rt5645-aif1"), 133 COMP_CODEC(NULL, "rt5514-aif1")), 136 /* Digital audio interface glue - connects codec <---> CPU */ [all …]
|
H A D | mt8173-rt5650-rt5676.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8173-rt5650-rt5676.c -- MT8173 machine driver with RT5650/5676 codecs 14 #include "../../codecs/rt5645.h" 15 #include "../../codecs/rt5677.h" 90 struct snd_soc_card *card = runtime->card; in mt8173_rt5650_rt5676_init() 91 struct snd_soc_component *component = asoc_rtd_to_codec(runtime, 0)->component; in mt8173_rt5650_rt5676_init() 92 struct snd_soc_component *component_sub = asoc_rtd_to_codec(runtime, 1)->component; in mt8173_rt5650_rt5676_init() 117 dev_err(card->dev, "Can't new Headset Jack %d\n", ret); in mt8173_rt5650_rt5676_init() 137 SND_SOC_DAILINK_DEFS(playback, 154 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "rt5645-aif1"), [all …]
|
H A D | mt8173-rt5650.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8173-rt5650.c -- MT8173 machine driver with RT5650 codecs 14 #include "../../codecs/rt5645.h" 116 struct snd_soc_card *card = runtime->card; in mt8173_rt5650_init() 117 struct snd_soc_component *component = asoc_rtd_to_codec(runtime, 0)->component; in mt8173_rt5650_init() 118 const char *codec_capture_dai = asoc_rtd_to_codec(runtime, 1)->name; in mt8173_rt5650_init() 125 if (!strcmp(codec_capture_dai, "rt5645-aif1")) { in mt8173_rt5650_init() 129 } else if (!strcmp(codec_capture_dai, "rt5645-aif2")) { in mt8173_rt5650_init() 134 dev_warn(card->dev, in mt8173_rt5650_init() 150 dev_err(card->dev, "Can't new Headset Jack %d\n", ret); in mt8173_rt5650_init() [all …]
|
H A D | mt8173-max98090.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8173-max98090.c -- MT8173 MAX98090 ALSA SoC machine driver 13 #include "../../codecs/max98090.h" 69 struct snd_soc_card *card = runtime->card; in mt8173_max98090_init() 70 struct snd_soc_component *component = asoc_rtd_to_codec(runtime, 0)->component; in mt8173_max98090_init() 78 dev_err(card->dev, "Can't create a new Jack %d\n", ret); in mt8173_max98090_init() 85 SND_SOC_DAILINK_DEFS(playback, 100 /* Digital audio interface glue - connects codec <---> CPU */ 104 .name = "MAX98090 Playback", 105 .stream_name = "MAX98090 Playback", [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | mt8186-mt6366-da7219-max98357.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-da7219-max98357.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 18 - mediatek,mt8186-mt6366-da7219-max98357-sound 24 headset-codec: 28 sound-dai: 31 - sound-dai 33 playback-codecs: [all …]
|
H A D | mt8186-mt6366-rt1019-rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 18 - mediatek,mt8186-mt6366-rt1019-rt5682s-sound 19 - mediatek,mt8186-mt6366-rt5682s-max98360-sound 25 dmic-gpios: 28 dmic-gpios optional prop for switching between two DMICs. 32 headset-codec: [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H A D | p1022_rdk.c | 1 // SPDX-License-Identifier: GPL-2.0 10 // to be enabled, because they control the clock. So for playback, for 28 /* P1022-specific PMUXCR and DMUXCR bit definitions */ 56 unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); in guts_set_dmuxcr() 58 clrsetbits_be32(&guts->dmuxcr, 3 << shift, device << shift); in guts_set_dmuxcr() 65 * machine_data: machine-specific ASoC device data 85 * This function is used to initialize the board-specific hardware. 97 dev_err(card->dev, "could not map global utilities\n"); in p1022_rdk_machine_probe() 98 return -ENOMEM; in p1022_rdk_machine_probe() 102 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_UART0_I2C1_MASK, in p1022_rdk_machine_probe() [all …]
|
H A D | fsl-asoc-card.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include "imx-audmux.h" 25 #include "../codecs/sgtl5000.h" 26 #include "../codecs/wm8962.h" 27 #include "../codecs/wm8960.h" 28 #include "../codecs/wm8994.h" 29 #include "../codecs/tlv320aic31xx.h" 30 #include "../codecs/nau8822.h" 32 #define DRIVER_NAME "fsl-asoc-card" 43 * struct codec_priv - CODEC private data [all …]
|
H A D | p1022_ds.c | 1 // SPDX-License-Identifier: GPL-2.0 21 /* P1022-specific PMUXCR and DMUXCR bit definitions */ 49 unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); in guts_set_dmuxcr() 51 clrsetbits_be32(&guts->dmuxcr, 3 << shift, device << shift); in guts_set_dmuxcr() 58 * machine_data: machine-specific ASoC device data 79 * This function is used to initialize the board-specific hardware. 91 dev_err(card->dev, "could not map global utilities\n"); in p1022_ds_machine_probe() 92 return -ENOMEM; in p1022_ds_machine_probe() 96 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_UART0_I2C1_MASK, in p1022_ds_machine_probe() 100 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_SSI_DMA_TDM_MASK, in p1022_ds_machine_probe() [all …]
|
H A D | mpc8610_hpcd.c | 1 // SPDX-License-Identifier: GPL-2.0 7 // Copyright 2007-2010 Freescale Semiconductor, Inc. 25 * mpc8610_hpcd_data: machine-specific ASoC device data 47 * This function is used to initialize the board-specific hardware. 59 dev_err(card->dev, "could not map global utilities\n"); in mpc8610_hpcd_machine_probe() 60 return -ENOMEM; in mpc8610_hpcd_machine_probe() 64 guts_set_dmacr(guts, machine_data->dma_id[0], in mpc8610_hpcd_machine_probe() 65 machine_data->dma_channel_id[0], in mpc8610_hpcd_machine_probe() 67 guts_set_dmacr(guts, machine_data->dma_id[1], in mpc8610_hpcd_machine_probe() 68 machine_data->dma_channel_id[1], in mpc8610_hpcd_machine_probe() [all …]
|
/openbmc/linux/sound/soc/mediatek/mt2701/ |
H A D | mt2701-wm8960.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt2701-wm8960.c -- MT2701 WM8960 ALSA SoC machine driver 12 #include "mt2701-afe-common.h" 47 SND_SOC_DAILINK_DEFS(playback, 59 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "wm8960-hifi")), 65 .name = "wm8960-playback", 66 .stream_name = "wm8960-playback", 71 SND_SOC_DAILINK_REG(playback), 74 .name = "wm8960-capture", 75 .stream_name = "wm8960-capture", [all …]
|
/openbmc/linux/Documentation/sound/soc/ |
H A D | dapm.rst | 11 such, can easily co-exist with the other PM systems. 16 switching decisions based upon any audio stream (capture/playback) 47 Enabled and disabled when stream playback/capture is started and 60 Audio DAPM widgets fall into a number of types:- 127 (Widgets are defined in include/sound/soc-dapm.h) 130 There are convenience macros defined in soc-dapm.h that can be used to quickly 131 build a list of widgets of the codecs and machines DAPM widgets. 138 --------------------- 144 Stream widgets have the following format:- 153 e.g. stream widgets for HiFi playback and capture [all …]
|
H A D | codec.rst | 6 the codec, FM, MODEM, BT or external DSP to provide audio capture and playback. 11 Each codec class driver *must* provide the following features:- 14 2. Codec control IO - using RegMap API 20 Optionally, codec drivers can also provide:- 25 driver code in sound/soc/codecs/ 31 ------------------------------- 49 .name = "wm8731-hifi", 50 .playback = { 51 .stream_name = "Playback", 68 ---------------- [all …]
|
/openbmc/linux/sound/pci/ice1712/ |
H A D | revo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Lowlevel functions for M-Audio Audiophile 192, Revolution 7.1 and 5.1 20 /* a non-standard I2C device for revo51 */ 44 if (rate == 0) /* no hint - S/PDIF input is master, simply return */ in revo_set_rate_val() 47 /* adjust DFS on codecs */ in revo_set_rate_val() 55 if (ak->type == SND_AK4355 || ak->type == SND_AK4358) { in revo_set_rate_val() 83 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_start() 89 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_stop() 95 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_direction() 104 ice->gpio.direction &= ~mask; in revo_i2c_direction() [all …]
|
/openbmc/linux/sound/soc/mediatek/mt7986/ |
H A D | mt7986-wm8960.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt7986-wm8960.c -- MT7986-WM8960 ALSA SoC machine driver 13 #include "mt7986-afe-common.h" 30 SND_SOC_DAILINK_DEFS(playback, 42 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "wm8960-hifi")), 48 .name = "wm8960-playback", 49 .stream_name = "wm8960-playback", 54 SND_SOC_DAILINK_REG(playback), 57 .name = "wm8960-capture", 58 .stream_name = "wm8960-capture", [all …]
|
/openbmc/linux/sound/soc/amd/acp/ |
H A D | acp-renoir.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 21 #include <sound/soc-dai.h> 22 #include <linux/dma-mapping.h> 41 .codecs = {"10EC1019"} 46 .codecs = {"MX98360A"} 70 .drv_name = "renoir-acp", 77 .name = "acp-i2s-sp", 79 .playback = { 80 .stream_name = "I2S SP Playback", 102 .name = "acp-i2s-bt", [all …]
|
H A D | acp-rembrandt.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 20 #include <sound/soc-dai.h> 21 #include <linux/dma-mapping.h> 48 .codecs = {"10EC1019"} 53 .codecs = {"MX98360A"} 59 .drv_name = "rmb-nau8825-max", 65 .drv_name = "rembrandt-acp", 69 .drv_name = "rmb-rt5682s-rt1019", 78 .name = "acp-i2s-sp", 80 .playback = { [all …]
|
H A D | acp-mach-common.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 19 #include <sound/soc-dapm.h> 24 #include "../../codecs/rt5682.h" 25 #include "../../codecs/rt1019.h" 26 #include "../../codecs/rt5682s.h" 27 #include "../../codecs/nau8825.h" 28 #include "../../codecs/nau8821.h" 29 #include "acp-mach.h" 35 #define NAU8821_CODEC_DAI "nau8821-hifi" 38 #define MAX98388_CODEC_DAI "max98388-aif1" [all …]
|
/openbmc/linux/sound/soc/rockchip/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 Say Y or M if you want to add support for codecs attached to 27 maximum of 8 channels each for playback and recording. 69 tristate "ASoC support multiple codecs for Rockchip RK3288 boards" 78 RK3288 boards using an analog output and the built-in HDMI audio. 81 tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards" 91 Say Y or M here if you want to add support multiple codecs for SoC
|
/openbmc/linux/sound/pci/ |
H A D | azt3328.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* azt3328.c - driver for Aztech AZF3328 based soundcards (e.g. PCI168). 3 * Copyright (C) 2002, 2005 - 2011 by Andreas Mohr <andi AT lisas.de> 7 * found in a Fujitsu-Siemens PC ("Cordant", aluminum case). 13 * Keywords: Windows XP Vista 168nt4-125.zip 168win95-125.zip PCI 168 download 17 * despite the high level of Internet ignorance - as usual :-P - 18 * about very good support for this card - on Linux!) 25 * in the first place >:-P}), 34 * for compatibility reasons) from Azfin (joint-venture of Aztech and Fincitec, 36 * Fincitec-related company ARSmikro) has the following features: [all …]
|
/openbmc/linux/sound/soc/generic/ |
H A D | audio-graph-card2.c | 1 // SPDX-License-Identifier: GPL-2.0 8 // based on ${LINUX}/sound/soc/generic/audio-graph-card.c 28 bitclock-master; 30 frame-master; 42 sample0: left_j, bitclock-master, frame-master 43 sample1: i2s, bitclock-master 57 linux/sound/soc/codecs/ak4613.c 58 linux/sound/soc/codecs/pcm3168a.c 59 linux/sound/soc/soc-utils.c 60 linux/sound/soc/generic/test-component.c [all …]
|