Lines Matching +full:codec +full:- +full:reset
1 // SPDX-License-Identifier: GPL-2.0+
3 * max98095.c -- MAX98095 ALSA SoC Audio driver
7 * Modified for U-Boot by R. Chandrasekar (rcsekar@samsung.com)
26 * codec mclk clock divider coefficients based on sampling rate
45 return -EINVAL; in rate_value()
88 return -EINVAL; in max98095_hw_params()
94 return -EINVAL; in max98095_hw_params()
96 priv->rate = rate; in max98095_hw_params()
111 return -EIO; in max98095_hw_params()
130 if (freq == priv->sysclk) in max98095_set_sysclk()
146 return -EINVAL; in max98095_set_sysclk()
152 return -EIO; in max98095_set_sysclk()
154 priv->sysclk = freq; in max98095_set_sysclk()
162 * @param fmt i2S format - supports a subset of the options defined
177 if (fmt == priv->fmt) in max98095_set_fmt()
180 priv->fmt = fmt; in max98095_set_fmt()
208 return -EINVAL; in max98095_set_fmt()
219 return -EINVAL; in max98095_set_fmt()
236 return -EINVAL; in max98095_set_fmt()
247 return -EIO; in max98095_set_fmt()
254 * resets the audio codec
264 * Gracefully reset the DSP core and the codec hardware in a proper in max98095_reset()
269 debug("%s: Failed to reset DSP: %d\n", __func__, ret); in max98095_reset()
275 debug("%s: Failed to reset codec: %d\n", __func__, ret); in max98095_reset()
280 * Reset to hardware default for registers, as there is not a soft in max98095_reset()
281 * reset hardware control register. in max98095_reset()
286 debug("%s: Failed to reset: %d\n", __func__, ret); in max98095_reset()
295 * Intialise max98095 codec device
305 /* reset the codec, the DSP core, and disable all interrupts */ in max98095_device_init()
308 debug("Reset\n"); in max98095_device_init()
313 priv->sysclk = -1U; in max98095_device_init()
314 priv->rate = -1U; in max98095_device_init()
315 priv->fmt = -1U; in max98095_device_init()
323 debug("%s: Hardware revision: %c\n", __func__, (id - 0x40) + 'A'); in max98095_device_init()
358 /* take the codec out of the shut down */ in max98095_setup_interface()
387 return -EIO; in max98095_setup_interface()
407 debug("%s: max98095 codec set sys clock failed\n", __func__); in max98095_do_init()
439 priv->dev = dev; in max98095_probe()
442 debug("%s: max98095 codec chip init failed\n", __func__); in max98095_probe()