Home
last modified time | relevance | path

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

12

/linux/sound/soc/codecs/
H A Dcros_ec_codec.c1 // SPDX-License-Identifier: GPL-2.0
5 * ChromeOS Embedded Controller codec driver.
7 * This driver uses the cros-ec interface to communicate with the ChromeOS
8 * EC for audio function.
73 return priv->ec_capabilities & BIT(cap); in ec_codec_capable()
85 return -ENOMEM; in send_ec_host_command()
87 msg->version = 0; in send_ec_host_command()
88 msg->command = cmd; in send_ec_host_command()
89 msg->outsize = outsize; in send_ec_host_command()
90 msg->insize = insize; in send_ec_host_command()
[all …]
H A D88pm860x-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * 88pm860x-codec.c -- 88PM860x ALSA SoC Audio Driver
26 #include "88pm860x-codec.h"
117 * This widget should be just after DAC & PGA in DAPM power-on sequence and
118 * before DAC & PGA in DAPM power-off sequence.
149 /* -9450dB to 0dB in 150dB steps ( mute instead of -9450dB) */
150 static const DECLARE_TLV_DB_SCALE(dpga_tlv, -9450, 150, 1);
152 /* -9dB to 0db in 3dB steps */
153 static const DECLARE_TLV_DB_SCALE(adc_tlv, -900, 300, 0);
155 /* {-23, -17, -13.5, -11, -9, -6, -3, 0}dB */
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # modular, meaning we can't build the codec driver in with I2C support.
5 # setting - SPI can't be modular so that case doesn't need to be covered.
12 menu "CODEC drivers"
15 tristate "Build all ASoC CODEC drivers"
366 Normally ASoC codec drivers are only built if a machine driver which
430 tristate "Build generic ASoC AC97 CODEC drive
[all...]
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 snd-soc-88pm860x-y := 88pm860x-codec.o
3 snd-soc-ab850
[all...]
/linux/sound/pci/ali5451/
H A Dali5451.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * --
11 * --
21 #include <linux/dma-mappin
141 ALI_REG(codec,x) global() argument
180 struct snd_ali *codec; global() member
264 snd_ali_5451_peek(struct snd_ali * codec,unsigned int port) snd_ali_5451_peek() argument
270 snd_ali_5451_poke(struct snd_ali * codec,unsigned int port,unsigned int val) snd_ali_5451_poke() argument
277 snd_ali_codec_ready(struct snd_ali * codec,unsigned int port) snd_ali_codec_ready() argument
299 snd_ali_stimer_ready(struct snd_ali * codec) snd_ali_stimer_ready() argument
320 snd_ali_codec_poke(struct snd_ali * codec,int secondary,unsigned short reg,unsigned short val) snd_ali_codec_poke() argument
352 snd_ali_codec_peek(struct snd_ali * codec,int secondary,unsigned short reg) snd_ali_codec_peek() argument
391 struct snd_ali *codec = ac97->private_data; snd_ali_codec_write() local
407 struct snd_ali *codec = ac97->private_data; snd_ali_codec_read() local
417 snd_ali_reset_5451(struct snd_ali * codec) snd_ali_reset_5451() argument
458 snd_ali_enable_special_channel(struct snd_ali * codec,unsigned int channel) snd_ali_enable_special_channel() argument
468 snd_ali_disable_special_channel(struct snd_ali * codec,unsigned int channel) snd_ali_disable_special_channel() argument
478 snd_ali_enable_address_interrupt(struct snd_ali * codec) snd_ali_enable_address_interrupt() argument
488 snd_ali_disable_address_interrupt(struct snd_ali * codec) snd_ali_disable_address_interrupt() argument
498 snd_ali_disable_voice_irq(struct snd_ali * codec,unsigned int channel) snd_ali_disable_voice_irq() argument
512 snd_ali_alloc_pcm_channel(struct snd_ali * codec,int channel) snd_ali_alloc_pcm_channel() argument
531 snd_ali_find_free_channel(struct snd_ali * codec,int rec) snd_ali_find_free_channel() argument
580 snd_ali_free_channel_pcm(struct snd_ali * codec,int channel) snd_ali_free_channel_pcm() argument
600 snd_ali_stop_voice(struct snd_ali * codec,unsigned int channel) snd_ali_stop_voice() argument
612 snd_ali_delay(struct snd_ali * codec,int interval) snd_ali_delay() argument
627 snd_ali_detect_spdif_rate(struct snd_ali * codec) snd_ali_detect_spdif_rate() argument
683 snd_ali_get_spdif_in_rate(struct snd_ali * codec) snd_ali_get_spdif_in_rate() argument
708 snd_ali_enable_spdif_in(struct snd_ali * codec) snd_ali_enable_spdif_in() argument
723 snd_ali_disable_spdif_in(struct snd_ali * codec) snd_ali_disable_spdif_in() argument
735 snd_ali_set_spdif_out_rate(struct snd_ali * codec,unsigned int rate) snd_ali_set_spdif_out_rate() argument
758 snd_ali_enable_spdif_out(struct snd_ali * codec) snd_ali_enable_spdif_out() argument
791 snd_ali_enable_spdif_chnout(struct snd_ali * codec) snd_ali_enable_spdif_chnout() argument
809 snd_ali_disable_spdif_chnout(struct snd_ali * codec) snd_ali_disable_spdif_chnout() argument
820 snd_ali_disable_spdif_out(struct snd_ali * codec) snd_ali_disable_spdif_out() argument
830 snd_ali_update_ptr(struct snd_ali * codec,int channel) snd_ali_update_ptr() argument
880 struct snd_ali *codec = dev_id; snd_ali_card_interrupt() local
906 snd_ali_alloc_voice(struct snd_ali * codec,int type,int rec,int channel) snd_ali_alloc_voice() argument
936 snd_ali_free_voice(struct snd_ali * codec,struct snd_ali_voice * pvoice) snd_ali_free_voice() argument
961 snd_ali_clear_voices(struct snd_ali * codec,unsigned int v_min,unsigned int v_max) snd_ali_clear_voices() argument
973 snd_ali_write_voice_regs(struct snd_ali * codec,unsigned int Channel,unsigned int LBA,unsigned int CSO,unsigned int ESO,unsigned int DELTA,unsigned int ALPHA_FMS,unsigned int GVSEL,unsigned int PAN,unsigned int VOL,unsigned int CTRL,unsigned int EC) snd_ali_write_voice_regs() argument
984 snd_ali_write_voice_regs(struct snd_ali * codec,unsigned int Channel,unsigned int LBA,unsigned int CSO,unsigned int ESO,unsigned int DELTA,unsigned int ALPHA_FMS,unsigned int GVSEL,unsigned int PAN,unsigned int VOL,unsigned int CTRL,unsigned int EC) snd_ali_write_voice_regs() argument
1068 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_trigger() local
1132 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_hw_params() local
1162 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_hw_free() local
1176 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_prepare() local
1188 unsigned int EC; snd_ali_playback_prepare() local
1269 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_prepare() local
1279 unsigned int EC; snd_ali_prepare() local
1358 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_pointer() local
1380 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_pointer() local
1457 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_open() local
1494 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_close() local
1615 struct snd_ali *codec = pcm->private_data; snd_ali_pcm_free() local
1620 snd_ali_pcm(struct snd_ali * codec,int device,struct ali_pcm_description * desc) snd_ali_pcm() argument
1669 snd_ali_build_pcms(struct snd_ali * codec) snd_ali_build_pcms() argument
1691 struct snd_ali *codec = snd_kcontrol_chip(kcontrol); snd_ali5451_spdif_get() local
1719 struct snd_ali *codec = snd_kcontrol_chip(kcontrol); snd_ali5451_spdif_put() local
1784 snd_ali_mixer(struct snd_ali * codec) snd_ali_mixer() argument
1904 struct snd_ali *codec = card->private_data; snd_ali_free() local
1912 snd_ali_chip_init(struct snd_ali * codec) snd_ali_chip_init() argument
1976 struct snd_ali *codec = entry->private_data; snd_ali_proc_read() local
1982 snd_ali_proc_init(struct snd_ali * codec) snd_ali_proc_init() argument
1987 snd_ali_resources(struct snd_ali * codec) snd_ali_resources() argument
2014 struct snd_ali *codec = card->private_data; snd_ali_create() local
2109 struct snd_ali *codec; __snd_ali_probe() local
[all...]
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8186-corsola.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 /dts-v1/;
7 #include <dt-bindings/pinctrl/mt8186-pinfunc.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/input/gpio-keys.h>
11 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
26 stdout-path = "serial0:115200n8";
35 backlight_lcd0: backlight-lcd0 {
36 compatible = "pwm-backlight";
[all …]
H A Dmt8192-asurada.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
6 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/spmi/spmi.h>
25 stdout-path = "serial0:115200n8";
33 backlight_lcd0: backlight-lcd0 {
34 compatible = "pwm-backlight";
36 power-supply = <&ppvar_sys>;
37 enable-gpios = <&pio 152 0>;
38 brightness-levels = <0 1023>;
[all …]
H A Dmt8173-elm.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/regulator/dlg,da9211-regulator.h>
9 #include <dt-bindings/gpio/gpio.h>
25 compatible = "pwm-backlight";
27 power-supply = <&bl_fixed_reg>;
28 enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>;
30 pinctrl-names = "default";
31 pinctrl-0 = <&panel_backlight_en_pins>;
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-gru-chromebook.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Gru-Chromebook shared properties
8 #include "rk3399-gru.dtsi"
11 pp900_ap: regulator-pp900-ap {
12 compatible = "regulator-fixed";
13 regulator-name = "pp900_ap";
15 /* EC turns on w/ pp900_ap_en; always on for AP */
16 regulator-always-on;
17 regulator-boot-on;
18 regulator-min-microvolt = <900000>;
[all …]
H A Drk3399-gru.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 * Copyright 2016-2017 Google, Inc
8 #include <dt-bindings/input/input.h>
9 #include "rk3399-op1.dtsi"
18 stdout-path = "serial2:115200n8";
27 * - Rails that only connect to the EC (or devices that the EC talks to)
29 * - Rails _are_ included if the rails go to the AP even if the AP
38 * - The EC controls the enable and the EC always enables a rail as
40 * - The rails are actually connected to each other by a jumper and
45 ppvar_sys: regulator-ppvar-sys {
[all …]
H A Drk3399-gru-scarlet.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Gru-scarlet board device tree source
8 #include "rk3399-gru.dtsi"
11 chassis-type = "tablet";
16 pp1250_s3: regulator-pp1250-s3 {
17 compatible = "regulator-fixed";
18 regulator-name = "pp1250_s3";
20 /* EC turns on w/ pp1250_s3_en; always on for AP */
21 regulator-always-on;
22 regulator-boot-on;
[all …]
/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-trogdor.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 #include <dt-bindings/sound/sc7180-lpass.h>
16 #include "sc7180-firmware-tfa.dtsi"
22 thermal-zones {
23 charger_thermal: charger-thermal {
[all …]
/linux/drivers/platform/x86/dell/
H A Ddell-wmi-privacy.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/input/sparse-keymap.h>
19 #include "dell-wmi-privacy.h"
21 #define DELL_PRIVACY_GUID "6932965F-1671-4CEB-B988-D3AB0A901919"
78 return priv && (priv->features_present & BIT(DELL_PRIVACY_TYPE_AUDIO)); in dell_privacy_has_mic_mute()
86 * 3) WMI event is received by dell-privacy
87 * 4) KEY_MICMUTE emitted from dell-privacy
89 * 6) Codec kernel driver catches and calls ledtrig_audio_set which will call
91 * 7) dell-privacy notifies EC, the timeout is cancelled and the HW mute activates.
92 * If the EC is not notified then the HW mic mute will activate when the timeout
[all …]
/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8b-ec100.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
22 stdout-path = "serial0:115200n8";
30 emmc_pwrseq: emmc-pwrseq {
31 compatible = "mmc-pwrseq-emmc";
32 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
35 gpio-keys {
36 compatible = "gpio-keys-polled";
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5420-peach-pit.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-bindings/regulator/maxim,max77802.h>
14 #include <dt-bindings/sound/samsung-i2s.h>
16 #include "exynos5420-cpus.dtsi"
21 compatible = "google,pit-rev16",
[all …]
H A Dexynos5800-peach-pi.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-bindings/regulator/maxim,max77802.h>
14 #include <dt-bindings/sound/samsung-i2s.h>
16 #include "exynos5420-cpus.dtsi"
21 compatible = "google,pi-rev16",
[all …]
/linux/sound/soc/
H A Dsoc-topology.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-topology.c -- ALSA SoC Topology
29 #include <sound/soc-dapm.h>
30 #include <sound/soc-topology.h>
83 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count()
85 if (end > tplg->fw->data + tplg->fw->size) { in soc_tplg_check_elem_count()
86 dev_err(tplg->dev, "ASoC: %s overflow end of data\n", in soc_tplg_check_elem_count()
88 return -EINVAL; in soc_tplg_check_elem_count()
94 dev_err(tplg->dev, in soc_tplg_check_elem_count()
97 return -EINVAL; in soc_tplg_check_elem_count()
[all …]
/linux/sound/pci/trident/
H A Dtrident_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * ---
23 #include <linux/dma-mapping.h>
57 dev_dbg(trident->car
[all...]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra124-venice2.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
18 stdout-path = "serial0:115200n8";
29 vdd-supply = <&vdd_3v3_hdmi>;
30 pll-supply = <&vdd_hdmi_pll>;
31 hdmi-supply = <&vdd_5v0_hdmi>;
33 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
34 nvidia,hpd-gpio =
41 avdd-io-hdmi-dp-supply = <&vdd_1v05_run>;
[all …]
H A Dtegra114-asus-tf701t.dts1 // SPDX-License-Identifier: GPL-2.0
3 /dts-v1/;
5 #include <dt-bindings/input/gpio-keys.h>
6 #include <dt-bindings/input/input.h>
13 chassis-type = "convertible";
29 trusted-foundations {
30 compatible = "tlm,trusted-foundations";
31 tlm,version-major = <2>;
32 tlm,version-minor = <8>;
40 reserved-memory {
[all …]
H A Dtegra30-asus-p1801-t.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/gpio-keys.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/thermal/thermal.h>
9 #include "tegra30-cpu-opp.dtsi"
10 #include "tegra30-cpu-opp-microvolt.dtsi"
13 model = "Asus Portable AiO P1801-T";
14 compatible = "asus,p1801-t", "nvidia,tegra30";
15 chassis-type = "convertible";
[all …]
H A Dtegra30-asus-tf600t.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/gpio-keys.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/thermal/thermal.h>
10 #include "tegra30-cpu-opp.dtsi"
11 #include "tegra30-cpu-opp-microvolt.dtsi"
16 chassis-type = "convertible";
34 * pre-existing /chosen node to be available to insert the
[all …]
/linux/drivers/platform/x86/lenovo/
H A Dthinkpad_acpi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * thinkpad_acpi.c - ThinkPad ACPI Extras
5 * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net>
6 * Copyright (C) 2006-2009 Henrique de Moraes Holschuh <hmh@hmh.eng.br>
16 * 2007-10-20 changelog trimmed down
18 * 2007-03-27 0.14 renamed to thinkpad_acpi and moved to
21 * 2006-11-22 0.13 new maintainer
23 * not be updated further in-file.
25 * 2005-03-17 0.11 support for 600e, 770x
28 * 2005-01-16 0.9 use MODULE_VERSION
[all …]
/linux/sound/hda/codecs/cirrus/
H A Dcs8409-tables.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs8409-tables.c -- HD audio codec driver for Cirrus Logic CS8409 HDA bridge chip
72 { CS8409_PIN_ASP1_TRANSMITTER_A, 0x042120f0 }, /* ASP-1-TX */
73 { CS8409_PIN_ASP1_RECEIVER_A, 0x04a12050 }, /* ASP-1-RX */
74 { CS8409_PIN_ASP2_TRANSMITTER_A, 0x901000f0 }, /* ASP-2-TX */
75 { CS8409_PIN_DMIC1_IN, 0x90a00090 }, /* DMIC-1 */
80 { CS8409_PIN_ASP1_TRANSMITTER_A, 0x042120f0 }, /* ASP-1-TX */
81 { CS8409_PIN_ASP1_RECEIVER_A, 0x04a12050 }, /* ASP-1-RX */
82 { CS8409_PIN_ASP2_TRANSMITTER_A, 0x901000f0 }, /* ASP-2-TX */
187 /* -PLL2_EN */
[all …]
/linux/drivers/gpio/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
50 this symbol, but new drivers should use the generic gpio-regmap
60 non-sleeping contexts. They can make bitbanged serial protocols
81 numberspace-based functionalities of the sysfs interface.
137 Enables support for the idio-16 library functions. The idio-16 library
139 ACCES IDIO-16 family such as the 104-IDIO-16 and the PCI-IDIO-16.
141 If built as a module its name will be gpio-idio-16.
147 tristate "GPIO driver for 74xx-ICs with MMIO access"
151 Say yes here to support GPIO functionality for 74xx-compatible ICs
166 If driver is built as a module it will be called gpio-altera.
[all …]

12