/openbmc/linux/sound/soc/codecs/ |
H A D | rt5682-i2c.c | 3 // 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 …]
|
H A D | rt5682-sdw.c | 3 // 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 …]
|
H A D | rt5682.c | 3 // 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 …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | sof_sdw_rt5682.c | 5 * 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()
|
H A D | Kconfig | 440 tristate "GLK with RT5682 and MAX98357A in I2S Mode" 452 with RT5682 + MAX98357A I2S audio codec. 478 tristate "SOF with rt5650/rt5682 codec in I2S Mode" 498 with rt5650 or rt5682 codec. 586 tristate "CML with RT1011 and RT5682 in I2S Mode" 597 RT1011 + RT5682 I2S codec.
|
H A D | cml_rt1011_rt5682.c | 5 * Intel Cometlake I2S Machine driver for RT1011 + RT5682 codec 20 #include <sound/rt5682.h> 23 #include "../../codecs/rt5682.h" 30 #define CML_RT5682_CODEC_DAI "rt5682-aif1" 528 /* Cometlake audio machine driver for RT1011 and RT5682 */ 602 MODULE_DESCRIPTION("Cometlake Audio Machine driver - RT1011 and RT5682 in I2S mode");
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | rt5682.txt | 1 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";
|
H A D | mt8192-mt6359-rt1015-rt5682.yaml | 4 $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>;
|
/openbmc/linux/sound/soc/amd/ |
H A D | acp3x-rt5682-max9836.c | 23 #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 …]
|
H A D | acp-config.c | 107 .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",
|
H A D | acp-da7219-max98357a.c | 3 // 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 …]
|
H A D | Makefile | 6 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
|
H A D | Kconfig | 8 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.
|
/openbmc/linux/sound/soc/amd/acp/ |
H A D | acp-sof-mach.c | 28 .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");
|
H A D | acp-mach-common.c | 24 #include "../../codecs/rt5682.h" 83 /* Declare RT5682 codec components */ 84 SND_SOC_DAILINK_DEF(rt5682, 85 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1"))); 115 /* Define card ops for RT5682 CODEC */ 126 if (drvdata->hs_codec_id != RT5682) in acp_card_rt5682_init() 129 drvdata->wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp_card_rt5682_init() 130 drvdata->bclk = clk_get(component->dev, "rt5682-dai-bclk"); in acp_card_rt5682_init() 288 dev_err(rtd->dev, "Failed to set rt5682 tdm bclk ratio: %d\n", ret); in acp_card_rt5682_hw_params() 355 drvdata->wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp_card_rt5682s_init() [all …]
|
/openbmc/linux/sound/soc/intel/common/ |
H A D | soc-acpi-intel-jsl-match.c | 70 .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",
|
H A D | soc-acpi-intel-adl-match.c | 414 .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",
|
H A D | soc-acpi-intel-mtl-match.c | 49 .sof_tplg_filename = "sof-mtl-max98357a-rt5682.tplg", 56 .sof_tplg_filename = "sof-mtl-max98360a-rt5682.tplg", 63 .sof_tplg_filename = "sof-mtl-rt1019-rt5682.tplg", 167 .name_prefix = "rt5682" 394 .sof_tplg_filename = "sof-mtl-sdw-rt5682-l2-max98373-l0.tplg",
|
H A D | soc-acpi-intel-tgl-match.c | 166 .name_prefix = "rt5682" 429 .sof_tplg_filename = "sof-tgl-max98357a-rt5682.tplg", 436 .sof_tplg_filename = "sof-tgl-max98373-rt5682.tplg", 443 .sof_tplg_filename = "sof-tgl-rt1011-rt5682.tplg", 546 .link_mask = 0x3, /* rt5682 on link0 & 2xmax98373 on link 1 */ 549 .sof_tplg_filename = "sof-tgl-sdw-max98373-rt5682.tplg",
|
H A D | soc-acpi-intel-cml-match.c | 48 .sof_tplg_filename = "sof-cml-rt1011-rt5682.tplg", 55 .sof_tplg_filename = "sof-cml-rt1011-rt5682.tplg", 62 .sof_tplg_filename = "sof-cml-rt5682-max98357a.tplg", 67 .sof_tplg_filename = "sof-cml-rt5682.tplg",
|
H A D | soc-acpi-intel-cnl-match.c | 56 .name_prefix = "rt5682" 74 .sof_tplg_filename = "sof-cnl-rt5682-sdw2.tplg"
|
/openbmc/linux/sound/soc/intel/avs/boards/ |
H A D | Makefile | 17 snd-soc-avs-rt5682-objs := rt5682.o 34 obj-$(CONFIG_SND_SOC_INTEL_AVS_MACH_RT5682) += snd-soc-avs-rt5682.o
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8192-asurada-audio-rt1015p-rt5682.dtsi | 6 #include "mt8192-asurada-audio-rt5682.dtsi" 17 sound-dai = <&rt5682 0>;
|
/openbmc/linux/sound/soc/sof/ |
H A D | sof-pci-dev.c | 69 .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",
|
/openbmc/linux/include/sound/ |
H A D | rt5682.h | 3 * linux/sound/rt5682.h -- Platform data for RT5682
|