ASoC: wm_adsp: use new 'cirrus' node
authorYoon (Seungyoon) Lee <w22905@motorola.com>
Wed, 26 Dec 2018 06:19:58 +0000 (00:19 -0600)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:52 +0000 (17:36 +0800)
We have Kane only in this new platform so far and this is good
chance to transit to use new 'cirrus' node instead of old 'wlf'
node since we don't have any old products dt in this branch yet.

Change-Id: I31f883043913f287da62f8a39ca6a828c2b5da3a
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287049
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

sound/soc/codecs/wm_adsp.c

index eb1bddca4456540bd83c9f3a902c0dca8586afd1..a86fcea330738b04d798fd72aa496c6e0b027a04 100755 (executable)
@@ -3952,22 +3952,6 @@ static int wm_adsp_of_parse_firmware(struct wm_adsp *dsp,
        while ((fw = of_get_next_child(fws, fw)) != NULL) {
                ctl_names[i] = fw->name;
 
-               /* check for old dts configuration */
-               ret = of_property_read_string(fw, "wlf,wmfw-file",
-                                             &dsp->firmwares[i].file);
-               if (ret == 0) {
-                       ret = of_property_read_string(fw, "wlf,bin-file",
-                                             &dsp->firmwares[i].binfile);
-                       if (ret < 0)
-                               dsp->firmwares[i].binfile = NULL;
-                       dsp->firmwares[i].fullname = true;
-                       dsp->firmwares[i].compr_direction = SND_COMPRESS_CAPTURE;
-                       dsp->firmwares[i].num_caps = ARRAY_SIZE(trace_caps);
-                       dsp->firmwares[i].caps = trace_caps;
-                       i++;
-                       continue;
-               }
-
                ret = of_property_read_string(fw, "cirrus,wmfw-file",
                                              &dsp->firmwares[i].file);
                if (ret < 0) {