OSDN Git Service

topology: Fix to skip writing of header for compound elements
authorGuruprasadX Pawse <guruprasadx.pawse@intel.com>
Tue, 2 Jan 2018 05:20:01 +0000 (10:50 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Jan 2018 15:33:54 +0000 (16:33 +0100)
commitdc68f69a66d55e8ba7e1d885ce81c129c7f2a7b9
tree1b728a011709608c8a99981954548a4908fb7600
parent794390adfa04f9b6efcd3a0225912b6478ee3f7e
topology: Fix to skip writing of header for compound elements

While calculating the size of data to be written into the topology
binary file, the size of the compound elements is added as well. This
results in wrong file offset calculation and topology build failure.

The compound elements shouldn't be written to the topology as these are
already embedded as part of other elements. So, skip adding the size of
compound elements to the file offset size calculation.

Signed-off-by: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/builder.c