Home
last modified time | relevance | path

Searched full:rt5682 (Results 1 – 25 of 92) sorted by relevance

1234

/kernel/linux/linux-6.6/sound/soc/codecs/
Drt5682-i2c.c3 // rt5682.c -- RT5682 ALSA SoC audio component driver
28 #include <sound/rt5682.h>
31 #include "rt5682.h"
38 .dai_clk_names[RT5682_DAI_WCLK_IDX] = "rt5682-dai-wclk",
39 .dai_clk_names[RT5682_DAI_BCLK_IDX] = "rt5682-dai-bclk",
57 struct rt5682_priv *rt5682 = container_of(work, struct rt5682_priv, in rt5682_jd_check_handler() local
60 if (snd_soc_component_read(rt5682->component, RT5682_AJD1_CTRL) & RT5682_JDH_RS_MASK) in rt5682_jd_check_handler()
63 &rt5682->jack_detect_work, 0); in rt5682_jd_check_handler()
65 schedule_delayed_work(&rt5682->jd_check_work, 500); in rt5682_jd_check_handler()
70 struct rt5682_priv *rt5682 = data; in rt5682_irq() local
[all …]
Drt5682-sdw.c3 // rt5682-sdw.c -- RT5682 ALSA SoC audio component driver
31 #include "rt5682.h"
42 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_read() local
45 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 0); in rt5682_sdw_read()
46 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_read()
47 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_L, (reg & 0xff)); in rt5682_sdw_read()
48 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_H, &data_h); in rt5682_sdw_read()
49 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_L, &data_l); in rt5682_sdw_read()
61 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_write() local
63 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 1); in rt5682_sdw_write()
[all …]
Drt5682.c3 // rt5682.c -- RT5682 ALSA SoC audio component driver
28 #include <sound/rt5682.h>
31 #include "rt5682.h"
56 void rt5682_apply_patch_list(struct rt5682_priv *rt5682, struct device *dev) in rt5682_apply_patch_list() argument
60 ret = regmap_multi_reg_write(rt5682->regmap, patch_list, in rt5682_apply_patch_list()
815 void rt5682_reset(struct rt5682_priv *rt5682) in rt5682_reset() argument
817 regmap_write(rt5682->regmap, RT5682_RESET, 0); in rt5682_reset()
818 if (!rt5682->is_sdw) in rt5682_reset()
819 regmap_write(rt5682->regmap, RT5682_I2C_MODE, 1); in rt5682_reset()
829 * The ASRC function is for asynchronous MCLK and LRCK. Also, since RT5682 can
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Drt5682-i2c.c3 // rt5682.c -- RT5682 ALSA SoC audio component driver
30 #include <sound/rt5682.h>
33 #include "rt5682.h"
40 .dai_clk_names[RT5682_DAI_WCLK_IDX] = "rt5682-dai-wclk",
41 .dai_clk_names[RT5682_DAI_BCLK_IDX] = "rt5682-dai-bclk",
59 struct rt5682_priv *rt5682 = container_of(work, struct rt5682_priv, in rt5682_jd_check_handler() local
62 if (snd_soc_component_read(rt5682->component, RT5682_AJD1_CTRL) in rt5682_jd_check_handler()
65 rt5682->jack_type = rt5682_headset_detect(rt5682->component, 0); in rt5682_jd_check_handler()
67 snd_soc_jack_report(rt5682->hs_jack, rt5682->jack_type, in rt5682_jd_check_handler()
72 schedule_delayed_work(&rt5682->jd_check_work, 500); in rt5682_jd_check_handler()
[all …]
Drt5682-sdw.c3 // rt5682-sdw.c -- RT5682 ALSA SoC audio component driver
32 #include "rt5682.h"
43 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_read() local
46 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 0); in rt5682_sdw_read()
47 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_read()
48 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_L, (reg & 0xff)); in rt5682_sdw_read()
49 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_H, &data_h); in rt5682_sdw_read()
50 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_L, &data_l); in rt5682_sdw_read()
62 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_write() local
64 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 1); in rt5682_sdw_write()
[all …]
Drt5682.c3 // rt5682.c -- RT5682 ALSA SoC audio component driver
29 #include <sound/rt5682.h>
32 #include "rt5682.h"
50 void rt5682_apply_patch_list(struct rt5682_priv *rt5682, struct device *dev) in rt5682_apply_patch_list() argument
54 ret = regmap_multi_reg_write(rt5682->regmap, patch_list, in rt5682_apply_patch_list()
809 void rt5682_reset(struct rt5682_priv *rt5682) in rt5682_reset() argument
811 regmap_write(rt5682->regmap, RT5682_RESET, 0); in rt5682_reset()
812 if (!rt5682->is_sdw) in rt5682_reset()
813 regmap_write(rt5682->regmap, RT5682_I2C_MODE, 1); in rt5682_reset()
823 * The ASRC function is for asynchronous MCLK and LRCK. Also, since RT5682 can
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dsof_sdw_rt5682.c5 * sof_sdw_rt5682 - Helpers to handle RT5682 from generic machine driver
27 { "Headphone", NULL, "rt5682 HPOL" },
28 { "Headphone", NULL, "rt5682 HPOR" },
29 { "rt5682 IN1P", NULL, "Headset Mic" },
58 "%s hs:rt5682", in rt5682_rtd_init()
66 dev_err(card->dev, "rt5682 control addition failed: %d\n", ret); in rt5682_rtd_init()
73 dev_err(card->dev, "rt5682 widgets addition failed: %d\n", ret); in rt5682_rtd_init()
81 dev_err(card->dev, "rt5682 map addition failed: %d\n", ret); in rt5682_rtd_init()
/kernel/linux/linux-6.6/sound/soc/intel/boards/
Dsof_sdw_rt5682.c5 * sof_sdw_rt5682 - Helpers to handle RT5682 from generic machine driver
27 { "Headphone", NULL, "rt5682 HPOL" },
28 { "Headphone", NULL, "rt5682 HPOR" },
29 { "rt5682 IN1P", NULL, "Headset Mic" },
58 "%s hs:rt5682", in rt5682_rtd_init()
66 dev_err(card->dev, "rt5682 control addition failed: %d\n", ret); in rt5682_rtd_init()
73 dev_err(card->dev, "rt5682 widgets addition failed: %d\n", ret); in rt5682_rtd_init()
81 dev_err(card->dev, "rt5682 map addition failed: %d\n", ret); in rt5682_rtd_init()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Drt5682.txt1 RT5682 audio CODEC
7 - compatible : "realtek,rt5682" or "realtek,rt5682i"
47 Pins on the device (for linking into audio routes) for RT5682:
57 rt5682 {
70 clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk";
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Drt5682.txt1 RT5682 audio CODEC
7 - compatible : "realtek,rt5682" or "realtek,rt5682i"
66 Pins on the device (for linking into audio routes) for RT5682:
76 rt5682 {
89 clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk";
Dmt8192-mt6359-rt1015-rt5682.yaml4 $id: http://devicetree.org/schemas/sound/mt8192-mt6359-rt1015-rt5682.yaml#
7 title: Mediatek MT8192 with MT6359, RT1015 and RT5682 ASoC sound card driver
75 sound-dai = <&rt5682>;
/kernel/linux/linux-5.10/sound/soc/amd/
Dacp3x-rt5682-max9836.c23 #include "../codecs/rt5682.h"
37 RT5682 = 0, enumerator
51 /* set rt5682 dai fmt */ in acp3x_5682_init()
57 "Failed to set rt5682 dai fmt: %d\n", ret); in acp3x_5682_init()
65 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init()
74 "Failed to set rt5682 SYSCLK: %d\n", ret); in acp3x_5682_init()
82 "Failed to set rt5682 tdm bclk ratio: %d\n", ret); in acp3x_5682_init()
86 rt5682_dai_wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp3x_5682_init()
87 rt5682_dai_bclk = clk_get(component->dev, "rt5682-dai-bclk"); in acp3x_5682_init()
118 /* RT5682 will support only 48K output with 48M mclk */ in rt5682_clk_enable()
[all …]
DMakefile5 snd-soc-acp-rt5682-mach-objs := acp3x-rt5682-max9836.o
11 obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o
/kernel/linux/linux-6.6/sound/soc/amd/
Dacp3x-rt5682-max9836.c23 #include "../codecs/rt5682.h"
48 RT5682 = 0, enumerator
62 /* set rt5682 dai fmt */ 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()
85 "Failed to set rt5682 SYSCLK: %d\n", ret); in acp3x_5682_init()
93 "Failed to set rt5682 tdm bclk ratio: %d\n", ret); in acp3x_5682_init()
97 rt5682_dai_wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp3x_5682_init()
98 rt5682_dai_bclk = clk_get(component->dev, "rt5682-dai-bclk"); in acp3x_5682_init()
131 /* RT5682 will support only 48K output with 48M mclk */ in rt5682_clk_enable()
[all …]
Dacp-config.c107 .drv_name = "rt5682-rt1019",
112 .sof_tplg_filename = "sof-rn-rt5682-rt1019.tplg",
116 .drv_name = "rt5682-max",
121 .sof_tplg_filename = "sof-rn-rt5682-max98360.tplg",
130 .sof_tplg_filename = "sof-rn-rt5682-max98360.tplg",
139 .sof_tplg_filename = "sof-rn-rt5682-rt1019.tplg",
Dacp-da7219-max98357a.c3 // Machine driver for AMD ACP Audio engine using DA7219, RT5682 & MAX98357 codec
24 #include "../codecs/rt5682.h"
147 "Failed to set rt5682 SYSCLK: %d\n", ret); in cz_rt5682_init()
154 dev_err(codec_dai->dev, "can't set rt5682 PLL: %d\n", ret); in cz_rt5682_init()
158 rt5682_dai_wclk = devm_clk_get(component->dev, "rt5682-dai-wclk"); in cz_rt5682_init()
162 rt5682_dai_bclk = devm_clk_get(component->dev, "rt5682-dai-bclk"); in cz_rt5682_init()
199 * minimum of 64x the LRCLK sample rate." RT5682 is the only clk in rt5682_clk_enable()
528 SND_SOC_DAILINK_DEF(rt5682,
529 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1")));
596 .name = "amd-rt5682-play",
[all …]
DMakefile6 snd-soc-acp-rt5682-mach-objs := acp3x-rt5682-max9836.o
14 obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o
DKconfig8 tristate "AMD CZ support for DA7219, RT5682 and MAX9835"
17 This option enables machine driver for DA7219, RT5682 and MAX9835.
45 tristate "AMD RV support for RT5682"
55 This option enables machine driver for RT5682 and MAX9835.
/kernel/linux/linux-6.6/sound/soc/amd/acp/
Dacp-sof-mach.c28 .hs_codec_id = RT5682,
38 .hs_codec_id = RT5682,
136 .name = "rt5682-rt1019",
140 .name = "rt5682-max",
180 MODULE_ALIAS("platform:rt5682-rt1019");
181 MODULE_ALIAS("platform:rt5682-max");
/kernel/linux/linux-6.6/sound/soc/intel/common/
Dsoc-acpi-intel-jsl-match.c70 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
77 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
84 .sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg",
89 .sof_tplg_filename = "sof-jsl-rt5682.tplg",
Dsoc-acpi-intel-adl-match.c414 .name_prefix = "rt5682"
501 .sof_tplg_filename = "sof-adl-max98373-rt5682.tplg",
508 .sof_tplg_filename = "sof-adl-max98357a-rt5682.tplg",
515 .sof_tplg_filename = "sof-adl-max98360a-rt5682.tplg",
543 .sof_tplg_filename = "sof-adl-rt1019-rt5682.tplg",
569 .sof_tplg_filename = "sof-adl-max98390-rt5682.tplg",
576 .sof_tplg_filename = "sof-adl-rt5682-ssp1-hdmi-ssp02.tplg",
581 .sof_tplg_filename = "sof-adl-rt5682.tplg",
701 .link_mask = 0x5, /* rt5682 on link0 & 2xmax98373 on link 2 */
704 .sof_tplg_filename = "sof-adl-sdw-max98373-rt5682.tplg",
/kernel/linux/linux-5.10/sound/soc/intel/common/
Dsoc-acpi-intel-tgl-match.c145 .name_prefix = "rt5682"
328 .sof_tplg_filename = "sof-tgl-max98357a-rt5682.tplg",
336 .sof_tplg_filename = "sof-tgl-max98373-rt5682.tplg",
385 .link_mask = 0x3, /* rt5682 on link0 & 2xmax98373 on link 1 */
389 .sof_tplg_filename = "sof-tgl-sdw-max98373-rt5682.tplg",
392 .link_mask = 0x1, /* this will only enable rt5682 for now */
396 .sof_tplg_filename = "sof-tgl-rt5682.tplg",
/kernel/linux/linux-6.6/sound/soc/intel/avs/boards/
DMakefile17 snd-soc-avs-rt5682-objs := rt5682.o
34 obj-$(CONFIG_SND_SOC_INTEL_AVS_MACH_RT5682) += snd-soc-avs-rt5682.o
/kernel/linux/linux-6.6/arch/arm64/boot/dts/mediatek/
Dmt8192-asurada-audio-rt1015p-rt5682.dtsi6 #include "mt8192-asurada-audio-rt5682.dtsi"
17 sound-dai = <&rt5682 0>;
/kernel/linux/linux-6.6/sound/soc/sof/
Dsof-pci-dev.c69 .driver_data = "sof-tgl-rt5682-ssp0-max98373-ssp2.tplg",
78 .driver_data = "sof-adl-rt5682-ssp0-max98373-ssp2.tplg",
86 .driver_data = "sof-adl-max98390-ssp2-rt5682-ssp0.tplg",
94 .driver_data = "sof-adl-max98360a-rt5682-2way.tplg",
102 .driver_data = "sof-adl-max98357a-rt5682-2way.tplg",
110 .driver_data = "sof-adl-max98357a-rt5682.tplg",

1234