diff options
-rw-r--r-- | sound/soc/codecs/sigmadsp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/sigmadsp.c b/sound/soc/codecs/sigmadsp.c index f2de7e049bc6..81a38dd9af1f 100644 --- a/sound/soc/codecs/sigmadsp.c +++ b/sound/soc/codecs/sigmadsp.c | |||
@@ -159,6 +159,13 @@ int _process_sigma_firmware(struct device *dev, | |||
159 | goto done; | 159 | goto done; |
160 | } | 160 | } |
161 | 161 | ||
162 | if (ssfw_head->version != 1) { | ||
163 | dev_err(dev, | ||
164 | "Failed to load firmware: Invalid version %d. Supported firmware versions: 1\n", | ||
165 | ssfw_head->version); | ||
166 | goto done; | ||
167 | } | ||
168 | |||
162 | crc = crc32(0, fw->data + sizeof(*ssfw_head), | 169 | crc = crc32(0, fw->data + sizeof(*ssfw_head), |
163 | fw->size - sizeof(*ssfw_head)); | 170 | fw->size - sizeof(*ssfw_head)); |
164 | pr_debug("%s: crc=%x\n", __func__, crc); | 171 | pr_debug("%s: crc=%x\n", __func__, crc); |