mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
greybus: audio: Fix widget pointer update during control parsing
widget pointer was incorrectly modfied while parsing kcontrol Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
1472ec67f7
commit
6da549ec85
1 changed files with 1 additions and 1 deletions
|
|
@ -834,7 +834,7 @@ static int gbaudio_tplg_process_widgets(struct gbaudio_module_info *module,
|
|||
list_add(&widget->list, &module->widget_list);
|
||||
ncontrols = curr->ncontrols;
|
||||
curr++;
|
||||
curr += ncontrols * sizeof(struct gb_audio_control);
|
||||
curr = (void *)curr + ncontrols*sizeof(struct gb_audio_control);
|
||||
}
|
||||
module->dapm_widgets = dapm_widgets;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue