ASoC:SOF:skl:enable the core and get the ROM init. V2#132
Conversation
117fed5 to
43663ba
Compare
There was a problem hiding this comment.
ok, so this code is confusing as if ROM status is 0 we return 0 ( and 0 globally means success within the kernel) ?? but if ROM status is good we return -EIO ??
There was a problem hiding this comment.
The debug info is error, removed
There was a problem hiding this comment.
This is debug, it must be removed before merge.
43663ba to
25124a1
Compare
lgirdwood
left a comment
There was a problem hiding this comment.
Some more minor updates needed.
There was a problem hiding this comment.
This should be if (ret < 0) since 0 is always success. This check should also be in the else {} block above.
There was a problem hiding this comment.
Oh, this should be removed, since prepare is not here.
There was a problem hiding this comment.
snd_sof_dsp_register_poll only return 0 on success.
25124a1 to
704569b
Compare
zhuyingjiang
left a comment
There was a problem hiding this comment.
changed according to the comments.
There was a problem hiding this comment.
Oh, this should be removed, since prepare is not here.
|
@lgirdwood changed according to the comments. |
lgirdwood
left a comment
There was a problem hiding this comment.
Just fix return code checking and it should be good to merge
There was a problem hiding this comment.
ret should be checked here in this {} block and if < 0 should power off core and return ret
There was a problem hiding this comment.
always use if (ret < 0) for error checking as some posix/kernel APIs may also return a positive integer on success
There was a problem hiding this comment.
OK, make all the fail return, if(ret<0) goto err;
704569b to
0af4ef8
Compare
zhuyingjiang
left a comment
There was a problem hiding this comment.
OK, the return value changed.
There was a problem hiding this comment.
OK, make all the fail return, if(ret<0) goto err;
|
@lgirdwood the return value changed. |
There was a problem hiding this comment.
No need to change the value of ret here, otherwise the meaning will be lost further up the stack. So best remove this line.
1. enable the skl core 2. get the ROM int Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
0af4ef8 to
d71d6c0
Compare
|
@lgirdwood removed. |
Signed-off-by: Zhu Yingjiang yingjiang.zhu@linux.intel.com