/linux-6.14.4/sound/soc/intel/avs/boards/ |
D | hdaudio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation 14 #include <sound/soc-acpi.h> 20 struct snd_soc_dai_link_component *platform; in avs_create_dai_links() local 22 struct hda_pcm *pcm; in avs_create_dai_links() local 23 const char *cname = dev_name(&codec->core.dev); in avs_create_dai_links() 27 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_links() 28 if (!dl || !platform) in avs_create_dai_links() 29 return -ENOMEM; in avs_create_dai_links() 31 platform->name = platform_name; in avs_create_dai_links() [all …]
|
/linux-6.14.4/sound/soc/intel/boards/ |
D | ehl_rt5660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * ehl_rt5660 - ASOC Machine driver for Elkhart Lake platforms 18 #include <sound/pcm.h> 21 #include <sound/soc-acpi.h> 76 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in hdmi_init() 78 struct sof_hdmi_pcm *pcm; in hdmi_init() local 80 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in hdmi_init() 81 if (!pcm) in hdmi_init() 82 return -ENOMEM; in hdmi_init() 84 /* dai_link id is 1:1 mapped to the PCM device */ in hdmi_init() [all …]
|
D | bdw_rt286.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <sound/pcm.h> 15 #include <sound/soc-acpi.h> 64 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in codec_link_init() 67 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", SND_JACK_HEADSET | SND_JACK_BTN_0, in codec_link_init() 78 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in codec_link_exit() 90 rate->min = rate->max = 48000; in codec_link_hw_params_fixup() 91 channels->min = channels->max = 2; in codec_link_hw_params_fixup() 107 dev_err(rtd->dev, "set codec sysclk failed: %d\n", ret); in codec_link_hw_params() 124 SND_SOC_DAILINK_DEF(platform, DAILINK_COMP_ARRAY(COMP_PLATFORM("haswell-pcm-audio"))); [all …]
|
D | sof_pcm512x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2018-2020 Intel Corporation. 17 #include <sound/pcm.h> 20 #include <sound/soc-acpi.h> 22 #include "../common/soc-intel-quirks.h" 55 sof_pcm512x_quirk = (unsigned long)id->driver_data; in sof_pcm512x_quirk_cb() 64 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"), 73 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init() 75 struct sof_hdmi_pcm *pcm; in sof_hdmi_init() local 77 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init() [all …]
|
/linux-6.14.4/Documentation/sound/soc/ |
D | platform.rst | 2 ASoC Platform Driver 5 An ASoC platform driver class can be divided into audio DMA drivers, SoC DAI 6 drivers and DSP drivers. The platform drivers only target the SoC CPU and must 12 The platform DMA driver optionally supports the following ALSA operations:- 25 The platform driver exports its DMA functionality via struct 26 snd_soc_component_driver:- 38 /* pcm creation and destruction */ 49 https://www.kernel.org/doc/html/latest/sound/kernel-api/writing-an-alsa-driver.html 51 An example DMA driver is soc/pxa/pxa2xx-pcm.c 57 Each SoC DAI driver must provide the following features:- [all …]
|
D | codec.rst | 7 It should contain no code that is specific to the target platform or machine. 8 All platform and machine specific code should be added to the platform and 11 Each codec class driver *must* provide the following features:- 13 1. Codec DAI and PCM configuration 14 2. Codec control IO - using RegMap API 20 Optionally, codec drivers can also provide:- 30 Codec DAI and PCM configuration 31 ------------------------------- 33 PCM capabilities and operations. This struct is exported so that it can be 49 .name = "wm8731-hifi", [all …]
|
D | dpcm.rst | 2 Dynamic PCM 8 Dynamic PCM allows an ALSA PCM device to digitally route its PCM audio to 9 various digital endpoints during the PCM stream runtime. e.g. PCM0 can route 16 determine the path used by each ALSA PCM. 18 DPCM re-uses all the existing component codec, platform and DAI drivers without 23 ------------------------------------- 26 document for all examples :- 32 PCM0 <------------> * * <----DAI0-----> Codec Headset 34 PCM1 <------------> * * <----DAI1-----> Codec Speakers 36 PCM2 <------------> * * <----DAI2-----> MODEM [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/sound/ |
D | sprd,pcm-platform.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/sound/sprd,pcm-platform.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Spreadtrum DMA platform 10 - Orson Zhai <[email protected]> 11 - Baolin Wang <[email protected]> 12 - Chunyan Zhang <[email protected]> 16 const: sprd,pcm-platform 21 dma-names: [all …]
|
D | ux500-msp.txt | 1 * ux500 MSP (CPU-side Digital Audio Interface) 4 - compatible :"stericsson,ux500-msp-i2s" 5 - reg : Physical base address and length of the device's registers. 8 - interrupts : The interrupt output from the device. 9 - <name>-supply : Phandle to the regulator <name> supply 14 compatible = "stericsson,snd-soc-mop500"; 16 stericsson,platform-pcm-dma = <&pcm>; 17 stericsson,cpu-dai = <&msp1 &msp3>; 18 stericsson,audio-codec = <&codec>; 21 pcm: ux500-pcm { [all …]
|
/linux-6.14.4/sound/soc/amd/ |
D | acp-da7219-max98357a.c | 1 // SPDX-License-Identifier: MIT 5 //Copyright 2017-2021 Advanced Micro Devices, Inc. 9 #include <sound/pcm.h> 11 #include <sound/soc-dapm.h> 56 struct snd_soc_card *card = rtd->card; in cz_da7219_init() 58 struct snd_soc_component *component = codec_dai->component; in cz_da7219_init() 60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in cz_da7219_init() 65 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_da7219_init() 72 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_da7219_init() 76 da7219_dai_wclk = devm_clk_get(component->dev, "da7219-dai-wclk"); in cz_da7219_init() [all …]
|
/linux-6.14.4/sound/soc/bcm/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 2 # BCM2835 Platform Support 3 snd-soc-bcm2835-i2s-y := bcm2835-i2s.o 5 obj-$(CONFIG_SND_BCM2835_SOC_I2S) += snd-soc-bcm2835-i2s.o 7 # CYGNUS Platform Support 8 snd-soc-cygnus-y := cygnus-pcm.o cygnus-ssp.o 10 obj-$(CONFIG_SND_SOC_CYGNUS) += snd-soc-cygnus.o 12 # BCM63XX Platform Support 13 snd-soc-63xx-y := bcm63xx-i2s-whistler.o bcm63xx-pcm-whistler.o 15 obj-$(CONFIG_SND_BCM63XX_I2S_WHISTLER) += snd-soc-63xx.o
|
/linux-6.14.4/sound/soc/sprd/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 4 snd-soc-sprd-platform-y := sprd-pcm-dma.o sprd-pcm-compress.o 6 obj-$(CONFIG_SND_SOC_SPRD) += snd-soc-sprd-platform.o 8 obj-$(CONFIG_SND_SOC_SPRD_MCDT) += sprd-mcdt.o
|
/linux-6.14.4/sound/core/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 # ALSA soundcard-configuration 56 to the KUnit documentation in Documentation/dev-tools/kunit/. 85 and read <file:Documentation/sound/designs/oss-emulation.rst>. 90 will be called snd-mixer-oss. 93 tristate "OSS PCM (digital audio) API" 97 To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y 98 here and read <file:Documentation/sound/designs/oss-emulation.rst>. 103 will be called snd-pcm-oss. 106 bool "OSS PCM (digital audio) API - Include plugin system" [all …]
|
/linux-6.14.4/sound/soc/sof/ |
D | pcm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 10 // PCM Layer, interface between ALSA and IPC. 17 #include "sof-of-dev.h" 18 #include "sof-priv.h" 19 #include "sof-audio.h" 20 #include "sof-utils.h" 31 int stream = substream->stream; in create_page_table() 35 return -EINVAL; in create_page_table() 37 return snd_sof_create_page_table(component->dev, dmab, in create_page_table() 38 spcm->stream[stream].page_table.area, size); in create_page_table() [all …]
|
/linux-6.14.4/sound/soc/mediatek/mt8365/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 3 # MTK Platform driver 4 snd-soc-mt8365-pcm-y := \ 5 mt8365-afe-clk.o \ 6 mt8365-afe-pcm.o \ 7 mt8365-dai-adda.o \ 8 mt8365-dai-dmic.o \ 9 mt8365-dai-i2s.o \ 10 mt8365-dai-pcm.o 12 obj-$(CONFIG_SND_SOC_MT8365) += snd-soc-mt8365-pcm.o [all …]
|
/linux-6.14.4/sound/soc/ |
D | soc-devres.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-devres.c -- ALSA SoC Audio Layer devres functions 20 * devm_snd_soc_register_component - resource managed component registration 38 return -ENOMEM; in devm_snd_soc_register_component() 58 * devm_snd_soc_register_card - resource managed card registration 72 return -ENOMEM; in devm_snd_soc_register_card() 94 * devm_snd_dmaengine_pcm_register - resource managed dmaengine PCM registration 95 * @dev: The parent device for the PCM device 96 * @config: Platform specific PCM configuration 97 * @flags: Platform specific quirks [all …]
|
D | soc-generic-dmaengine-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 // Author: Lars-Peter Clausen <[email protected]> 10 #include <sound/pcm.h> 13 #include <linux/dma-mapping.h> 28 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument 31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 38 * snd_dmaengine_pcm_prepare_slave_config() - Generic prepare_slave_config callback 39 * @substream: PCM substream 57 if (rtd->dai_link->num_cpus > 1) { in snd_dmaengine_pcm_prepare_slave_config() [all …]
|
/linux-6.14.4/sound/soc/mediatek/common/ |
D | mtk-afe-platform-driver.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mtk-afe-platform-driver.c -- Mediatek afe platform driver 10 #include <linux/dma-mapping.h> 13 #include "mtk-afe-platform-driver.h" 14 #include "mtk-base-afe.h" 22 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai() 23 num_dai_drivers += dai->num_dai_drivers; in mtk_afe_combine_sub_dai() 26 dev_info(afe->dev, "%s(), num of dai %zd\n", __func__, num_dai_drivers); in mtk_afe_combine_sub_dai() 29 afe->num_dai_drivers = num_dai_drivers; in mtk_afe_combine_sub_dai() 30 afe->dai_drivers = devm_kcalloc(afe->dev, in mtk_afe_combine_sub_dai() [all …]
|
/linux-6.14.4/sound/soc/xilinx/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 mode, IP receives audio in AES format, extracts PCM and sends 8 PCM data. In receiver mode, IP receives PCM audio and 9 encapsulates PCM in AES format and sends AES data. 15 support. This provides DMA platform device support for
|
/linux-6.14.4/sound/soc/intel/atom/ |
D | sst-mfld-platform-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sst_mfld_platform.c - Intel MID Platform driver 5 * Copyright (C) 2010-2014 Intel Corp 18 #include <sound/pcm.h> 23 #include "sst-mfld-platform.h" 24 #include "sst-atom-controls.h" 32 return -EINVAL; in sst_register_dsp() 33 if (!try_module_get(dev->dev->driver->owner)) in sst_register_dsp() 34 return -ENODEV; in sst_register_dsp() 37 dev_err(dev->dev, "we already have a device %s\n", sst->name); in sst_register_dsp() [all …]
|
/linux-6.14.4/sound/soc/pxa/ |
D | pxa2xx-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/sound/arm/pxa2xx-pcm.c -- ALSA PCM interface for the Intel PXA2xx chip 10 #include <linux/dma-mapping.h> 17 #include <sound/pxa2xx-lib.h> 32 return devm_snd_soc_register_component(&pdev->dev, &pxa2xx_soc_platform, in pxa2xx_soc_platform_probe() 38 .name = "pxa-pcm-audio", 47 MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module"); 49 MODULE_ALIAS("platform:pxa-pcm-audio");
|
/linux-6.14.4/sound/soc/amd/raven/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0+ 2 # Raven Ridge platform Support 3 snd-pci-acp3x-y := pci-acp3x.o 4 snd-acp3x-pcm-dma-y := acp3x-pcm-dma.o 5 snd-acp3x-i2s-y := acp3x-i2s.o 6 obj-$(CONFIG_SND_SOC_AMD_ACP3x) += snd-pci-acp3x.o 7 obj-$(CONFIG_SND_SOC_AMD_ACP3x) += snd-acp3x-pcm-dma.o 8 obj-$(CONFIG_SND_SOC_AMD_ACP3x) += snd-acp3x-i2s.o
|
/linux-6.14.4/sound/soc/mxs/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # MXS Platform Support 3 snd-soc-mxs-y := mxs-saif.o 4 snd-soc-mxs-pcm-y := mxs-pcm.o 6 obj-$(CONFIG_SND_MXS_SOC) += snd-soc-mxs.o snd-soc-mxs-pcm.o 9 snd-soc-mxs-sgtl5000-y := mxs-sgtl5000.o 11 obj-$(CONFIG_SND_SOC_MXS_SGTL5000) += snd-soc-mxs-sgtl5000.o
|
/linux-6.14.4/sound/soc/ti/ |
D | edma-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * edma-pcm.c - eDMA PCM driver using dmaengine for AM3xxx, AM4xxx 14 #include <sound/pcm.h> 19 #include "edma-pcm.h" 44 if (dev->of_node) in edma_pcm_platform_register() 50 return -ENOMEM; in edma_pcm_platform_register() 54 config->chan_names[0] = "tx"; in edma_pcm_platform_register() 55 config->chan_names[1] = "rx"; in edma_pcm_platform_register() 62 MODULE_DESCRIPTION("eDMA PCM ASoC platform driver");
|
/linux-6.14.4/sound/soc/atmel/ |
D | sam9g20_wm8731.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * sam9g20_wm8731 -- SoC audio for AT91SAM9G20-based 28 #include <linux/atmel-ssc.h> 31 #include <sound/pcm.h> 36 #include "atmel-pcm.h" 70 struct device *dev = rtd->dev; in at91sam9g20ek_wm8731_init() 83 snd_soc_dapm_nc_pin(&rtd->card->dapm, "Int Mic"); in at91sam9g20ek_wm8731_init() 89 SND_SOC_DAILINK_DEFS(pcm, 91 DAILINK_COMP_ARRAY(COMP_CODEC("wm8731.0-001b", "wm8731-hifi")), 96 .stream_name = "WM8731 PCM", [all …]
|