Lines Matching refs:src4xxx
15 struct src4xxx { struct
157 struct src4xxx *src4xxx = snd_soc_component_get_drvdata(component); in src4xxx_set_dai_fmt() local
163 src4xxx->master[dai->id] = true; in src4xxx_set_dai_fmt()
167 src4xxx->master[dai->id] = false; in src4xxx_set_dai_fmt()
197 regmap_update_bits(src4xxx->regmap, SRC4XXX_BUS_FMT(dai->id), in src4xxx_set_dai_fmt()
207 struct src4xxx *src4xxx = snd_soc_component_get_drvdata(component); in src4xxx_set_mclk_hz() local
210 src4xxx->mclk_hz, freq); in src4xxx_set_mclk_hz()
211 src4xxx->mclk_hz = freq; in src4xxx_set_mclk_hz()
221 struct src4xxx *src4xxx = snd_soc_component_get_drvdata(component); in src4xxx_hw_params() local
236 if (src4xxx->master[dai->id]) { in src4xxx_hw_params()
237 mclk_div = src4xxx->mclk_hz/params_rate(params); in src4xxx_hw_params()
238 if (src4xxx->mclk_hz != mclk_div*params_rate(params)) { in src4xxx_hw_params()
241 src4xxx->mclk_hz, params_rate(params)); in src4xxx_hw_params()
252 params_rate(params), src4xxx->mclk_hz); in src4xxx_hw_params()
257 ret = regmap_update_bits(src4xxx->regmap, in src4xxx_hw_params()
269 switch (src4xxx->mclk_hz) { in src4xxx_hw_params()
293 ret = regmap_write(src4xxx->regmap, SRC4XXX_RCV_PLL_0F, pj); in src4xxx_hw_params()
298 ret = regmap_write(src4xxx->regmap, SRC4XXX_RCV_PLL_10, jd); in src4xxx_hw_params()
303 ret = regmap_write(src4xxx->regmap, SRC4XXX_RCV_PLL_11, d); in src4xxx_hw_params()
309 ret = regmap_update_bits(src4xxx->regmap, in src4xxx_hw_params()
320 return regmap_update_bits(src4xxx->regmap, reg, in src4xxx_hw_params()
418 struct src4xxx *src4xxx; in src4xxx_probe() local
424 src4xxx = devm_kzalloc(dev, sizeof(*src4xxx), GFP_KERNEL); in src4xxx_probe()
425 if (!src4xxx) in src4xxx_probe()
428 src4xxx->regmap = regmap; in src4xxx_probe()
429 src4xxx->dev = dev; in src4xxx_probe()
430 src4xxx->mclk_hz = 0; /* mclk has not been configured yet */ in src4xxx_probe()
431 dev_set_drvdata(dev, src4xxx); in src4xxx_probe()
442 ret = regmap_update_bits(src4xxx->regmap, SRC4XXX_PWR_RST_01, in src4xxx_probe()
448 ret = regmap_update_bits(src4xxx->regmap, SRC4XXX_RCV_CTL_0D, in src4xxx_probe()
455 ret = regmap_update_bits(src4xxx->regmap, SRC4XXX_RCV_CTL_0E, in src4xxx_probe()