Home
last modified time | relevance | path

Searched +full:off +full:- +full:codec (Results 1 – 25 of 473) sorted by relevance

12345678910>>...19

/Linux-v6.1/sound/pci/hda/
Dhda_beep.c1 // 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 …]
Dpatch_conexant.c1 // 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 …]
Dpatch_ca0132.c1 // 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-v6.1/Documentation/sound/soc/
Dcodec.rst2 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 …]
Ddapm.rst11 such, can easily co-exist with the other PM systems.
20 audio subsystem, this includes internal codec power blocks and machine
25 Codec bias domain
26 VREF, VMID (core codec and audio power)
28 Usually controlled at codec probe/remove and suspend/resume, although
53 internal codec components). All audio components that effect power are called
60 Audio DAPM widgets fall into a number of types:-
75 A codec input pin
77 A codec output pin
116 Sample Rate Converter within DSP or CODEC
[all …]
/Linux-v6.1/sound/hda/ext/
Dhdac_ext_controller.c1 // 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-v6.1/include/sound/ac97/
Dregs.h1 /* 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-v6.1/Documentation/devicetree/bindings/sound/
Drt5677.txt1 RT5677 audio CODEC
7 - compatible : "realtek,rt5677".
9 - reg : The I2C address of the device.
11 - interrupts : The CODEC's interrupt output.
13 - gpio-controller : Indicates this device is a GPIO controller.
15 - #gpio-cells : Should be two. The first cell is the pin number and the
20 - realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin.
21 - realtek,reset-gpio : The GPIO that controls the CODEC's RESET pin. Active low.
23 - realtek,in1-differential
24 - realtek,in2-differential
[all …]
Drt5660.txt1 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 …]
Dsamsung,odroid.yaml1 # 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 <krzk@kernel.org>
11 - Sylwester Nawrocki <s.nawrocki@samsung.com>
16 - const: hardkernel,odroid-xu3-audio
18 - const: hardkernel,odroid-xu4-audio
21 - const: samsung,odroid-xu3-audio
24 - const: samsung,odroid-xu4-audio
[all …]
Damlogic,gx-sound-card.yaml1 # 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 <jbrunet@baylibre.com>
15 - const: amlogic,gx-sound-card
17 audio-aux-devs:
18 $ref: /schemas/types.yaml#/definitions/phandle-array
21 audio-routing:
22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
[all …]
Dst,sta350.txt1 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 …]
Dcs35l32.txt1 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-v6.1/Documentation/devicetree/bindings/mfd/
Drockchip,rk817.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chris Zhong <zyw@rock-chips.com>
11 - Zhang Qing <zhangqing@rock-chips.com>
15 that includes regulators, an RTC, a power button, an audio codec, and a
21 - rockchip,rk817
29 '#clock-cells':
31 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
35 clock-output-names:
[all …]
/Linux-v6.1/sound/arm/
Dpxa2xx-ac97-regs.h1 /* 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-v6.1/arch/arm64/boot/dts/amlogic/
Dmeson-gxbb-wetek-play2.dts1 // 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";
21 sound-name-prefix = "DIT";
[all …]
/Linux-v6.1/sound/soc/codecs/
Dpcm3008.c1 // 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 …]
Dwm8978.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8978.c -- WM8978 ALSA SoC Audio Codec driver
5 * Copyright (C) 2009-2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de>
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 …]
Dcx20442.c1 // 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-v6.1/sound/aoa/codecs/
Dtoonie.c1 // 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-v6.1/Documentation/sound/designs/
Dpowersave.rst2 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-v6.1/arch/arm/boot/dts/
Drk3288-veyron-analog-audio.dtsi1 // 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-v6.1/include/linux/
Dwm97xx.h1 /* 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-v6.1/Documentation/sound/hd-audio/
Dcontrols.rst2 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 …]
/Linux-v6.1/sound/pci/cs5535audio/
Dcs5535audio_pm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 AC97 codec to shutdown. the amd spec suggests in snd_cs5535audio_stop_hardware()
24 that the codec power-down is issued. instead, in snd_cs5535audio_stop_hardware()
26 time. excluding codec specific build_ops->suspend in snd_cs5535audio_stop_hardware()
34 - analog mixer (vref off) 0x0800 in snd_cs5535audio_stop_hardware()
35 - AC-link powerdown 0x1000 in snd_cs5535audio_stop_hardware()
36 - codec internal clock 0x2000 in snd_cs5535audio_stop_hardware()
47 struct cs5535audio *cs5535au = card->private_data; in snd_cs5535audio_suspend()
51 snd_ac97_suspend(cs5535au->ac97); in snd_cs5535audio_suspend()
53 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_suspend()
[all …]

12345678910>>...19