Home
last modified time | relevance | path

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

123

/openbmc/linux/sound/soc/ti/
H A Domap-twl4030.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap-twl4030.c -- SoC audio for TI SoC based boards with twl4030 codec
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
20 #include <linux/platform_data/omap-twl4030.h>
31 #include "omap-mcbsp.h"
42 unsigned int fmt; in omap_twl4030_hw_params() local
46 fmt = SND_SOC_DAIFMT_I2S | in omap_twl4030_hw_params()
51 fmt = SND_SOC_DAIFMT_DSP_A | in omap_twl4030_hw_params()
56 return -EINVAL; in omap_twl4030_hw_params()
59 return snd_soc_runtime_set_dai_fmt(rtd, fmt); in omap_twl4030_hw_params()
[all …]
/openbmc/linux/sound/soc/intel/avs/boards/
H A Dmax98927.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-dapm.h>
16 #define MAX98927_DEV0_NAME "i2c-MX98927:00"
17 #define MAX98927_DEV1_NAME "i2c-MX98927:01"
18 #define MAX98927_CODEC_NAME "max98927-aif1"
32 SOC_DAPM_PIN_SWITCH("Left Spk"),
33 SOC_DAPM_PIN_SWITCH("Right Spk"),
37 SND_SOC_DAPM_SPK("Left Spk", NULL),
38 SND_SOC_DAPM_SPK("Right Spk", NULL),
[all …]
H A Dmax98373.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-dapm.h>
16 #define MAX98373_DEV0_NAME "i2c-MX98373:00"
17 #define MAX98373_DEV1_NAME "i2c-MX98373:01"
18 #define MAX98373_CODEC_NAME "max98373-aif1"
32 SOC_DAPM_PIN_SWITCH("Left Spk"),
33 SOC_DAPM_PIN_SWITCH("Right Spk"),
37 SND_SOC_DAPM_SPK("Left Spk", NULL),
38 SND_SOC_DAPM_SPK("Right Spk", NULL),
[all …]
H A Dmax98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved.
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-dapm.h>
17 SOC_DAPM_PIN_SWITCH("Spk"),
21 SND_SOC_DAPM_SPK("Spk", NULL),
25 { "Spk", NULL, "Speaker" },
32 struct snd_mask *fmt; in avs_max98357a_be_fixup() local
36 fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in avs_max98357a_be_fixup()
39 rate->min = rate->max = 48000; in avs_max98357a_be_fixup()
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dmax98088.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98088.c -- MAX98088 ALSA SoC Audio driver
35 unsigned int fmt; member
90 { 0x2b, 0x00 }, /* 2B left SPK mixer */
91 { 0x2c, 0x00 }, /* 2C right SPK mixer */
92 { 0x2d, 0x00 }, /* 2D SPK control */
109 { 0x3d, 0x00 }, /* 3D left SPK volume */
110 { 0x3e, 0x00 }, /* 3E right SPK volume */
337 "Off", "100Hz", "400Hz", "600Hz", "800Hz", "1000Hz", "200-400Hz",
338 "400-600Hz", "400-800Hz",
[all …]
H A Drk817_codec.c1 // SPDX-License-Identifier: GPL-2.0
33 * I don't have another implementation to compare from the Rockchip sources. Hard-coding for now.
46 if (rk817->mic_in_differential) { in rk817_init()
62 /* Set the PLL pre-divide value (values not documented). */ in rk817_set_component_pll()
74 * 0db~-95db, 0.375db/step, for example:
76 * 0xff: -95dB
79 static const DECLARE_TLV_DB_MINMAX(rk817_vol_tlv, -9500, 0);
83 * 27db~-18db, 3db/step, for example:
84 * 0x0: -18dB
88 static const DECLARE_TLV_DB_MINMAX(rk817_gain_tlv, -1800, 2700);
[all …]
H A Dcs42l73.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver
25 #include <sound/soc-dapm.h>
47 { 6, 0xF1 }, /* r06 - Power Ctl 1 */
48 { 7, 0xDF }, /* r07 - Power Ctl 2 */
49 { 8, 0x3F }, /* r08 - Power Ctl 3 */
50 { 9, 0x50 }, /* r09 - Charge Pump Freq */
51 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */
52 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */
53 { 12, 0x00 }, /* r0C - Aux PCM Ctl */
[all …]
H A Drt5660.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5660.c -- RT5660 ALSA SoC audio codec driver
24 #include <sound/soc-dapm.h>
296 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0);
297 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0);
298 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -1725, 75, 0);
300 static const DECLARE_TLV_DB_SCALE(rt5660_bst_tlv, -1200, 75, 0);
342 * rt5660_set_dmic_clk - Set parameter of dmic.
352 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5660_set_dmic_clk()
356 rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap, in rt5660_set_dmic_clk()
[all …]
H A Dcs42l52.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l52.c -- CS42L52 ALSA SoC audio driver
28 #include <sound/soc-dapm.h>
130 static DECLARE_TLV_DB_SCALE(hl_tlv, -10200, 50, 0);
132 static DECLARE_TLV_DB_SCALE(hpd_tlv, -9600, 50, 1);
134 static DECLARE_TLV_DB_SCALE(ipd_tlv, -9600, 100, 0);
138 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0);
140 static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0);
142 static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0);
144 static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0);
[all …]
H A Dak4535.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4535.c -- AK4535 ALSA Soc Audio driver
65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"};
174 SND_SOC_DAPM_PGA("Spk Amp", AK4535_PM2, 3, 0, NULL, 0),
232 {"Speaker Enable", "Switch", "Spk Amp"},
233 {"Spk Amp", NULL, "MIN"},
251 struct snd_soc_component *component = codec_dai->component; in ak4535_set_dai_sysclk()
254 ak4535->sysclk = freq; in ak4535_set_dai_sysclk()
262 struct snd_soc_component *component = dai->component; in ak4535_hw_params()
[all …]
H A Drt5640.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver
27 #include <sound/soc-dapm.h>
340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
436 SOC_ENUM("Class D SPK Ratio Control", rt5640_clsd_spk_ratio_enum),
451 * set_dmic_clk - Set parameter of dmic.
461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
[all …]
/openbmc/linux/sound/soc/amd/acp/
H A Dacp-mach-common.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
19 #include <sound/soc-dapm.h>
29 #include "acp-mach.h"
35 #define NAU8821_CODEC_DAI "nau8821-hifi"
38 #define MAX98388_CODEC_DAI "max98388-aif1"
44 /* Google skyrim proto-0 */
77 clk_set_rate(drvdata->wclk, srate); in acp_clk_enable()
78 clk_set_rate(drvdata->bclk, srate * bclk_ratio); in acp_clk_enable()
80 return clk_prepare_enable(drvdata->wclk); in acp_clk_enable()
85 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1")));
[all …]
/openbmc/linux/sound/soc/amd/
H A Dacp3x-rt5682-max9836.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <sound/soc-dapm.h>
56 struct snd_soc_card *card = rtd->card; in acp3x_5682_init()
58 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init()
60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init()
62 /* set rt5682 dai fmt */ in acp3x_5682_init()
67 dev_err(rtd->card->dev, in acp3x_5682_init()
68 "Failed to set rt5682 dai fmt: %d\n", ret); in acp3x_5682_init()
76 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init()
84 dev_err(rtd->dev, in acp3x_5682_init()
[all …]
/openbmc/linux/sound/soc/intel/boards/
H A Dcht_bsw_nau8824.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-nau8824.c - ASoc Machine driver for Intel Cherryview-based
10 * Co-author: John Hsu <KCHSU0@nuvoton.com>
11 * This file is based on cht_bsw_rt5672.c and cht-bsw-max98090.c
20 #include <sound/soc-acpi.h>
23 #include "../atom/sst-atom-controls.h"
45 SND_SOC_DAPM_SPK("Ext Spk", NULL),
49 {"Ext Spk", NULL, "SPKOUTL"},
50 {"Ext Spk", NULL, "SPKOUTR"},
69 SOC_DAPM_PIN_SWITCH("Ext Spk"),
[all …]
H A Dkbl_da7219_max98927.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #define KBL_DIALOG_CODEC_DAI "da7219-hifi"
24 #define MAX98927_CODEC_DAI "max98927-aif1"
25 #define MAX98927_DEV0_NAME "i2c-MX98927:00"
26 #define MAX98927_DEV1_NAME "i2c-MX98927:01"
28 #define MAX98373_CODEC_DAI "max98373-aif1"
29 #define MAX98373_DEV0_NAME "i2c-MX98373:00"
30 #define MAX98373_DEV1_NAME "i2c-MX98373:01"
66 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
67 struct snd_soc_card *card = dapm->card; in platform_clock_control()
[all …]
H A Dcht_bsw_max98090_ti.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
24 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
45 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
46 struct snd_soc_card *card = dapm->card; in platform_clock_control()
52 if (ctx->quirks & QUIRK_PMC_PLT_CLK_0) in platform_clock_control()
57 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
58 return -EIO; in platform_clock_control()
62 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
[all …]
H A Dbxt_da7219_max98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel Broxton-P I2S Machine Driver
19 #include <sound/soc-acpi.h>
22 #include "../common/soc-intel-quirks.h"
25 #define BXT_DIALOG_CODEC_DAI "da7219-hifi"
27 #define MAX98390_DEV0_NAME "i2c-MX98390:00"
28 #define MAX98390_DEV1_NAME "i2c-MX98390:01"
65 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
66 struct snd_soc_card *card = dapm->card; in platform_clock_control()
71 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control()
[all …]
H A Dkbl_rt5663_rt5514_max98927.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <sound/soc-acpi.h>
26 #include <linux/clk-provider.h>
29 #define KBL_REALTEK_CODEC_DAI "rt5663-aif"
30 #define KBL_REALTEK_DMIC_CODEC_DAI "rt5514-aif1"
31 #define KBL_MAXIM_CODEC_DAI "max98927-aif1"
32 #define MAXIM_DEV0_NAME "i2c-MX98927:00"
33 #define MAXIM_DEV1_NAME "i2c-MX98927:01"
34 #define RT5514_DEV_NAME "i2c-10EC5514:00"
35 #define RT5663_DEV_NAME "i2c-10EC5663:00"
[all …]
H A Dkbl_rt5663_max98927.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <sound/soc-acpi.h>
24 #include <linux/clk-provider.h>
27 #define KBL_REALTEK_CODEC_DAI "rt5663-aif"
28 #define KBL_MAXIM_CODEC_DAI "max98927-aif1"
29 #define DMIC_CH(p) p->list[p->count-1]
30 #define MAXIM_DEV0_NAME "i2c-MX98927:00"
31 #define MAXIM_DEV1_NAME "i2c-MX98927:01"
65 SOC_DAPM_PIN_SWITCH("Left Spk"),
66 SOC_DAPM_PIN_SWITCH("Right Spk"),
[all …]
H A Dkbl_da7219_max98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2017-18 Intel Corporation.
23 #define KBL_DIALOG_CODEC_DAI "da7219-hifi"
56 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
57 struct snd_soc_card *card = dapm->card; in platform_clock_control()
63 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control()
64 return -EIO; in platform_clock_control()
71 dev_err(card->dev, "failed to stop PLL: %d\n", ret); in platform_clock_control()
76 dev_err(card->dev, "failed to start PLL: %d\n", ret); in platform_clock_control()
85 SOC_DAPM_PIN_SWITCH("Spk"),
[all …]
H A Dskl_nau88l25_max98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <sound/soc-acpi.h>
20 #define SKL_NUVOTON_CODEC_DAI "nau8825-hifi"
22 #define DMIC_CH(p) p->list[p->count-1]
52 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
53 struct snd_soc_card *card = dapm->card; in platform_clock_control()
59 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
60 return -EIO; in platform_clock_control()
67 dev_err(card->dev, "set sysclk err = %d\n", ret); in platform_clock_control()
68 return -EIO; in platform_clock_control()
[all …]
H A Dglk_rt5682_max98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <sound/soc-acpi.h>
28 #define RT5682_DAI_NAME "rt5682-aif1"
29 #define RT5682S_DAI_NAME "rt5682s-aif1"
31 #define RT5682_DEV0_NAME "i2c-10EC5682:00"
32 #define RT5682S_DEV0_NAME "i2c-RTL5682:00"
68 SOC_DAPM_PIN_SWITCH("Spk"),
74 SND_SOC_DAPM_SPK("Spk", NULL),
93 /* HP jack connectors - unknown if we have jack detection */
98 { "Spk", NULL, "Speaker" },
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dwlf,arizona.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
20 - $ref: dai-common.yaml#
23 '#sound-dai-cells':
31 signals. Valid values are 0 (Differential), 1 (Single-ended) and
38 $ref: /schemas/types.yaml#/definitions/uint32-array
46 wlf,out-mono:
50 (eg. First entry in the list corresponds to output 1). A non-zero
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-compressed.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
8 .. _compressed-formats:
18 .. flat-table:: Compressed Image Formats
19 :header-rows: 1
20 :stub-columns: 0
23 * - Identifier
24 - Code
25 - Details
26 * .. _V4L2-PIX-FMT-JPEG:
28 - ``V4L2_PIX_FMT_JPEG``
[all …]
/openbmc/linux/sound/soc/qcom/
H A Dsdm845.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <uapi/linux/input-event-codes.h>
64 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
72 substream->stream); in sdm845_slim_snd_hw_params()
73 if (sruntime != ERR_PTR(-ENOTSUPP)) in sdm845_slim_snd_hw_params()
74 pdata->sruntime[cpu_dai->id] = sruntime; in sdm845_slim_snd_hw_params()
79 if (ret != 0 && ret != -ENOTSUPP) { in sdm845_slim_snd_hw_params()
82 } else if (ret == -ENOTSUPP) { in sdm845_slim_snd_hw_params()
87 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdm845_slim_snd_hw_params()
112 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params()
[all …]

123