/linux-6.14.4/sound/pci/hda/ |
D | hda_beep.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Digital Beep Input Interface for HD-audio codec 26 struct hda_codec *codec = beep->codec; in generate_tone() local 28 if (tone && !beep->playing) { in generate_tone() 29 snd_hda_power_up(codec); in generate_tone() 30 if (beep->power_hook) in generate_tone() 31 beep->power_hook(beep, true); in generate_tone() 32 beep->playing = 1; in generate_tone() 34 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone() 36 if (!tone && beep->playing) { in generate_tone() [all …]
|
D | patch_conexant.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HD audio interface patch for Conexant HDA audio codec 7 * Tobin Davis <tdavis@dsl-only.net> 63 spec->gen.beep_nid = nid; in set_beep_amp() 65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 68 return -ENOMEM; in set_beep_amp() 69 knew->private_value = beep_amp; in set_beep_amp() 74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() argument 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() 79 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep() [all …]
|
D | patch_senarytech.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HD audio interface patch for Senary HDA audio codec 52 spec->gen.beep_nid = nid; in set_beep_amp() 54 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 57 return -ENOMEM; in set_beep_amp() 58 knew->private_value = beep_amp; in set_beep_amp() 63 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() argument 65 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() 68 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep() 69 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep() [all …]
|
D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NID) 154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID) 163 * X-bass. 182 int params; /* number of default non-on/off params */ 183 /*effect default values, 1st is on/off. */ [all …]
|
/linux-6.14.4/Documentation/sound/soc/ |
D | codec.rst | 2 ASoC Codec Class Driver 5 The codec class driver is generic and hardware independent code that configures 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:- 13 1. Codec DAI and PCM configuration 14 2. Codec control IO - using RegMap API 16 4. Codec audio operations 20 Optionally, codec drivers can also provide:- 24 Its probably best to use this guide in conjunction with the existing codec 27 ASoC Codec driver breakdown [all …]
|
D | dapm.rst | 11 management frameworks and, as such, can easily co-exist with them. 29 different components (e.g. the LINE OUT pin of a CODEC and the input pin of 32 The graph for the STM32MP1-DK1 sound card is shown in picture: 34 .. kernel-figure:: dapm-graph.svg 39 `tools/sound/dapm-graph` utility. 46 Codec bias domain 47 VREF, VMID (core codec and audio power) 49 Usually controlled at codec probe/remove and suspend/resume, although 90 A codec input pin 92 A codec output pin [all …]
|
/linux-6.14.4/sound/hda/ext/ |
D | hdac_ext_controller.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * hdac-ext-controller.c - HD-audio extended controller functions. 5 * Copyright (C) 2014-2015 Intel Corp 18 * processing pipe helpers - these helpers are useful for dealing with HDA 23 * snd_hdac_ext_bus_ppcap_enable - enable/disable processing pipe capability 25 * @enable: flag to turn on/off the capability 30 if (!bus->ppcap) { in snd_hdac_ext_bus_ppcap_enable() 31 dev_err(bus->dev, "Address of PP capability is NULL"); in snd_hdac_ext_bus_ppcap_enable() 36 snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, in snd_hdac_ext_bus_ppcap_enable() 39 snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, in snd_hdac_ext_bus_ppcap_enable() [all …]
|
/linux-6.14.4/include/sound/ac97/ |
D | regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 4 * Universal interface for Audio Codec '97 10 * AC'97 codec registers 33 /* range 0x28-0x3a - AUDIO AC'97 2.0 extensions */ 44 /* range 0x3c-0x58 - MODEM */ 59 /* range 0x5a-0x7b - Vendor Specific */ 62 /* range 0x60-0x6f (page 1) - extended codec registers */ 63 #define AC97_CODEC_CLASS_REV 0x60 /* Codec Class/Revision */ 103 #define AC97_BC_RESERVED1 0x0002 /* Reserved (was Modem Line Codec support) */ 108 #define AC97_BC_16BIT_DAC 0x0000 /* 16-bit DAC resolution */ [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/sound/ |
D | realtek,rt5677.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RT5677 audio CODEC 10 - Animesh Agarwal <[email protected]> 30 - $ref: dai-common.yaml# 42 gpio-controller: true 44 '#gpio-cells': 47 realtek,pow-ldo2-gpio: 49 description: CODEC's POW_LDO2 pin. [all …]
|
D | rt5660.txt | 1 RT5660 audio CODEC 7 - compatible : "realtek,rt5660". 9 - reg : The I2C address of the device. 13 - clocks: The phandle of the master clock to the CODEC 14 - clock-names: Should be "mclk" 16 - realtek,in1-differential 17 - realtek,in3-differential 18 Boolean. Indicate MIC1/3 input are differential, rather than single-ended. 20 - realtek,poweroff-in-suspend 21 Boolean. If the codec will be powered off in suspend, the resume should be [all …]
|
D | amlogic,gx-sound-card.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jerome Brunet <[email protected]> 13 - $ref: sound-card-common.yaml# 18 - const: amlogic,gx-sound-card 20 audio-aux-devs: 21 $ref: /schemas/types.yaml#/definitions/phandle-array 24 audio-widgets: [all …]
|
D | samsung,odroid.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec 10 - Krzysztof Kozlowski <[email protected]> 11 - Sylwester Nawrocki <[email protected]> 14 - $ref: sound-card-common.yaml# 19 - const: hardkernel,odroid-xu3-audio 21 - const: hardkernel,odroid-xu4-audio 24 - const: samsung,odroid-xu3-audio [all …]
|
D | st,sta350.txt | 1 STA350 audio CODEC 7 - compatible: "st,sta350" 8 - reg: the I2C address of the device for I2C 9 - reset-gpios: a GPIO spec for the reset pin. If specified, it will be 10 deasserted before communication to the codec starts. 12 - power-down-gpios: a GPIO spec for the power down pin. If specified, 13 it will be deasserted before communication to the codec 16 - vdd-dig-supply: regulator spec, providing 3.3V 17 - vdd-pll-supply: regulator spec, providing 3.3V 18 - vcc-supply: regulator spec, providing 5V - 26V [all …]
|
D | cs35l32.txt | 1 CS35L32 audio CODEC 5 - compatible : "cirrus,cs35l32" 7 - reg : the I2C address of the device for I2C. Address is determined by the level 10 - VA-supply, VP-supply : power supplies for the device, 15 - reset-gpios : a GPIO spec for the reset pin. If specified, it will be 16 deasserted before communication to the codec starts. 18 - cirrus,boost-manager : Boost voltage control. 19 0 = Automatically managed. Boost-converter output voltage is the higher 21 1 = Automatically managed irrespective of audio, adapting for low-power 22 dissipation when LEDs are ON, and operating in Fixed-Boost Bypass Mode [all …]
|
/linux-6.14.4/sound/arm/ |
D | pxa2xx-ac97-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 32 #define GCR_ACLINK_OFF (1 << 3) /* AC-link Shut Off */ 35 #define GCR_GIE (1 << 0) /* Codec GPI Interrupt Enable */ 43 #define PISR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 48 #define MCSR_EOC (1 << 3) /* DMA End-of-Chain (exclusive clear) */ 60 #define GSR_SCR (1 << 9) /* Secondary Codec Ready */ 61 #define GSR_PCR (1 << 8) /* Primary Codec Ready */ 65 #define GSR_ACOFFD (1 << 3) /* AC-link Shut Off Done */ 68 #define GSR_GSCI (1 << 0) /* Codec GPI Status Change Interrupt */ 70 #define CAR (0x0020) /* CODEC Access Register */ [all …]
|
/linux-6.14.4/arch/arm64/boot/dts/amlogic/ |
D | meson-gxbb-wetek-play2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include "meson-gxbb-wetek.dtsi" 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/sound/meson-aiu.h> 14 compatible = "wetek,play2", "amlogic,meson-gxbb"; 17 spdif_dit: audio-codec-0 { 18 #sound-dai-cells = <0>; 19 compatible = "linux,spdif-dit"; 20 sound-name-prefix = "DIT"; [all …]
|
/linux-6.14.4/sound/soc/codecs/ |
D | pcm3008.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ALSA Soc PCM3008 codec support 8 * Based on AC97 Soc codec, original copyright follow: 31 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pcm3008_dac_ev() 32 struct pcm3008_setup_data *setup = component->dev->platform_data; in pcm3008_dac_ev() 34 gpio_set_value_cansleep(setup->pdda_pin, in pcm3008_dac_ev() 44 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pcm3008_adc_ev() 45 struct pcm3008_setup_data *setup = component->dev->platform_data; in pcm3008_adc_ev() 47 gpio_set_value_cansleep(setup->pdad_pin, in pcm3008_adc_ev() 80 .name = "pcm3008-hifi", [all …]
|
D | wm8978.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8978.c -- WM8978 ALSA SoC Audio Codec driver 5 * Copyright (C) 2009-2010 Guennadi Liakhovetski <[email protected]> 7 * Copyright 2006-2009 Wolfson Microelectronics PLC. 95 /* codec private data */ 106 static const char *wm8978_companding[] = {"Off", "NC", "u-law", "A-law"}; 115 static const char *wm8978_alc1[] = {"Off", "Right", "Left", "Both"}; 133 static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1); 134 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); 135 static const DECLARE_TLV_DB_SCALE(inpga_tlv, -1200, 75, 0); [all …]
|
D | cx20442.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * cx20442.c -- CX20442 ALSA Soc Audio driver 94 return -EINVAL; in cx20442_read_reg_cache() 96 return cx20442->reg_cache; in cx20442_read_reg_cache() 139 return -EINVAL; in cx20442_pm_to_v253_vls() 149 return (value & (1 << CX20442_AGC)) ? -EINVAL : 0; in cx20442_pm_to_v253_vsp() 160 return -EINVAL; in cx20442_write() 164 if (!cx20442->tty || !cx20442->tty->ops->write) in cx20442_write() 165 return -EIO; in cx20442_write() 167 old = cx20442->reg_cache; in cx20442_write() [all …]
|
/linux-6.14.4/sound/aoa/codecs/ |
D | toonie.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Apple Onboard Audio driver for Toonie codec 7 * This is a driver for the toonie codec chip. This chip is present 15 MODULE_DESCRIPTION("toonie codec driver for snd-aoa"); 21 #define PFX "snd-aoa-codec-toonie: " 24 struct aoa_codec codec; member 26 #define codec_to_toonie(c) container_of(c, struct toonie, codec) 63 /* can we turn it off somehow? */ in toonie_suspend() 85 static int toonie_init_codec(struct aoa_codec *codec) in toonie_init_codec() argument 87 struct toonie *toonie = codec_to_toonie(codec); in toonie_init_codec() [all …]
|
/linux-6.14.4/Documentation/sound/designs/ |
D | powersave.rst | 2 Notes on Power-Saving Mode 5 AC97 and HD-audio drivers have the automatic power-saving mode. 9 With the automatic power-saving, the driver turns off the codec power 15 The time-out for automatic power-off can be specified via ``power_save`` 16 module option of snd-ac97-codec and snd-hda-intel modules. Specify 17 the time-out value in seconds. 0 means to disable the automatic 18 power-saving. The default value of timeout is given via 27 automatic power-save mode with 10 seconds, write to 36 power-down to the active state. These are often hardly to fix, so 37 don't report extra bug reports unless you have a fix patch ;-) [all …]
|
/linux-6.14.4/arch/arm/boot/dts/rockchip/ |
D | rk3288-veyron-analog-audio.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 * codec and analog headphone jack. 11 compatible = "rockchip,rockchip-audio-max98090"; 12 pinctrl-names = "default"; 13 pinctrl-0 = <&mic_det>, <&hp_det>; 14 rockchip,model = "VEYRON-I2S"; 15 rockchip,i2s-controller = <&i2s>; 16 rockchip,audio-codec = <&max98090>; 17 rockchip,hp-det-gpios = <&gpio6 RK_PA5 GPIO_ACTIVE_HIGH>; 18 rockchip,mic-det-gpios = <&gpio6 RK_PB3 GPIO_ACTIVE_LOW>; [all …]
|
/linux-6.14.4/arch/arm/boot/dts/nxp/imx/ |
D | imx6ull-dhcom-pdk2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 6 * DHCM-iMX6ULL-C080-R051-F0409-SPI-E2-CAN2-RTC-WBT-ADC-I-01D2 7 * DHCOR PCB number: 578-200 or newer 8 * DHCOM PCB number: 579-200 or newer 9 * PDK2 PCB number: 516-400 or newer 11 /dts-v1/; 13 #include "imx6ull-dhcom-som.dtsi" 17 compatible = "dh,imx6ull-dhcom-pdk2", "dh,imx6ull-dhcom-som", 18 "dh,imx6ull-dhcor-som", "fsl,imx6ull"; 20 clk_ext_audio_codec: clock-codec { [all …]
|
/linux-6.14.4/include/linux/ |
D | wm97xx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 62 #define WM97XX_SLT(i) ((i - 5) & 0x7) /* panel slot (5-11) */ 64 #define WM97XX_PRP_DETW 0x4000 /* detect on, digitise off, wake */ 65 #define WM97XX_PRP_DET 0x8000 /* detect on, digitise off, no wake */ 71 #define WM9712_45W 0x1000 /* set for 5-wire touchscreen */ 124 /* Codec GPIO's */ 146 /*---------------- Return codes from sample reading functions ---------------*/ 160 * The wm97xx driver provides a private API for writing platform-specific 172 * Codec GPIO status 180 * Codec GPIO direction [all …]
|
/linux-6.14.4/Documentation/sound/hd-audio/ |
D | controls.rst | 2 HD-Audio Codec-Specific Mixer Controls 6 This file explains the codec-specific mixer controls. 9 -------------- 12 This is an enum control to change the surround-channel setup, 16 jack-retasking of multi-I/O jacks. 18 Auto-Mute Mode 19 This is an enum control to change the auto-mute behavior of the 20 headphone and line-out jacks. If built-in speakers and headphone 21 and/or line-out jacks are available on a machine, this controls 23 When there are only either headphones or line-out jacks, it gives [all …]
|