ASoC: wm_adsp: Handle optional legacy support
[sfrench/cifs-2.6.git] / sound / soc / codecs / wm_adsp.c
index cfaa45ede916ae42bef79e54203ff66a50bd1e40..8a2e9771bb50ee4e4dd94f75788a70952ca66918 100644 (file)
@@ -1602,7 +1602,9 @@ static int wm_adsp_buffer_init(struct wm_adsp *dsp)
        if (list_empty(&dsp->buffer_list)) {
                /* Fall back to legacy support */
                ret = wm_adsp_buffer_parse_legacy(dsp);
-               if (ret)
+               if (ret == -ENODEV)
+                       adsp_info(dsp, "Legacy support not available\n");
+               else if (ret)
                        adsp_warn(dsp, "Failed to parse legacy: %d\n", ret);
        }