/kernel/linux/linux-5.10/sound/soc/mediatek/common/ |
D | mtk-afe-fe-dai.c | 41 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_startup() local 44 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mtk_afe_fe_startup() 45 const struct snd_pcm_hardware *mtk_afe_hardware = afe->mtk_afe_hardware; in mtk_afe_fe_startup() 53 mtk_regmap_update_bits(afe->regmap, memif->data->agent_disable_reg, in mtk_afe_fe_startup() 71 dev_err(afe->dev, "hw_constraint_minmax failed\n"); in mtk_afe_fe_startup() 79 dev_err(afe->dev, "snd_pcm_hw_constraint_integer failed\n"); in mtk_afe_fe_startup() 83 int irq_id = mtk_dynamic_irq_acquire(afe); in mtk_afe_fe_startup() 85 if (irq_id != afe->irqs_size) { in mtk_afe_fe_startup() 89 dev_err(afe->dev, "%s() error: no more asys irq\n", in mtk_afe_fe_startup() 102 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_shutdown() local [all …]
|
D | mtk-afe-platform-driver.c | 16 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe) in mtk_afe_combine_sub_dai() argument 22 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai() 26 dev_info(afe->dev, "%s(), num of dai %zd\n", __func__, num_dai_drivers); in mtk_afe_combine_sub_dai() 29 afe->num_dai_drivers = num_dai_drivers; in mtk_afe_combine_sub_dai() 30 afe->dai_drivers = devm_kcalloc(afe->dev, in mtk_afe_combine_sub_dai() 34 if (!afe->dai_drivers) in mtk_afe_combine_sub_dai() 37 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai() 39 memcpy(&afe->dai_drivers[dai_idx], in mtk_afe_combine_sub_dai() 51 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_add_sub_dai_control() local 54 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_add_sub_dai_control() [all …]
|
D | mtk-afe-fe-dai.h | 32 int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe); 33 int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id); 37 int mtk_memif_set_enable(struct mtk_base_afe *afe, int id); 38 int mtk_memif_set_disable(struct mtk_base_afe *afe, int id); 39 int mtk_memif_set_addr(struct mtk_base_afe *afe, int id, 43 int mtk_memif_set_channel(struct mtk_base_afe *afe, 45 int mtk_memif_set_rate(struct mtk_base_afe *afe, 49 int mtk_memif_set_format(struct mtk_base_afe *afe, 51 int mtk_memif_set_pbuf_size(struct mtk_base_afe *afe,
|
/kernel/linux/linux-5.10/drivers/media/i2c/adv748x/ |
D | adv748x-afe.c | 55 static int adv748x_afe_status(struct adv748x_afe *afe, u32 *signal, in adv748x_afe_status() argument 58 struct adv748x_state *state = adv748x_afe_to_state(afe); in adv748x_afe_status() 112 static void adv748x_afe_fill_format(struct adv748x_afe *afe, in adv748x_afe_fill_format() argument 122 fmt->height = afe->curr_norm & V4L2_STD_525_60 ? 480 : 576; in adv748x_afe_fill_format() 157 static int adv748x_afe_s_input(struct adv748x_afe *afe, unsigned int input) in adv748x_afe_s_input() argument 159 struct adv748x_state *state = adv748x_afe_to_state(afe); in adv748x_afe_s_input() 167 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); in adv748x_afe_g_pixelaspect() local 169 if (afe->curr_norm & V4L2_STD_525_60) { in adv748x_afe_g_pixelaspect() 186 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); in adv748x_afe_g_std() local 188 *norm = afe->curr_norm; in adv748x_afe_g_std() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/health/ |
D | afe4403.c | 141 struct afe4403_data *afe = iio_priv(indio_dev); in afe440x_show_register() local 147 ret = regmap_field_read(afe->fields[afe440x_attr->field], ®_val); in afe440x_show_register() 165 struct afe4403_data *afe = iio_priv(indio_dev); in afe440x_store_register() local 180 ret = regmap_field_write(afe->fields[afe440x_attr->field], val); in afe440x_store_register() 217 static int afe4403_read(struct afe4403_data *afe, unsigned int reg, u32 *val) in afe4403_read() argument 224 ret = spi_write_then_read(afe->spi, tx, 4, NULL, 0); in afe4403_read() 228 ret = spi_write_then_read(afe->spi, ®, 1, rx, sizeof(rx)); in afe4403_read() 236 ret = spi_write_then_read(afe->spi, tx, 4, NULL, 0); in afe4403_read() 247 struct afe4403_data *afe = iio_priv(indio_dev); in afe4403_read_raw() local 256 ret = afe4403_read(afe, reg, val); in afe4403_read_raw() [all …]
|
D | afe4404.c | 172 struct afe4404_data *afe = iio_priv(indio_dev); in afe440x_show_register() local 178 ret = regmap_field_read(afe->fields[afe440x_attr->field], ®_val); in afe440x_show_register() 196 struct afe4404_data *afe = iio_priv(indio_dev); in afe440x_store_register() local 211 ret = regmap_field_write(afe->fields[afe440x_attr->field], val); in afe440x_store_register() 252 struct afe4404_data *afe = iio_priv(indio_dev); in afe4404_read_raw() local 262 ret = regmap_read(afe->regmap, value_reg, val); in afe4404_read_raw() 267 ret = regmap_field_read(afe->fields[offdac_field], val); in afe4404_read_raw() 276 ret = regmap_field_read(afe->fields[led_field], val); in afe4404_read_raw() 297 struct afe4404_data *afe = iio_priv(indio_dev); in afe4404_write_raw() local 305 return regmap_field_write(afe->fields[offdac_field], val); in afe4404_write_raw() [all …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt2701/ |
D | mt2701-afe-clock-ctrl.c | 25 int mt2701_init_clock(struct mtk_base_afe *afe) in mt2701_init_clock() argument 27 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_init_clock() 31 afe_priv->base_ck[i] = devm_clk_get(afe->dev, base_clks[i]); in mt2701_init_clock() 33 dev_err(afe->dev, "failed to get %s\n", base_clks[i]); in mt2701_init_clock() 45 i2s_path->sel_ck = devm_clk_get(afe->dev, name); in mt2701_init_clock() 47 dev_err(afe->dev, "failed to get %s\n", name); in mt2701_init_clock() 52 i2s_path->div_ck = devm_clk_get(afe->dev, name); in mt2701_init_clock() 54 dev_err(afe->dev, "failed to get %s\n", name); in mt2701_init_clock() 59 i2s_path->mclk_ck = devm_clk_get(afe->dev, name); in mt2701_init_clock() 61 dev_err(afe->dev, "failed to get %s\n", name); in mt2701_init_clock() [all …]
|
D | mt2701-afe-pcm.c | 84 static int mt2701_dai_num_to_i2s(struct mtk_base_afe *afe, int num) in mt2701_dai_num_to_i2s() argument 86 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_dai_num_to_i2s() 90 dev_err(afe->dev, "%s, num not available, num %d, val %d\n", in mt2701_dai_num_to_i2s() 111 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_afe_i2s_startup() local 112 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_startup() 113 int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id); in mt2701_afe_i2s_startup() 119 return mt2701_afe_enable_mclk(afe, mode ? 1 : i2s_num); in mt2701_afe_i2s_startup() 122 static int mt2701_afe_i2s_path_disable(struct mtk_base_afe *afe, in mt2701_afe_i2s_path_disable() argument 135 regmap_update_bits(afe->regmap, i2s_data->i2s_ctrl_reg, in mt2701_afe_i2s_path_disable() 138 mt2701_afe_disable_i2s(afe, i2s_path, stream_dir); in mt2701_afe_i2s_path_disable() [all …]
|
D | mt2701-afe-clock-ctrl.h | 16 int mt2701_init_clock(struct mtk_base_afe *afe); 17 int mt2701_afe_enable_clock(struct mtk_base_afe *afe); 18 int mt2701_afe_disable_clock(struct mtk_base_afe *afe); 20 int mt2701_afe_enable_i2s(struct mtk_base_afe *afe, 23 void mt2701_afe_disable_i2s(struct mtk_base_afe *afe, 26 int mt2701_afe_enable_mclk(struct mtk_base_afe *afe, int id); 27 void mt2701_afe_disable_mclk(struct mtk_base_afe *afe, int id); 29 int mt2701_enable_btmrg_clk(struct mtk_base_afe *afe); 30 void mt2701_disable_btmrg_clk(struct mtk_base_afe *afe); 32 int mt2701_mclk_configuration(struct mtk_base_afe *afe, int id);
|
D | Makefile | 3 snd-soc-mt2701-afe-objs := mt2701-afe-pcm.o mt2701-afe-clock-ctrl.o 4 obj-$(CONFIG_SND_SOC_MT2701) += snd-soc-mt2701-afe.o
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/ |
D | mt8183-dai-adda.c | 50 static unsigned int adda_dl_rate_transform(struct mtk_base_afe *afe, in adda_dl_rate_transform() argument 77 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 83 static unsigned int adda_ul_rate_transform(struct mtk_base_afe *afe, in adda_ul_rate_transform() argument 100 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform() 147 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event() local 148 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() 150 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_adda_ul_event() 158 regmap_update_bits(afe->regmap, AFE_ADDA_MTKAIF_RX_CFG0, in mtk_adda_ul_event() 162 regmap_update_bits(afe->regmap, AFE_ADDA_MTKAIF_RX_CFG0, in mtk_adda_ul_event() 164 regmap_update_bits(afe->regmap, AFE_ADDA_UL_SRC_CON0, in mtk_adda_ul_event() [all …]
|
D | mt8183-afe-clk.c | 92 int mt8183_init_clock(struct mtk_base_afe *afe) in mt8183_init_clock() argument 94 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_init_clock() 97 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt8183_init_clock() 103 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt8183_init_clock() 105 dev_err(afe->dev, "%s(), devm_clk_get %s fail, ret %ld\n", in mt8183_init_clock() 115 int mt8183_afe_enable_clock(struct mtk_base_afe *afe) in mt8183_afe_enable_clock() argument 117 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_afe_enable_clock() 122 dev_err(afe->dev, "%s(), clk_prepare_enable %s fail %d\n", in mt8183_afe_enable_clock() 129 dev_err(afe->dev, "%s(), clk_prepare_enable %s fail %d\n", in mt8183_afe_enable_clock() 137 dev_err(afe->dev, "%s(), clk_set_parent %s-%s fail %d\n", in mt8183_afe_enable_clock() [all …]
|
D | mt8183-dai-i2s.c | 80 static int get_i2s_id_by_name(struct mtk_base_afe *afe, in get_i2s_id_by_name() argument 97 static struct mtk_afe_i2s_priv *get_i2s_priv_by_name(struct mtk_base_afe *afe, in get_i2s_priv_by_name() argument 100 struct mt8183_afe_private *afe_priv = afe->platform_priv; in get_i2s_priv_by_name() 101 int dai_id = get_i2s_id_by_name(afe, name); in get_i2s_priv_by_name() 123 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8183_i2s_hd_get() local 126 i2s_priv = get_i2s_priv_by_name(afe, kcontrol->id.name); in mt8183_i2s_hd_get() 129 dev_warn(afe->dev, "%s(), i2s_priv == NULL", __func__); in mt8183_i2s_hd_get() 142 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8183_i2s_hd_set() local 152 dev_info(afe->dev, "%s(), kcontrol name %s, hd_en %d\n", in mt8183_i2s_hd_set() 155 i2s_priv = get_i2s_priv_by_name(afe, kcontrol->id.name); in mt8183_i2s_hd_set() [all …]
|
D | mt8183-afe-pcm.c | 148 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt8183_memif_fs() local 151 return mt8183_rate_transform(afe->dev, rate, id); in mt8183_memif_fs() 159 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt8183_irq_fs() local 161 return mt8183_general_rate_transform(afe->dev, rate); in mt8183_irq_fs() 929 struct mtk_base_afe *afe = dev; in mt8183_afe_irq_handler() local 939 regmap_read(afe->regmap, AFE_IRQ_MCU_EN, &mcu_en); in mt8183_afe_irq_handler() 941 ret = regmap_read(afe->regmap, AFE_IRQ_MCU_STATUS, &status); in mt8183_afe_irq_handler() 946 dev_err(afe->dev, "%s(), irq status err, ret %d, status 0x%x, mcu_en 0x%x\n", in mt8183_afe_irq_handler() 954 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt8183_afe_irq_handler() 962 irq = &afe->irqs[memif->irq_usage]; in mt8183_afe_irq_handler() [all …]
|
D | mt8183-afe-clk.h | 22 int mt8183_init_clock(struct mtk_base_afe *afe); 23 int mt8183_afe_enable_clock(struct mtk_base_afe *afe); 24 int mt8183_afe_disable_clock(struct mtk_base_afe *afe); 26 int mt8183_apll1_enable(struct mtk_base_afe *afe); 27 void mt8183_apll1_disable(struct mtk_base_afe *afe); 29 int mt8183_apll2_enable(struct mtk_base_afe *afe); 30 void mt8183_apll2_disable(struct mtk_base_afe *afe); 32 int mt8183_get_apll_rate(struct mtk_base_afe *afe, int apll); 33 int mt8183_get_apll_by_rate(struct mtk_base_afe *afe, int rate); 34 int mt8183_get_apll_by_name(struct mtk_base_afe *afe, const char *name); [all …]
|
D | mt8183-dai-tdm.c | 251 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_tdm_bck_en_event() local 252 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_bck_en_event() 260 mt8183_mck_enable(afe, tdm_priv->bck_id, tdm_priv->bck_rate); in mtk_tdm_bck_en_event() 263 mt8183_mck_disable(afe, tdm_priv->bck_id); in mtk_tdm_bck_en_event() 277 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_tdm_mck_en_event() local 278 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_mck_en_event() 286 mt8183_mck_enable(afe, tdm_priv->mclk_id, tdm_priv->mclk_rate); in mtk_tdm_mck_en_event() 290 mt8183_mck_disable(afe, tdm_priv->mclk_id); in mtk_tdm_mck_en_event() 335 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_tdm_apll_connect() local 336 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_apll_connect() [all …]
|
D | mt8183-afe-common.h | 103 int mt8183_dai_adda_register(struct mtk_base_afe *afe); 104 int mt8183_dai_pcm_register(struct mtk_base_afe *afe); 105 int mt8183_dai_i2s_register(struct mtk_base_afe *afe); 106 int mt8183_dai_tdm_register(struct mtk_base_afe *afe); 107 int mt8183_dai_hostless_register(struct mtk_base_afe *afe);
|
D | mt8183-dai-pcm.c | 185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_hw_params() local 187 unsigned int rate_reg = mt8183_rate_transform(afe->dev, rate, dai->id); in mtk_dai_pcm_hw_params() 190 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate %d, rate_reg %d, widget active p %d, c %d\n", in mtk_dai_pcm_hw_params() 216 regmap_update_bits(afe->regmap, PCM_INTF_CON1, in mtk_dai_pcm_hw_params() 228 regmap_update_bits(afe->regmap, PCM2_INTF_CON, in mtk_dai_pcm_hw_params() 232 dev_warn(afe->dev, "%s(), id %d not support\n", in mtk_dai_pcm_hw_params() 299 int mt8183_dai_pcm_register(struct mtk_base_afe *afe) in mt8183_dai_pcm_register() argument 303 dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL); in mt8183_dai_pcm_register() 307 list_add(&dai->list, &afe->sub_dais); in mt8183_dai_pcm_register()
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8173/ |
D | mt8173-afe-pcm.c | 196 static int mt8173_afe_set_i2s(struct mtk_base_afe *afe, unsigned int rate) in mt8173_afe_set_i2s() argument 205 regmap_update_bits(afe->regmap, AFE_ADDA_TOP_CON0, 0x1, 0x1); in mt8173_afe_set_i2s() 206 regmap_update_bits(afe->regmap, AFE_ADDA2_TOP_CON0, 0x1, 0x1); in mt8173_afe_set_i2s() 213 regmap_update_bits(afe->regmap, AFE_I2S_CON2, ~AFE_I2S_CON2_EN, val); in mt8173_afe_set_i2s() 220 regmap_update_bits(afe->regmap, AFE_I2S_CON1, ~AFE_I2S_CON1_EN, val); in mt8173_afe_set_i2s() 224 static void mt8173_afe_set_i2s_enable(struct mtk_base_afe *afe, bool enable) in mt8173_afe_set_i2s_enable() argument 228 regmap_read(afe->regmap, AFE_I2S_CON2, &val); in mt8173_afe_set_i2s_enable() 233 regmap_update_bits(afe->regmap, AFE_I2S_CON2, 0x1, enable); in mt8173_afe_set_i2s_enable() 236 regmap_update_bits(afe->regmap, AFE_I2S_CON1, 0x1, enable); in mt8173_afe_set_i2s_enable() 239 static int mt8173_afe_dais_enable_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_enable_clks() argument [all …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt6797/ |
D | mt6797-afe-pcm.c | 145 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt6797_memif_fs() local 148 return mt6797_rate_transform(afe->dev, rate, id); in mt6797_memif_fs() 156 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt6797_irq_fs() local 158 return mt6797_general_rate_transform(afe->dev, rate); in mt6797_irq_fs() 604 struct mtk_base_afe *afe = dev; in mt6797_afe_irq_handler() local 613 regmap_read(afe->regmap, AFE_IRQ_MCU_EN, &mcu_en); in mt6797_afe_irq_handler() 615 ret = regmap_read(afe->regmap, AFE_IRQ_MCU_STATUS, &status); in mt6797_afe_irq_handler() 617 dev_err(afe->dev, "%s(), irq status err, ret %d, status 0x%x, mcu_en 0x%x\n", in mt6797_afe_irq_handler() 628 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt6797_afe_irq_handler() 633 irq = &afe->irqs[memif->irq_usage]; in mt6797_afe_irq_handler() [all …]
|
D | mt6797-dai-adda.c | 38 static unsigned int adda_dl_rate_transform(struct mtk_base_afe *afe, in adda_dl_rate_transform() argument 65 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_dl_rate_transform() 71 static unsigned int adda_ul_rate_transform(struct mtk_base_afe *afe, in adda_ul_rate_transform() argument 88 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n", in adda_ul_rate_transform() 135 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event() local 137 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_adda_ul_event() 234 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params() local 237 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate %d\n", in mtk_dai_adda_hw_params() 245 regmap_write(afe->regmap, AFE_ADDA_PREDIS_CON0, 0); in mtk_dai_adda_hw_params() 246 regmap_write(afe->regmap, AFE_ADDA_PREDIS_CON1, 0); in mtk_dai_adda_hw_params() [all …]
|
D | mt6797-afe-clk.c | 34 int mt6797_init_clock(struct mtk_base_afe *afe) in mt6797_init_clock() argument 36 struct mt6797_afe_private *afe_priv = afe->platform_priv; in mt6797_init_clock() 39 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt6797_init_clock() 45 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt6797_init_clock() 47 dev_err(afe->dev, "%s(), devm_clk_get %s fail, ret %ld\n", in mt6797_init_clock() 57 int mt6797_afe_enable_clock(struct mtk_base_afe *afe) in mt6797_afe_enable_clock() argument 59 struct mt6797_afe_private *afe_priv = afe->platform_priv; in mt6797_afe_enable_clock() 64 dev_err(afe->dev, "%s(), clk_prepare_enable %s fail %d\n", in mt6797_afe_enable_clock() 71 dev_err(afe->dev, "%s(), clk_prepare_enable %s fail %d\n", in mt6797_afe_enable_clock() 78 dev_err(afe->dev, "%s(), clk_prepare_enable %s fail %d\n", in mt6797_afe_enable_clock() [all …]
|
D | mt6797-dai-pcm.c | 185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_hw_params() local 187 unsigned int rate_reg = mt6797_rate_transform(afe->dev, rate, dai->id); in mtk_dai_pcm_hw_params() 190 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate %d, rate_reg %d, widget active p %d, c %d\n", in mtk_dai_pcm_hw_params() 216 regmap_update_bits(afe->regmap, PCM_INTF_CON1, in mtk_dai_pcm_hw_params() 228 regmap_update_bits(afe->regmap, PCM2_INTF_CON, in mtk_dai_pcm_hw_params() 232 dev_warn(afe->dev, "%s(), id %d not support\n", in mtk_dai_pcm_hw_params() 299 int mt6797_dai_pcm_register(struct mtk_base_afe *afe) in mt6797_dai_pcm_register() argument 303 dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL); in mt6797_dai_pcm_register() 307 list_add(&dai->list, &afe->sub_dais); in mt6797_dai_pcm_register()
|
D | Makefile | 4 snd-soc-mt6797-afe-objs := \ 5 mt6797-afe-pcm.o \ 6 mt6797-afe-clk.o \ 11 obj-$(CONFIG_SND_SOC_MT6797) += snd-soc-mt6797-afe.o
|
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/ |
D | q6afe.c | 547 struct q6afe *afe; member 834 struct q6afe *afe; in q6afe_port_free() local 838 afe = port->afe; in q6afe_port_free() 839 spin_lock_irqsave(&afe->port_list_lock, flags); in q6afe_port_free() 841 spin_unlock_irqrestore(&afe->port_list_lock, flags); in q6afe_port_free() 846 static struct q6afe_port *q6afe_find_port(struct q6afe *afe, int token) in q6afe_find_port() argument 852 spin_lock_irqsave(&afe->port_list_lock, flags); in q6afe_find_port() 853 list_for_each_entry(p, &afe->port_list, node) in q6afe_find_port() 860 spin_unlock_irqrestore(&afe->port_list_lock, flags); in q6afe_find_port() 866 struct q6afe *afe = dev_get_drvdata(&adev->dev); in q6afe_callback() local [all …]
|