Home
last modified time | relevance | path

Searched refs:ssfw_head (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/sound/soc/codecs/
Dsigmadsp.c479 const struct sigma_firmware_header *ssfw_head; in sigmadsp_firmware_load() local
500 if (fw->size < sizeof(*ssfw_head) || fw->size >= 0x4000000) { in sigmadsp_firmware_load()
505 ssfw_head = (void *)fw->data; in sigmadsp_firmware_load()
506 if (memcmp(ssfw_head->magic, SIGMA_MAGIC, ARRAY_SIZE(ssfw_head->magic))) { in sigmadsp_firmware_load()
511 crc = crc32(0, fw->data + sizeof(*ssfw_head), in sigmadsp_firmware_load()
512 fw->size - sizeof(*ssfw_head)); in sigmadsp_firmware_load()
514 if (crc != le32_to_cpu(ssfw_head->crc)) { in sigmadsp_firmware_load()
516 le32_to_cpu(ssfw_head->crc), crc); in sigmadsp_firmware_load()
520 switch (ssfw_head->version) { in sigmadsp_firmware_load()
530 ssfw_head->version); in sigmadsp_firmware_load()