/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 …]
|
/linux/sound/soc/intel/boards/ |
H A D | sof_rt5682.c | 5 * Intel SOF Machine Driver with Realtek rt5682 Codec 20 #include <sound/rt5682.h> 23 #include "../../codecs/rt5682.h" 149 if (ctx->rt5682.mclk_en) { in sof_rt5682_codec_init() 190 if (ctx->rt5682.is_legacy_cpu) { in sof_rt5682_codec_init() 201 ret = clk_prepare_enable(ctx->rt5682.mclk); in sof_rt5682_codec_init() 203 clk_disable_unprepare(ctx->rt5682.mclk); in sof_rt5682_codec_init() 205 ret = clk_set_rate(ctx->rt5682.mclk, 19200000); in sof_rt5682_codec_init() 262 if (ctx->rt5682.mclk_en) { in sof_rt5682_hw_params() 263 if (ctx->rt5682.is_legacy_cpu) { in sof_rt5682_hw_params() [all …]
|
H A D | sof_board_helpers.h | 99 * sof_rt5682_private: private data for rt5682 machine driver 131 * @rt5682: private data for rt5682 machine driver 163 struct sof_rt5682_private rt5682; member
|
H A D | Kconfig | 292 tristate "GLK with RT5682 and MAX98357A in I2S Mode" 296 with RT5682 + MAX98357A I2S audio codec. This option is deprecated 323 tristate "SOF with rt5650/rt5682 codec in I2S Mode" 345 with rt5650 or rt5682 codec. 435 tristate "CML with RT1011 and RT5682 in I2S Mode" 439 RT1011 + RT5682 I2S codec. This option is deprecated and please used
|
/linux/sound/soc/sdw_utils/ |
H A D | soc_sdw_rt5682.c | 7 * soc_sdw_rt5682 - Helpers to handle RT5682 from generic machine driver 24 { "Headphone", NULL, "rt5682 HPOL" }, 25 { "Headphone", NULL, "rt5682 HPOR" }, 26 { "rt5682 IN1P", NULL, "Headset Mic" }, 50 "%s hs:rt5682", in asoc_sdw_rt5682_rtd_init() 59 dev_err(card->dev, "rt5682 map addition failed: %d\n", ret); in asoc_sdw_rt5682_rtd_init()
|
/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 181 sound-dai = <&rt5682 0>; 190 sound-dai = <&rt5682 0>;
|
/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-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 | acp-config.c | 223 .drv_name = "rt5682-rt1019", 228 .sof_tplg_filename = "sof-rn-rt5682-rt1019.tplg", 232 .drv_name = "rt5682-max", 237 .sof_tplg_filename = "sof-rn-rt5682-max98360.tplg", 246 .sof_tplg_filename = "sof-rn-rt5682-max98360.tplg", 255 .sof_tplg_filename = "sof-rn-rt5682-rt1019.tplg",
|
H A D | Makefile | 6 snd-soc-acp-rt5682-mach-y := 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.
|
/linux/sound/soc/intel/common/ |
H A D | soc-acpi-intel-jsl-match.c | 72 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 79 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 86 .sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg", 91 .sof_tplg_filename = "sof-jsl-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-ssp-common.c | 44 CODEC_MAP_ENTRY("RT5682", "rt5682", RT5682_ACPI_HID, CODEC_RT5682), 45 CODEC_MAP_ENTRY("RT5682S", "rt5682", RT5682S_ACPI_HID, CODEC_RT5682S),
|
/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",
|
/linux/sound/soc/amd/acp/ |
H A D | acp-sof-mach.c | 28 .hs_codec_id = RT5682, 37 .hs_codec_id = RT5682, 132 .name = "rt5682-rt1019", 136 .name = "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() 304 dev_err(rtd->dev, "Failed to set rt5682 tdm bclk ratio: %d\n", ret); in acp_card_rt5682_hw_params() 371 drvdata->wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp_card_rt5682s_init() [all …]
|
/linux/sound/soc/intel/avs/boards/ |
H A D | Makefile | 18 snd-soc-avs-rt5682-y := rt5682.o 36 obj-$(CONFIG_SND_SOC_INTEL_AVS_MACH_RT5682) += snd-soc-avs-rt5682.o
|
/linux/include/sound/ |
H A D | rt5682.h | 3 * linux/sound/rt5682.h -- Platform data for RT5682
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7180-trogdor-rt5682i-sku.dtsi | 20 * is set in rt5682.c. 37 model = "sc7180-rt5682-max98357a-1mic";
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8192-asurada-hayato-r5-sku2.dts | 44 &rt5682 { 56 sound-dai = <&rt5682 0>;
|
H A D | mt8192-asurada-spherion-r4.dts | 60 &rt5682 { 72 sound-dai = <&rt5682 0>;
|