Home
last modified time | relevance | path

Searched +full:mic +full:- +full:int (Results 1 – 25 of 559) sorted by relevance

12345678910>>...23

/linux/sound/soc/codecs/
H A Dak4641.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4641.c -- AK4641 ALSA Soc Audio driver
52 unsigned int sysclk;
53 int deemph;
54 int playback_fs;
68 static const int deemph_settings[] = {44100, 0, 48000, 32000};
70 static int ak4641_set_deemph(struct snd_soc_component *component) in ak4641_set_deemph()
73 int i, best = 0; in ak4641_set_deemph()
77 if (ak4641->deemph && deemph_settings[i] != 0 && in ak4641_set_deemph()
78 abs(deemph_settings[i] - ak4641->playback_fs) < in ak4641_set_deemph()
[all …]
H A Dak4535.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4535.c -- AK4535 ALSA Soc Audio driver
31 unsigned int sysclk;
55 static bool ak4535_volatile(struct device *dev, unsigned int reg) in ak4535_volatile()
65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"};
86 SOC_SINGLE("Mic Boost (+20dB) Switch", AK4535_MIC, 0, 1, 0),
87 SOC_ENUM("Mic Select", ak4535_enum[4]),
98 SOC_SINGLE("Mic Sidetone Volume", AK4535_VOL, 4, 7, 0),
103 SOC_DAPM_SINGLE("Mic Sidetone Switch", AK4535_SIG1, 4, 1, 0),
[all …]
H A Djz4725b.c1 // SPDX-License-Identifier: GPL-2.0
167 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(jz4725b_dac_tlv, -2250, 150, 0);
169 0, 11, TLV_DB_SCALE_ITEM(-2250, 0, 0),
170 12, 31, TLV_DB_SCALE_ITEM(-2250, 150, 0),
174 0, 11, TLV_DB_SCALE_ITEM(-3350, 200, 0),
175 12, 23, TLV_DB_SCALE_ITEM(-1050, 100, 0),
204 SOC_DOUBLE_R_TLV("Mixer Mic 1 Bypass Playback Volume",
209 SOC_DOUBLE_R_TLV("Mixer Mic 2 Bypass Playback Volume",
228 SOC_SINGLE("High-Pass Filter Capture Switch",
232 SOC_ENUM("Mic Mode Capture Switch", jz4725b_mic_mode_enum),
[all …]
H A Dtlv320adcx140.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
35 unsigned int dai_fmt;
36 unsigned int slot_width;
40 "ti,gpo-config-1",
41 "ti,gpo-config-2",
42 "ti,gpo-config-3",
43 "ti,gpo-config-4",
137 static bool adcx140_volatile(struct device *dev, unsigned int reg) in adcx140_volatile()
162 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */
[all …]
H A Dwm9705.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm9705.c -- ALSA Soc WM9705 codec support
88 SOC_SINGLE("Mic Playback Volume", AC97_MIC, 0, 31, 1),
89 SOC_SINGLE("Mic 20dB Boost Switch", AC97_MIC, 6, 1, 0),
94 static const char *wm9705_mic[] = {"Mic 1", "Mic 2"};
95 static const char *wm9705_rec_sel[] = {"Mic", "CD", "NC", "NC",
109 SOC_DAPM_SINGLE("Mic Playback Switch", AC97_MIC, 15, 1, 1),
114 /* Mic source */
126 SND_SOC_DAPM_MUX("Mic Source", SND_SOC_NOPM, 0, 0,
148 SND_SOC_DAPM_PGA("Mic PGA", SND_SOC_NOPM, 0, 0, NULL, 0),
[all …]
H A Dab8500-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
8 * for ST-Ericsson.
14 * for ST-Ericsson.
29 #include <linux/mfd/abx500/ab8500-sysctrl.h>
30 #include <linux/mfd/abx500/ab8500-codec.h>
39 #include <sound/soc-dapm.h>
42 #include "ab8500-codec.h"
56 /* Nr of FIR/IIR-coeff banks in ANC-block */
72 unsigned int count;
[all …]
H A Dda7213.c1 // SPDX-License-Identifier: GPL-2.0-or-later
34 /* -54dB */
35 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0),
36 /* -52.5dB to 15dB */
37 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0)
42 /* -7
[all...]
/linux/drivers/xen/
H A Dmcelog.c69 static int xen_mce_chrdev_open_count; /* #times opened */
70 static int xen_mce_chrdev_open_exclu; /* already open exclusive? */
74 static int xen_mce_chrdev_open(struct inode *inode, struct file *file) in xen_mce_chrdev_open()
79 (xen_mce_chrdev_open_count && (file->f_flags & O_EXCL))) { in xen_mce_chrdev_open()
82 return -EBUSY; in xen_mce_chrdev_open()
85 if (file->f_flags & O_EXCL) in xen_mce_chrdev_open()
94 static int xen_mce_chrdev_release(struct inode *inode, struct file *file) in xen_mce_chrdev_release()
98 xen_mce_chrdev_open_count--; in xen_mce_chrdev_release()
111 int i, err; in xen_mce_chrdev_read()
118 err = -EINVAL; in xen_mce_chrdev_read()
[all …]
/linux/sound/soc/ti/
H A Domap-abe-twl6040.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap-abe-twl6040.c -- SoC audio for TI OMAP based boards with ABE and
20 #include "omap-dmic.h"
21 #include "omap-mcpdm.h"
26 DAILINK_COMP_ARRAY(COMP_CODEC("twl6040-codec",
27 "twl6040-legacy")),
32 DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec",
33 "dmic-hifi")),
39 int jack_detection; /* board can detect jack events */
40 int mclk_freq; /* MCLK frequency speed for twl6040 */
[all …]
/linux/sound/hda/common/
H A Dhda_auto_parser.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * BIOS auto-parser helper functions for HD-audio
36 int type;
37 unsigned int is_headset_mic:1;
38 unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */
39 unsigned int has_boost_on_pin:1;
40 int order;
46 int input);
47 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
49 char *label, int maxlen, int *indexp);
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dnvidia,tegra-audio-rt5631.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5631.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jon Hunter <jonathanh@nvidia.com>
11 - Thierry Reding <thierry.reding@gmail.com>
14 - $ref: nvidia,tegra-audio-common.yaml#
19 - pattern: '^[a-z0-9]+,tegra-audio-rt5631(-[a-z0-9]+)+$'
20 - const: nvidia,tegra-audio-rt5631
22 nvidia,audio-routing:
[all …]
H A Dnvidia,tegra-audio-wm8903.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm8903.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jon Hunter <jonathanh@nvidia.com>
11 - Thierry Reding <thierry.reding@gmail.com>
14 - $ref: nvidia,tegra-audio-common.yaml#
19 - items:
20 - pattern: '^[a-z0-9]+,tegra-audio-wm8903(-[a-z0-9]+)+$'
21 - const: nvidia,tegra-audio-wm8903
[all …]
H A Dnvidia,tegra-audio-max9808x.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-max9808x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jon Hunter <jonathanh@nvidia.com>
11 - Thierry Reding <thierry.reding@gmail.com>
14 - $ref: nvidia,tegra-audio-common.yaml#
19 - items:
20 - pattern: '^[a-z0-9]+,tegra-audio-max98088(-[a-z0-9]+)+$'
21 - const: nvidia,tegra-audio-max98088
[all …]
H A Dfsl,imx-audio-es8328.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/fsl,imx-audio-es8328.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Shawn Guo <shawnguo@kernel.org>
11 - Sascha Hauer <s.hauer@pengutronix.de>
14 - $ref: sound-card-common.yaml#
18 const: fsl,imx-audio-es8328
22 description: The user-visible name of this sound complex
24 ssi-controller:
[all …]
H A Dnvidia,tegra-audio-alc5632.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-alc5632.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jon Hunter <jonathanh@nvidia.com>
11 - Thierry Reding <thierry.reding@gmail.com>
14 - $ref: nvidia,tegra-audio-common.yaml#
19 - pattern: '^[a-z0-9]+,tegra-audio-alc5632(-[a-z0-9]+)+$'
20 - const: nvidia,tegra-audio-alc5632
22 nvidia,audio-routing:
[all …]
/linux/sound/soc/intel/boards/
H A Dcht_bsw_rt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-rt5645.c - ASoc Machine driver for Intel Cherryview-based platforms
25 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
28 #include "../common/soc-intel-quirks.h"
31 #define CHT_CODEC_DAI1 "rt5645-aif1"
32 #define CHT_CODEC_DAI2 "rt5645-aif2"
36 int codec_type;
66 static int platform_clock_control(struct snd_soc_dapm_widget *w, in platform_clock_control()
67 struct snd_kcontrol *k, int event) in platform_clock_control()
[all …]
H A Dbytcr_rt5651.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * bytcr_rt5651.c - ASoc Machine driver for Intel Byt CR platform
29 #include <sound/soc-acpi.h>
31 #include "../atom/sst-atom-controls.h"
32 #include "../common/soc-intel-quirk
[all...]
H A Dbytcr_wm5102.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * bytcr_wm5102.c - ASoc Machine driver for Intel Baytrail platforms with a
8 * Copyright (C) 2014-2020 Intel Corp
27 #include <sound/soc-acpi.h>
29 #include "../atom/sst-atom-controls.h"
38 int mclk_fre
[all...]
H A Dbytcht_es8316.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * bytcht_es8316.c - ASoc Machine driver for Intel Baytrail/Cherrytrail
7 * Authors: David Yang <yangxiaohua@everest-semi.com>,
29 #include <sound/soc-acpi.h>
30 #include "../../codecs/es83xx-dsm-common.h"
31 #include "../atom/sst-ato
[all...]
/linux/sound/soc/amd/
H A Dacp-rt5645.c33 #include <sound/soc-dapm.h>
51 .pin = "Headset Mic",
56 static int cz_aif1_hw_params(struct snd_pcm_substream *substream, in cz_aif1_hw_params()
59 int ret = 0; in cz_aif1_hw_params()
66 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_aif1_hw_params()
73 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_aif1_hw_params()
80 static int cz_init(struct snd_soc_pcm_runtime *rtd) in cz_init()
82 int ret; in cz_init()
86 codec = snd_soc_rtd_to_codec(rtd, 0)->component; in cz_init()
87 card = rtd->card; in cz_init()
[all …]
/linux/sound/usb/
H A Dmixer_maps.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 int min;
10 int max;
15 int id;
17 int control;
22 int id;
23 int count;
41 USB_IN[1] --->FU[2]------------------------------+->MU[16]-->PU[17]-+->FU[18]--+->EU[27]--+->EU[21]
43 USB_IN[3] -+->SU[5]-->FU[6]--+->MU[14] ->PU[15]->+ | | | …
45 Dig_IN[4] -+ | | | | +->FU[28]
[all …]
/linux/sound/hda/codecs/
H A Dconexant.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Tobin Davis <tdavis@dsl-only.net>
28 unsigned int num_eapds;
33 unsigned int parse_flags; /* flag for snd_hda_parse_pin_defcfg() */
38 unsigned int dc_input_bias; /* offset into olpc_xo_dc_bias */
41 int mute_led_polarit
[all...]
H A Danalog.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 2005-2007 Takashi Iwai <tiwai@suse.de>
32 int model;
35 int smux_paths[4];
36 unsigned int cur_smux;
39 unsigned int beep_am
[all...]
/linux/sound/hda/codecs/realtek/
H A Dalc662.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * 6-channel independent captures.
18 * In addition, an independent DAC for the multi-playback (not used in this
26 static int alc662_parse_auto_config(struct hda_codec *codec) in alc662_parse_auto_config()
33 if (codec->core.vendor_id == 0x10ec0272 || codec->core.vendor_id == 0x10ec0663 || in alc662_parse_auto_config()
34 codec->core.vendor_id == 0x10ec0665 || codec->core.vendor_id == 0x10ec0670 || in alc662_parse_auto_config()
35 codec->core.vendor_id == 0x10ec0671) in alc662_parse_auto_config()
43 const struct hda_fixup *fix, int action) in alc272_fixup_mario()
56 static unsigned int gpio_led_power_filter(struct hda_codec *codec, in gpio_led_power_filter()
58 unsigned int power_state) in gpio_led_power_filter()
[all …]
/linux/sound/soc/atmel/
H A Dsam9g20_wm8731.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sam9g20_wm8731 -- SoC audio for AT91SAM9G20-based
28 #include <linux/atmel-ssc.h>
36 #include "atmel-pcm.h"
49 SND_SOC_DAPM_MIC("Int Mic", NULL),
59 /* mic is connected to Mic Jack, with WM8731 Mic Bias */
60 {"MICIN", NULL, "Mic Bias"},
61 {"Mic Bias", NULL, "Int Mic"},
67 static int at91sam9g20ek_wm8731_init(struct snd_soc_pcm_runtime *rtd) in at91sam9g20ek_wm8731_init()
70 struct device *dev = rtd->dev; in at91sam9g20ek_wm8731_init()
[all …]

12345678910>>...23