Home
last modified time | relevance | path

Searched refs:aic26 (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/sound/soc/codecs/
Dtlv320aic26.c31 struct aic26 { struct
69 struct aic26 *aic26 = snd_soc_component_get_drvdata(component); in aic26_hw_params() local
73 dev_dbg(&aic26->spi->dev, "aic26_hw_params(substream=%p, params=%p)\n", in aic26_hw_params()
75 dev_dbg(&aic26->spi->dev, "rate=%i width=%d\n", params_rate(params), in aic26_hw_params()
89 dev_dbg(&aic26->spi->dev, "bad rate\n"); return -EINVAL; in aic26_hw_params()
99 dev_dbg(&aic26->spi->dev, "bad format\n"); return -EINVAL; in aic26_hw_params()
109 jval = fsref / (aic26->mclk / 2048); in aic26_hw_params()
111 dval = fsref - (jval * (aic26->mclk / 2048)); in aic26_hw_params()
112 dval = (10000 * dval) / (aic26->mclk / 2048); in aic26_hw_params()
113 dev_dbg(&aic26->spi->dev, "Setting PLLM to %d.%04d\n", jval, dval); in aic26_hw_params()
[all …]