Lines Matching refs:icdc

195 	struct jz_icdc *icdc = snd_soc_component_get_drvdata(codec);  in jz4725b_out_stage_enable()  local
196 struct regmap *map = icdc->regmap; in jz4725b_out_stage_enable()
301 struct jz_icdc *icdc = snd_soc_component_get_drvdata(component); in jz4725b_codec_set_bias_level() local
302 struct regmap *map = icdc->regmap; in jz4725b_codec_set_bias_level()
332 struct jz_icdc *icdc = snd_soc_component_get_drvdata(component); in jz4725b_codec_dev_probe() local
333 struct regmap *map = icdc->regmap; in jz4725b_codec_dev_probe()
335 clk_prepare_enable(icdc->clk); in jz4725b_codec_dev_probe()
350 struct jz_icdc *icdc = snd_soc_component_get_drvdata(component); in jz4725b_codec_dev_remove() local
352 clk_disable_unprepare(icdc->clk); in jz4725b_codec_dev_remove()
378 struct jz_icdc *icdc = snd_soc_component_get_drvdata(dai->component); in jz4725b_codec_hw_params() local
407 regmap_update_bits(icdc->regmap, in jz4725b_codec_hw_params()
412 regmap_update_bits(icdc->regmap, in jz4725b_codec_hw_params()
417 regmap_update_bits(icdc->regmap, in jz4725b_codec_hw_params()
422 regmap_update_bits(icdc->regmap, in jz4725b_codec_hw_params()
467 static int jz4725b_codec_io_wait(struct jz_icdc *icdc) in jz4725b_codec_io_wait() argument
471 return readl_poll_timeout(icdc->base + ICDC_RGADW_OFFSET, reg, in jz4725b_codec_io_wait()
478 struct jz_icdc *icdc = context; in jz4725b_codec_reg_read() local
483 ret = jz4725b_codec_io_wait(icdc); in jz4725b_codec_reg_read()
487 tmp = readl(icdc->base + ICDC_RGADW_OFFSET); in jz4725b_codec_reg_read()
490 writel(tmp, icdc->base + ICDC_RGADW_OFFSET); in jz4725b_codec_reg_read()
494 *val = readl(icdc->base + ICDC_RGDATA_OFFSET) & in jz4725b_codec_reg_read()
503 struct jz_icdc *icdc = context; in jz4725b_codec_reg_write() local
506 ret = jz4725b_codec_io_wait(icdc); in jz4725b_codec_reg_write()
511 icdc->base + ICDC_RGADW_OFFSET); in jz4725b_codec_reg_write()
513 ret = jz4725b_codec_io_wait(icdc); in jz4725b_codec_reg_write()
547 struct jz_icdc *icdc; in jz4725b_codec_probe() local
550 icdc = devm_kzalloc(dev, sizeof(*icdc), GFP_KERNEL); in jz4725b_codec_probe()
551 if (!icdc) in jz4725b_codec_probe()
554 icdc->base = devm_platform_ioremap_resource(pdev, 0); in jz4725b_codec_probe()
555 if (IS_ERR(icdc->base)) in jz4725b_codec_probe()
556 return PTR_ERR(icdc->base); in jz4725b_codec_probe()
558 icdc->regmap = devm_regmap_init(dev, NULL, icdc, in jz4725b_codec_probe()
560 if (IS_ERR(icdc->regmap)) in jz4725b_codec_probe()
561 return PTR_ERR(icdc->regmap); in jz4725b_codec_probe()
563 icdc->clk = devm_clk_get(&pdev->dev, "aic"); in jz4725b_codec_probe()
564 if (IS_ERR(icdc->clk)) in jz4725b_codec_probe()
565 return PTR_ERR(icdc->clk); in jz4725b_codec_probe()
567 platform_set_drvdata(pdev, icdc); in jz4725b_codec_probe()