Lines Matching refs:dd
122 struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); in atmel_classd_cpu_dai_startup() local
125 regmap_write(dd->regmap, CLASSD_THR, 0x0); in atmel_classd_cpu_dai_startup()
127 err = clk_prepare_enable(dd->pclk); in atmel_classd_cpu_dai_startup()
130 err = clk_prepare_enable(dd->gclk); in atmel_classd_cpu_dai_startup()
132 clk_disable_unprepare(dd->pclk); in atmel_classd_cpu_dai_startup()
145 struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); in atmel_classd_platform_configure_dma() local
148 dev_err(dd->dev, in atmel_classd_platform_configure_dma()
159 slave_config->dst_addr = dd->phy_base + CLASSD_THR; in atmel_classd_platform_configure_dma()
233 struct atmel_classd *dd = snd_soc_card_get_drvdata(card); in atmel_classd_component_probe() local
234 const struct atmel_classd_pdata *pdata = dd->pdata; in atmel_classd_component_probe()
286 struct atmel_classd *dd = snd_soc_card_get_drvdata(card); in atmel_classd_component_resume() local
288 return regcache_sync(dd->regmap); in atmel_classd_component_resume()
342 struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); in atmel_classd_cpu_dai_hw_params() local
365 clk_disable_unprepare(dd->gclk); in atmel_classd_cpu_dai_hw_params()
367 ret = clk_set_rate(dd->gclk, sample_rates[best].gclk_rate); in atmel_classd_cpu_dai_hw_params()
377 return clk_prepare_enable(dd->gclk); in atmel_classd_cpu_dai_hw_params()
385 struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); in atmel_classd_cpu_dai_shutdown() local
387 clk_disable_unprepare(dd->gclk); in atmel_classd_cpu_dai_shutdown()
468 struct atmel_classd *dd = snd_soc_card_get_drvdata(card); in atmel_classd_asoc_card_init() local
496 card->name = dd->pdata->card_name; in atmel_classd_asoc_card_init()
522 struct atmel_classd *dd; in atmel_classd_probe() local
536 dd = devm_kzalloc(dev, sizeof(*dd), GFP_KERNEL); in atmel_classd_probe()
537 if (!dd) in atmel_classd_probe()
540 dd->pdata = pdata; in atmel_classd_probe()
542 dd->irq = platform_get_irq(pdev, 0); in atmel_classd_probe()
543 if (dd->irq < 0) in atmel_classd_probe()
544 return dd->irq; in atmel_classd_probe()
546 dd->pclk = devm_clk_get(dev, "pclk"); in atmel_classd_probe()
547 if (IS_ERR(dd->pclk)) { in atmel_classd_probe()
548 ret = PTR_ERR(dd->pclk); in atmel_classd_probe()
553 dd->gclk = devm_clk_get(dev, "gclk"); in atmel_classd_probe()
554 if (IS_ERR(dd->gclk)) { in atmel_classd_probe()
555 ret = PTR_ERR(dd->gclk); in atmel_classd_probe()
564 dd->phy_base = res->start; in atmel_classd_probe()
565 dd->dev = dev; in atmel_classd_probe()
567 dd->regmap = devm_regmap_init_mmio(dev, io_base, in atmel_classd_probe()
569 if (IS_ERR(dd->regmap)) { in atmel_classd_probe()
570 ret = PTR_ERR(dd->regmap); in atmel_classd_probe()
598 snd_soc_card_set_drvdata(card, dd); in atmel_classd_probe()