Home
last modified time | relevance | path

Searched +full:spk +full:- +full:shutdown (Results 1 – 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dsof_sdw_max98373.c1 // SPDX-License-Identifier: GPL-2.0-only
4 // sof_sdw_max98373 - Helpers to handle 2x MAX98373
11 #include <sound/soc-acpi.h>
12 #include <sound/soc-dapm.h>
17 SND_SOC_DAPM_SPK("Left Spk", NULL),
18 SND_SOC_DAPM_SPK("Right Spk", NULL),
22 SOC_DAPM_PIN_SWITCH("Left Spk"),
23 SOC_DAPM_PIN_SWITCH("Right Spk"),
28 struct snd_soc_card *card = rtd->card; in spk_init()
31 card->components = devm_kasprintf(card->dev, GFP_KERNEL, in spk_init()
[all …]
Dsof_pcm512x.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2018-2020 Intel Corporation.
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()
77 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
79 return -ENOMEM; in sof_hdmi_init()
82 pcm->device = rtd->dai_link->id; in sof_hdmi_init()
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/pinctrl/
Dcirrus,madera-pinctrl.txt19 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
22 - pinctrl-names : must be "default"
23 - pinctrl-0 : a phandle to the node containing the subnodes containing default
32 - groups : name of one pin group to configure. One of:
42 - function : name of function to assign to this group. One of:
45 io, dsp-gpio, irq1, irq2,
46 fll1-clk, fll1-lock, fll2-clk, fll2-lock, fll3-clk, fll3-lock,
47 fllao-clk, fllao-lock,
48 opclk, opclk-async, pwm1, pwm2, spdif,
49 asrc1-in1-lock, asrc1-in2-lock, asrc2-in1-lock, asrc2-in2-lock,
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
Dcirrus,madera.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
30 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
33 pinctrl-0:
38 pinctrl-names:
43 pin-settings:
50 '-pins$':
53 - $ref: "pincfg-node.yaml#"
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/
Dacp3x-rt5682-max9836.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <sound/soc-dapm.h>
45 struct snd_soc_card *card = rtd->card; in acp3x_5682_init()
47 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init()
49 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init()
56 dev_err(rtd->card->dev, in acp3x_5682_init()
65 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init()
73 dev_err(rtd->dev, in acp3x_5682_init()
81 dev_err(rtd->dev, in acp3x_5682_init()
86 rt5682_dai_wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp3x_5682_init()
[all …]
/kernel/linux/linux-5.10/sound/soc/pxa/
Dpoodle.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * poodle.c -- SoC audio for Poodle
22 #include <asm/mach-types.h>
28 #include "pxa2xx-i2s.h"
35 /* audio clock in Hz - rounded from 12.235MHz */
61 snd_soc_dapm_enable_pin(dapm, "Ext Spk"); in poodle_ext_control()
63 snd_soc_dapm_disable_pin(dapm, "Ext Spk"); in poodle_ext_control()
74 poodle_ext_control(&rtd->card->dapm); in poodle_startup()
79 /* we need to unmute the HP at shutdown as the mute burns power on poodle */
130 .shutdown = poodle_shutdown,
[all …]
Dcorgi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * corgi.c -- SoC audio for Corgi
23 #include <asm/mach-types.h>
28 #include "pxa2xx-i2s.h"
38 /* audio clock in Hz - rounded from 12.235MHz */
87 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in corgi_ext_control()
89 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in corgi_ext_control()
102 corgi_ext_control(&rtd->card->dapm); in corgi_startup()
107 /* we need to unmute the HP at shutdown as the mute burns power on corgi */
156 .shutdown = corgi_shutdown,
[all …]
/kernel/linux/linux-4.19/sound/soc/pxa/
Dpoodle.c2 * poodle.c -- SoC audio for Poodle
27 #include <asm/mach-types.h>
33 #include "pxa2xx-i2s.h"
40 /* audio clock in Hz - rounded from 12.235MHz */
66 snd_soc_dapm_enable_pin(dapm, "Ext Spk"); in poodle_ext_control()
68 snd_soc_dapm_disable_pin(dapm, "Ext Spk"); in poodle_ext_control()
76 struct snd_soc_pcm_runtime *rtd = substream->private_data; in poodle_startup()
79 poodle_ext_control(&rtd->card->dapm); in poodle_startup()
84 /* we need to unmute the HP at shutdown as the mute burns power on poodle */
97 struct snd_soc_pcm_runtime *rtd = substream->private_data; in poodle_hw_params()
[all …]
Dcorgi.c2 * corgi.c -- SoC audio for Corgi
27 #include <asm/mach-types.h>
32 #include "pxa2xx-i2s.h"
42 /* audio clock in Hz - rounded from 12.235MHz */
91 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in corgi_ext_control()
93 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in corgi_ext_control()
103 struct snd_soc_pcm_runtime *rtd = substream->private_data; in corgi_startup()
106 corgi_ext_control(&rtd->card->dapm); in corgi_startup()
111 /* we need to unmute the HP at shutdown as the mute burns power on corgi */
122 struct snd_soc_pcm_runtime *rtd = substream->private_data; in corgi_hw_params()
[all …]
/kernel/linux/linux-5.10/sound/soc/ti/
Dn810.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * n810.c -- SoC audio for Nokia N810
17 #include <asm/mach-types.h>
20 #include <linux/platform_data/asoc-ti-mcbsp.h>
22 #include "omap-mcbsp.h"
61 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
63 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
86 struct snd_pcm_runtime *runtime = substream->runtime; in n810_startup()
91 n810_ext_control(&rtd->card->dapm); in n810_startup()
117 .shutdown = n810_shutdown,
[all …]
/kernel/linux/linux-4.19/sound/soc/omap/
Dn810.c2 * n810.c -- SoC audio for Nokia N810
20 * 02110-1301 USA
31 #include <asm/mach-types.h>
34 #include <linux/platform_data/asoc-ti-mcbsp.h>
36 #include "omap-mcbsp.h"
74 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
76 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
99 struct snd_pcm_runtime *runtime = substream->runtime; in n810_startup()
100 struct snd_soc_pcm_runtime *rtd = substream->private_data; in n810_startup()
104 n810_ext_control(&rtd->card->dapm); in n810_startup()
[all …]
/kernel/linux/linux-4.19/drivers/staging/speakup/
Dspkguide.txt16 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
25 http://linux-speakup.org/. Speakup is a set of patches to the standard
33 the system is shutdown. This means that if you have obtained Linux
72 acntsa -- Accent SA
73 acntpc -- Accent PC
74 apollo -- Apollo
75 audptr -- Audapter
76 bns -- Braille 'n Speak
77 dectlk -- DecTalk Express (old and new, db9 serial only)
78 decext -- DecTalk (old) External
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/
Dspkguide.txt16 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
25 http://linux-speakup.org/. Speakup is a set of patches to the standard
33 the system is shutdown. This means that if you have obtained Linux
72 acntsa -- Accent SA
73 acntpc -- Accent PC
74 apollo -- Apollo
75 audptr -- Audapter
76 bns -- Braille 'n Speak
77 dectlk -- DecTalk Express (old and new, db9 serial only)
78 decext -- DecTalk (old) External
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dmax98090.c2 * max98090.c -- MAX98090 ALSA SoC Audio driver
4 * Copyright 2011-2012 Maxim Integrated Products
77 { 0x2E, 0x00 }, /* 2E Left Spk Mixer */
78 { 0x2F, 0x00 }, /* 2F Right Spk Mixer */
80 { 0x30, 0x00 }, /* 30 Spk Control */
81 { 0x31, 0x2C }, /* 31 Left Spk Volume */
82 { 0x32, 0x2C }, /* 32 Right Spk Volume */
102 { 0x45, 0x00 }, /* 45 Device Shutdown */
283 /* Reset the codec by writing to this write-only reset register */ in max98090_reset()
284 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset()
[all …]
Drt5659.c2 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver
29 #include <sound/soc-dapm.h>
1140 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2325, 75, 0);
1141 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
1142 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0);
1143 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
1144 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0);
1146 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0);
1290 * rt5659_headset_detect - Detect headset.
1337 rt5659->jack_type = SND_JACK_HEADSET; in rt5659_headset_detect()
[all …]
Drt5645.c2 * rt5645.c -- RT5645 ALSA SoC audio codec driver
30 #include <sound/soc-dapm.h>
44 static unsigned int quirk = -1;
636 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
637 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
638 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
639 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
653 /* {-6, -4.5, -3, -1.5, 0, 0.82, 1.58, 2.28} dB */
655 0, 4, TLV_DB_SCALE_ITEM(-600, 150, 0),
664 uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES; in rt5645_hweq_info()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmax98090.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98090.c -- MAX98090 ALSA SoC Audio driver
5 * Copyright 2011-2012 Maxim Integrated Products
74 { 0x2E, 0x00 }, /* 2E Left Spk Mixer */
75 { 0x2F, 0x00 }, /* 2F Right Spk Mixer */
77 { 0x30, 0x00 }, /* 30 Spk Control */
78 { 0x31, 0x2C }, /* 31 Left Spk Volume */
79 { 0x32, 0x2C }, /* 32 Right Spk Volume */
99 { 0x45, 0x00 }, /* 45 Device Shutdown */
280 /* Reset the codec by writing to this write-only reset register */ in max98090_reset()
[all …]
Drt700.c1 // SPDX-License-Identifier: GPL-2.0
3 // rt700.c -- rt700 ALSA SoC audio driver
23 #include <sound/soc-dapm.h>
65 ret = rt700_index_read(rt700->regmap, RT700_IRQ_FLAG_TABLE1, &val80); in rt700_button_detect()
68 ret = rt700_index_read(rt700->regmap, RT700_IRQ_FLAG_TABLE2, &val81); in rt700_button_detect()
111 ret = rt700_index_read(rt700->regmap, in rt700_headset_detect()
121 ret = rt700_index_read(rt700->regmap, in rt700_headset_detect()
127 ret = regmap_read(rt700->regmap, reg, &jack_status); in rt700_headset_detect()
136 rt700->jack_type = SND_JACK_HEADPHONE; in rt700_headset_detect()
139 rt700->jack_type = SND_JACK_HEADSET; in rt700_headset_detect()
[all …]
Drt5659.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver
26 #include <sound/soc-dapm.h>
1137 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2325, 75, 0);
1138 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
1139 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0);
1140 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
1141 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0);
1143 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0);
1250 * rt5659_headset_detect - Detect headset.
[all …]
Drt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5645.c -- RT5645 ALSA SoC audio codec driver
27 #include <sound/soc-dapm.h>
41 static unsigned int quirk = -1;
638 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
639 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
640 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
641 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
655 /* {-6, -4.5, -3, -1.5, 0, 0.82, 1.58, 2.28} dB */
657 0, 4, TLV_DB_SCALE_ITEM(-600, 150, 0),
[all …]
Drk3328_codec.c1 // SPDX-License-Identifier: GPL-2.0
23 * 0: -39dB
59 regmap_write(rk3328->regmap, CODEC_RESET, 0x00); in rk3328_codec_reset()
61 regmap_write(rk3328->regmap, CODEC_RESET, 0x03); in rk3328_codec_reset()
69 snd_soc_component_get_drvdata(dai->component); in rk3328_set_dai_fmt()
80 return -EINVAL; in rk3328_set_dai_fmt()
83 regmap_update_bits(rk3328->regmap, DAC_INIT_CTRL1, in rk3328_set_dai_fmt()
101 return -EINVAL; in rk3328_set_dai_fmt()
104 regmap_update_bits(rk3328->regmap, DAC_INIT_CTRL2, in rk3328_set_dai_fmt()
113 snd_soc_component_get_drvdata(dai->component); in rk3328_mute_stream()
[all …]
Dwm8985.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8985.c -- WM8985 / WM8758 ALSA SoC Audio driver
49 { 1, 0x0000 }, /* R1 - Power management 1 */
50 { 2, 0x0000 }, /* R2 - Power management 2 */
51 { 3, 0x0000 }, /* R3 - Power management 3 */
52 { 4, 0x0050 }, /* R4 - Audio Interface */
53 { 5, 0x0000 }, /* R5 - Companding control */
54 { 6, 0x0140 }, /* R6 - Clock Gen control */
55 { 7, 0x0000 }, /* R7 - Additional control */
56 { 8, 0x0000 }, /* R8 - GPIO Control */
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2018 Cirrus Logic
17 #include <linux/pinctrl/pinconf-generic.h>
22 #include "../pinctrl-utils.h"
24 #include "pinctrl-madera.h"
28 * NOTE: IDs are zero-indexed for coding convenience
74 * All single-pin functions can be mapped to any GPIO, however pinmux applies
78 * Since these do not correspond to anything in the actual hardware - they are
79 * merely an adaptation to pinctrl's view of the world - we use the same name
91 /* set of pin numbers for single-pin groups, zero-indexed */
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016-2018 Cirrus Logic
20 #include <linux/pinctrl/pinconf-generic.h>
25 #include "../pinctrl-utils.h"
27 #include "pinctrl-madera.h"
31 * NOTE: IDs are zero-indexed for coding convenience
77 * All single-pin functions can be mapped to any GPIO, however pinmux applies
81 * Since these do not correspond to anything in the actual hardware - they are
82 * merely an adaptation to pinctrl's view of the world - we use the same name
94 /* set of pin numbers for single-pin groups, zero-indexed */
[all …]
/kernel/linux/linux-5.10/sound/soc/qcom/
Dsdm845.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <uapi/linux/input-event-codes.h>
52 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
60 substream->stream); in sdm845_slim_snd_hw_params()
61 if (sruntime != ERR_PTR(-ENOTSUPP)) in sdm845_slim_snd_hw_params()
62 pdata->sruntime[cpu_dai->id] = sruntime; in sdm845_slim_snd_hw_params()
67 if (ret != 0 && ret != -ENOTSUPP) { in sdm845_slim_snd_hw_params()
70 } else if (ret == -ENOTSUPP) { in sdm845_slim_snd_hw_params()
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdm845_slim_snd_hw_params()
100 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
[all …]

12