greybus: audio: topology: Use csize while computing next_ptr in parser
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Tue, 5 Jul 2016 22:09:20 +0000 (17:09 -0500)
committerAlex Elder <elder@linaro.org>
Wed, 6 Jul 2016 02:17:56 +0000 (21:17 -0500)
commitd4cd9daa49b2dc46497d40d0251b27d0d685754e
treeca1752f713d5dc9035b088d9e013cc037815a31d
parentbb296b48038010dee1c55aa24264f3205ec949fd
greybus: audio: topology: Use csize while computing next_ptr in parser

Size of control elements vary in case of enumerated controls. As a
preparation to enable enumerated control in topology parser, this patch
uses csize while parsing controls & wsize while parsing widgets & its
control to update next pointer.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mark.greer@animalcreek.com>
Signed-off-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/audio_topology.c