Lines Matching refs:ret
56 status_t ret = kStatus_Success; in dac_pcm186x_set_gpio_val() local
61 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
65 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
68 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
72 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
77 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
81 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
84 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
88 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
93 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
97 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
100 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
104 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
109 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
113 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
116 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
120 if (ret != kStatus_Success) goto end; in dac_pcm186x_set_gpio_val()
124 ret = kStatus_InvalidArgument; in dac_pcm186x_set_gpio_val()
129 ret = PCM186x_ModifyReg(handle, in dac_pcm186x_set_gpio_val()
135 return ret; in dac_pcm186x_set_gpio_val()
150 status_t ret = kStatus_Success; in PCM186x_SetFormat() local
166 ret = kStatus_InvalidArgument; in PCM186x_SetFormat()
171 ret = PCM186x_ModifyReg(handle, in PCM186x_SetFormat()
175 if (ret != kStatus_Success) goto end; in PCM186x_SetFormat()
178 ret = PCM186x_WriteReg(handle, PCM186X_TDM_TX_OFFSET, 0); in PCM186x_SetFormat()
179 if (ret != kStatus_Success) goto end; in PCM186x_SetFormat()
182 ret = PCM186x_ModifyReg(handle, in PCM186x_SetFormat()
186 if (ret != kStatus_Success) goto end; in PCM186x_SetFormat()
189 ret = PCM186x_ModifyReg(handle, in PCM186x_SetFormat()
193 if (ret != kStatus_Success) goto end; in PCM186x_SetFormat()
196 ret = PCM186x_ModifyReg(handle, in PCM186x_SetFormat()
202 return ret; in PCM186x_SetFormat()
207 status_t ret = kStatus_Success; in PCM186x_Init() local
219 ret = PCM186x_WriteReg(handle, PCM186X_REG_00, PCM186X_RESET); in PCM186x_Init()
220 if (ret != kStatus_Success) goto end; in PCM186x_Init()
223 ret = dac_pcm186x_set_gpio(handle, config->gpio_led); in PCM186x_Init()
226 return ret; in PCM186x_Init()
231 status_t ret; in PCM186x_Deinit() local
239 ret = PCM186x_ModifyReg(handle, in PCM186x_Deinit()
243 if (ret != kStatus_Success) goto end; in PCM186x_Deinit()
246 ret = dac_pcm186x_clear_gpio(handle, handle->config->gpio_led); in PCM186x_Deinit()
247 if (ret != kStatus_Success) goto end; in PCM186x_Deinit()
249 ret = CODEC_I2C_Deinit(handle->i2cHandle); in PCM186x_Deinit()
252 return ret; in PCM186x_Deinit()