We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f4a97 commit 66aefdbCopy full SHA for 66aefdb
samples/boards/intel_s1000_crb/i2s/src/i2s_sample.c
@@ -292,11 +292,13 @@ static void i2s_stop_audio(void)
292
{
293
int ret;
294
295
- if (i2s_trigger(spk_i2s_dev, I2S_DIR_TX, I2S_TRIGGER_STOP)) {
+ ret = i2s_trigger(spk_i2s_dev, I2S_DIR_TX, I2S_TRIGGER_STOP);
296
+ if (ret) {
297
LOG_ERR("spk_i2s_dev stop failed with code %d", ret);
298
}
299
- if (i2s_trigger(host_i2s_dev, I2S_DIR_RX, I2S_TRIGGER_STOP)) {
300
+ ret = i2s_trigger(host_i2s_dev, I2S_DIR_RX, I2S_TRIGGER_STOP);
301
302
LOG_ERR("host_i2s_dev stop failed with code %d", ret);
303
304
0 commit comments