ASoC: wm_adsp: Warn that firmware file format 0 is depreciated
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 13 Apr 2015 12:28:05 +0000 (13:28 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 14:38:25 +0000 (15:38 +0100)
There are very few version 0 firmwares in the wild and at some point in
the future it would be nice to remove support for them from the driver,
as they require several work arounds to be present to create controls
properly.

This patch adds a depreciated warning if someone is using this file
format.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c

index 1c45d67cfb4f6da9fa9fbb325e99b4633526c5f5..00289bfb761734ecce00c44e7d79219778879047 100644 (file)
@@ -911,6 +911,9 @@ static int wm_adsp_load(struct wm_adsp *dsp)
 
        switch (header->ver) {
        case 0:
+               adsp_warn(dsp, "%s: Depreciated file format %d\n",
+                         file, header->ver);
+               break;
        case 1:
        case 2:
                break;