Repository navigation
Simplifications for codec_adapter_set_params() - #5160
Conversation
e7c0573 to
1e87728
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
right that was a mistake |
1e87728 to
c70f860
Compare
c70f860 to
1dd7fb9
Compare
cujomalainey
left a comment
There was a problem hiding this comment.
much appreciated thank you!
|
@lgirdwood I think #5166 should go first and then I can rebase this one |
|
Looks good to me. Somehow, I missed to add my review. |
There was a problem hiding this comment.
I didn't fully verify this, but I guess it's a correct way to merge the above two cases and an additional call to codec_load_config() isn't needed because it's already called inside load_setup_config()
There was a problem hiding this comment.
@lyakh looking more into this I realized that I could drop load_setup_config() altogether and modify module_load_config() to handle both runtime and setup configs. Updated accordingly.
It can be accessed via cdata in the function. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Remove the goto's and return the appropriate values to simplify the codec_adapter_set_params() function. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Remove the unnecessary braces in codec_adapter_set_params(). Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Check if more fragments of config data are expected first and return immediately to make the code easier to follow. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1dd7fb9 to
2b6a947
Compare
Additional patch added
|
@dbaluta good for you ? |
2b6a947 to
c5c0332
Compare
Modify module_load_config() to handle both setup and runtime configs and remove load_setup_config(). Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
c5c0332 to
2d39351
Compare
No description provided.