voice-proto: continue on DSP rejections, log each record result
Assisted-by: Claude:claude-fable-5
This commit is contained in:
parent
7695d5e6e4
commit
2626032a50
1 changed files with 4 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ static int q6vp_play(const char *name)
|
|||
struct device *dev = q6vp_apm->dev;
|
||||
size_t off;
|
||||
uint32_t i, num, opcode, size;
|
||||
int ret;
|
||||
int ret, err = 0;
|
||||
|
||||
ret = request_firmware(&fw, name, dev);
|
||||
if (ret) {
|
||||
|
|
@ -104,15 +104,16 @@ static int q6vp_play(const char *name)
|
|||
ret = q6vp_send(opcode, fw->data + off, size);
|
||||
dev_info(dev, "voice-proto: %s[%u] opcode 0x%08x size %u -> %d\n",
|
||||
name, i, opcode, size, ret);
|
||||
/* keep going on DSP rejections; each result is logged */
|
||||
if (ret)
|
||||
goto out;
|
||||
err = ret;
|
||||
|
||||
off += ALIGN(size, 4);
|
||||
}
|
||||
|
||||
out:
|
||||
release_firmware(fw);
|
||||
return ret;
|
||||
return ret ? ret : err;
|
||||
}
|
||||
|
||||
static ssize_t q6vp_play_write(struct file *file, const char __user *ubuf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue