pdm 93 drivers/clk/meson/axg-audio.c static AUD_PCLK_GATE(pdm, 1); pdm 982 drivers/pinctrl/meson/pinctrl-meson-axg.c FUNCTION(pdm), pdm 1283 drivers/pinctrl/meson/pinctrl-meson-g12a.c FUNCTION(pdm), pdm 207 drivers/pinctrl/nomadik/pinctrl-ab8505.c AB8505_FUNC_GROUPS(pdm, "pdmclk_a_1", "pdmdata_b_1"); pdm 229 drivers/pinctrl/nomadik/pinctrl-ab8505.c FUNCTION(pdm), pdm 496 drivers/pinctrl/qcom/pinctrl-ipq8064.c FUNCTION(pdm), pdm 543 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(3, pcie1_rst, pcie1_prsnt, pdm, NA, NA, NA, NA, NA, NA, NA), pdm 556 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(16, audio_pcm, nss_spi, pdm, NA, NA, NA, NA, NA, NA, NA), pdm 557 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(17, audio_pcm, nss_spi, pdm, NA, NA, NA, NA, NA, NA, NA), pdm 562 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(22, gsbi2, pdm, NA, NA, NA, NA, NA, NA, NA, NA), pdm 570 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(30, mi2s, rgmii2, gsbi6, pdm, NA, NA, NA, NA, NA, NA), pdm 571 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(31, mi2s, rgmii2, pdm, NA, NA, NA, NA, NA, NA, NA), pdm 574 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(34, nand, pdm, NA, NA, NA, NA, NA, NA, NA, NA), pdm 575 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(35, nand, pdm, NA, NA, NA, NA, NA, NA, NA, NA), pdm 592 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(52, gsbi1, rgmii2, pdm, NA, NA, NA, NA, NA, NA, NA), pdm 595 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(55, tsif1, mi2s, gsbi6, pdm, nss_spi, NA, NA, NA, NA, NA), pdm 596 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(56, tsif1, mi2s, gsbi6, pdm, nss_spi, NA, NA, NA, NA, NA), pdm 598 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(58, tsif1, mi2s, gsbi6, pdm, nss_spi, NA, NA, NA, NA, NA), pdm 599 drivers/pinctrl/qcom/pinctrl-ipq8064.c PINGROUP(59, tsif2, rgmii2, pdm, NA, NA, NA, NA, NA, NA, NA), pdm 846 drivers/soundwire/cadence_master.c cdns->pdm.num_bd = config.pdm_bd; pdm 847 drivers/soundwire/cadence_master.c cdns->pdm.num_in = config.pdm_in; pdm 848 drivers/soundwire/cadence_master.c cdns->pdm.num_out = config.pdm_out; pdm 883 drivers/soundwire/cadence_master.c stream = &cdns->pdm; pdm 143 drivers/soundwire/cadence_master.h struct sdw_cdns_streams pdm; pdm 470 drivers/soundwire/intel.c intel_pdi_stream_ch_update(sdw, &sdw->cdns.pdm, false); pdm 646 drivers/soundwire/intel.c ret = sdw_cdns_alloc_stream(cdns, &cdns->pdm, port, ch, dir); pdm 696 drivers/soundwire/intel.c dma->nr_ports = sdw_cdns_get_stream(cdns, &cdns->pdm, ch, dir); pdm 900 drivers/soundwire/intel.c num_dai = cdns->pcm.num_pdi + cdns->pdm.num_pdi; pdm 927 drivers/soundwire/intel.c stream = &cdns->pdm; pdm 929 drivers/soundwire/intel.c ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pdm.num_in, pdm 934 drivers/soundwire/intel.c off += cdns->pdm.num_in; pdm 935 drivers/soundwire/intel.c ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pdm.num_out, pdm 940 drivers/soundwire/intel.c off += cdns->pdm.num_out; pdm 941 drivers/soundwire/intel.c ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pdm.num_bd, pdm 179 include/sound/sof/dai-intel.h struct sof_ipc_dai_dmic_pdm_ctrl pdm[0]; pdm 76 sound/soc/rockchip/rockchip_pdm.c static unsigned int get_pdm_clk(struct rk_pdm_dev *pdm, unsigned int sr, pdm 92 sound/soc/rockchip/rockchip_pdm.c rate = clk_round_rate(pdm->clk, clkref[i].clk); pdm 102 sound/soc/rockchip/rockchip_pdm.c clk = clk_round_rate(pdm->clk, PDM_SIGNOFF_CLK_RATE); pdm 129 sound/soc/rockchip/rockchip_pdm.c static void rockchip_pdm_rxctrl(struct rk_pdm_dev *pdm, int on) pdm 132 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_DMA_CTRL, pdm 134 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_SYSCONFIG, pdm 137 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_DMA_CTRL, pdm 139 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_SYSCONFIG, pdm 149 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = to_info(dai); pdm 161 sound/soc/rockchip/rockchip_pdm.c clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); pdm 165 sound/soc/rockchip/rockchip_pdm.c ret = clk_set_rate(pdm->clk, clk_src); pdm 169 sound/soc/rockchip/rockchip_pdm.c if (pdm->version == RK_PDM_RK3308) { pdm 177 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits_check(pdm->regmap, PDM_CTRL1, pdm 182 sound/soc/rockchip/rockchip_pdm.c reset_control_assert(pdm->reset); pdm 183 sound/soc/rockchip/rockchip_pdm.c reset_control_deassert(pdm->reset); pdm 184 sound/soc/rockchip/rockchip_pdm.c rockchip_pdm_rxctrl(pdm, 0); pdm 193 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_CLK_CTRL, pdm 198 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_CLK_CTRL, PDM_DS_RATIO_MSK, val); pdm 199 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_HPF_CTRL, pdm 201 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_HPF_CTRL, pdm 203 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_CLK_CTRL, PDM_CLK_EN, PDM_CLK_EN); pdm 204 sound/soc/rockchip/rockchip_pdm.c if (pdm->version != RK_PDM_RK3229) pdm 205 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_CTRL0, pdm 243 sound/soc/rockchip/rockchip_pdm.c dev_err(pdm->dev, "invalid channel: %d\n", pdm 248 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_CTRL0, pdm 252 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_DMA_CTRL, PDM_DMA_RDL_MSK, pdm 261 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = to_info(cpu_dai); pdm 277 sound/soc/rockchip/rockchip_pdm.c regmap_update_bits(pdm->regmap, PDM_CLK_CTRL, mask, val); pdm 286 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = to_info(dai); pdm 294 sound/soc/rockchip/rockchip_pdm.c rockchip_pdm_rxctrl(pdm, 1); pdm 300 sound/soc/rockchip/rockchip_pdm.c rockchip_pdm_rxctrl(pdm, 0); pdm 312 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = to_info(dai); pdm 314 sound/soc/rockchip/rockchip_pdm.c dai->capture_dma_data = &pdm->capture_dma_data; pdm 350 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = dev_get_drvdata(dev); pdm 352 sound/soc/rockchip/rockchip_pdm.c clk_disable_unprepare(pdm->clk); pdm 353 sound/soc/rockchip/rockchip_pdm.c clk_disable_unprepare(pdm->hclk); pdm 360 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = dev_get_drvdata(dev); pdm 363 sound/soc/rockchip/rockchip_pdm.c ret = clk_prepare_enable(pdm->clk); pdm 365 sound/soc/rockchip/rockchip_pdm.c dev_err(pdm->dev, "clock enable failed %d\n", ret); pdm 369 sound/soc/rockchip/rockchip_pdm.c ret = clk_prepare_enable(pdm->hclk); pdm 371 sound/soc/rockchip/rockchip_pdm.c dev_err(pdm->dev, "hclock enable failed %d\n", ret); pdm 479 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm; pdm 484 sound/soc/rockchip/rockchip_pdm.c pdm = devm_kzalloc(&pdev->dev, sizeof(*pdm), GFP_KERNEL); pdm 485 sound/soc/rockchip/rockchip_pdm.c if (!pdm) pdm 490 sound/soc/rockchip/rockchip_pdm.c pdm->version = (enum rk_pdm_version)match->data; pdm 492 sound/soc/rockchip/rockchip_pdm.c if (pdm->version == RK_PDM_RK3308) { pdm 493 sound/soc/rockchip/rockchip_pdm.c pdm->reset = devm_reset_control_get(&pdev->dev, "pdm-m"); pdm 494 sound/soc/rockchip/rockchip_pdm.c if (IS_ERR(pdm->reset)) pdm 495 sound/soc/rockchip/rockchip_pdm.c return PTR_ERR(pdm->reset); pdm 503 sound/soc/rockchip/rockchip_pdm.c pdm->regmap = devm_regmap_init_mmio(&pdev->dev, regs, pdm 505 sound/soc/rockchip/rockchip_pdm.c if (IS_ERR(pdm->regmap)) pdm 506 sound/soc/rockchip/rockchip_pdm.c return PTR_ERR(pdm->regmap); pdm 508 sound/soc/rockchip/rockchip_pdm.c pdm->capture_dma_data.addr = res->start + PDM_RXFIFO_DATA; pdm 509 sound/soc/rockchip/rockchip_pdm.c pdm->capture_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; pdm 510 sound/soc/rockchip/rockchip_pdm.c pdm->capture_dma_data.maxburst = PDM_DMA_BURST_SIZE; pdm 512 sound/soc/rockchip/rockchip_pdm.c pdm->dev = &pdev->dev; pdm 513 sound/soc/rockchip/rockchip_pdm.c dev_set_drvdata(&pdev->dev, pdm); pdm 515 sound/soc/rockchip/rockchip_pdm.c pdm->clk = devm_clk_get(&pdev->dev, "pdm_clk"); pdm 516 sound/soc/rockchip/rockchip_pdm.c if (IS_ERR(pdm->clk)) pdm 517 sound/soc/rockchip/rockchip_pdm.c return PTR_ERR(pdm->clk); pdm 519 sound/soc/rockchip/rockchip_pdm.c pdm->hclk = devm_clk_get(&pdev->dev, "pdm_hclk"); pdm 520 sound/soc/rockchip/rockchip_pdm.c if (IS_ERR(pdm->hclk)) pdm 521 sound/soc/rockchip/rockchip_pdm.c return PTR_ERR(pdm->hclk); pdm 523 sound/soc/rockchip/rockchip_pdm.c ret = clk_prepare_enable(pdm->hclk); pdm 543 sound/soc/rockchip/rockchip_pdm.c rockchip_pdm_rxctrl(pdm, 0); pdm 558 sound/soc/rockchip/rockchip_pdm.c clk_disable_unprepare(pdm->hclk); pdm 565 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = dev_get_drvdata(&pdev->dev); pdm 571 sound/soc/rockchip/rockchip_pdm.c clk_disable_unprepare(pdm->clk); pdm 572 sound/soc/rockchip/rockchip_pdm.c clk_disable_unprepare(pdm->hclk); pdm 580 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = dev_get_drvdata(dev); pdm 582 sound/soc/rockchip/rockchip_pdm.c regcache_mark_dirty(pdm->regmap); pdm 589 sound/soc/rockchip/rockchip_pdm.c struct rk_pdm_dev *pdm = dev_get_drvdata(dev); pdm 596 sound/soc/rockchip/rockchip_pdm.c ret = regcache_sync(pdm->regmap); pdm 2601 sound/soc/sof/topology.c ret = sof_parse_tokens(scomp, &ipc_config->dmic.pdm[0], dmic_pdm_tokens, pdm 2627 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].id, pdm 2628 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].enable_mic_a, pdm 2629 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].enable_mic_b); pdm 2631 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].id, pdm 2632 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].polarity_mic_a, pdm 2633 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].polarity_mic_b); pdm 2635 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].id, pdm 2636 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].clk_edge, pdm 2637 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].skew);