Lines Matching +full:codec +full:- +full:reset

1 // SPDX-License-Identifier: GPL-2.0+
18 /* RT5677 has 256 8-bit register addresses, and 16-bit register data */
49 * rt5677_i2c_read() - Read a 16-bit register
53 * @returns data read or -ve on error
60 ret = dm_i2c_read(priv->dev, reg, buf, sizeof(u16)); in rt5677_i2c_read()
67 * rt5677_i2c_write() - Write a 16-bit register
72 * @returns 0 if OK, -ve on error
81 return dm_i2c_write(priv->dev, reg, buf, sizeof(u16)); in rt5677_i2c_write()
85 * rt5677_bic_or() - Set and clear bits of a codec register
91 * @returns 0 if OK, -ve on error
116 * rt5677_reg_init() - Initialise codec regs w/static/base values
119 * @returns 0 if OK, -ve on error
140 /* Show all 16-bit codec regs */ in debug_dump_5677_regs()
153 /* Show all 16-bit 'private' codec regs */ in debug_dump_5677_regs()
184 return -EINVAL; in rt5677_hw_params()
191 * rt5677_set_fmt() - set rt5677 I2S format
194 * @returns 0 if OK, -ve on error
203 * CBS_CFS (Codec Bit Slave/Codec Frame Slave) in rt5677_set_fmt()
229 * rt5677_reset() - reset the audio codec
232 * @returns 0 if OK, -ve on error
238 /* Reset the codec registers to their defaults */ in rt5677_reset()
241 log_err("Error resetting codec\n"); in rt5677_reset()
249 * Initialise rt5677 codec device
252 * @returns 0 if OK, -ve on error
262 log_debug("reg 00h, Software Reset & Status = 0x%04x\n", ret); in rt5677_device_init()
264 /* Reset the codec/regs */ in rt5677_device_init()
293 /* Initialise codec regs w/static/base values, same as Linux driver */ in rt5677_set_params()
313 priv->dev = dev; in rt5677_probe()