@@ -1048,7 +1048,7 @@ static int cs_dsp_create_control(struct cs_dsp *dsp,
1048
1048
1049
1049
ctl -> fw_name = dsp -> fw_name ;
1050
1050
ctl -> alg_region = * alg_region ;
1051
- if (subname && dsp -> fw_ver >= 2 ) {
1051
+ if (subname && dsp -> wmfw_ver >= 2 ) {
1052
1052
ctl -> subname_len = subname_len ;
1053
1053
ctl -> subname = kasprintf (GFP_KERNEL , "%.*s" , subname_len , subname );
1054
1054
if (!ctl -> subname ) {
@@ -1175,7 +1175,7 @@ static int cs_dsp_coeff_parse_alg(struct cs_dsp *dsp,
1175
1175
1176
1176
raw = (const struct wmfw_adsp_alg_data * )region -> data ;
1177
1177
1178
- switch (dsp -> fw_ver ) {
1178
+ switch (dsp -> wmfw_ver ) {
1179
1179
case 0 :
1180
1180
case 1 :
1181
1181
if (sizeof (* raw ) > data_len )
@@ -1252,7 +1252,7 @@ static int cs_dsp_coeff_parse_coeff(struct cs_dsp *dsp,
1252
1252
blk -> offset = le16_to_cpu (raw -> hdr .offset );
1253
1253
blk -> mem_type = le16_to_cpu (raw -> hdr .type );
1254
1254
1255
- switch (dsp -> fw_ver ) {
1255
+ switch (dsp -> wmfw_ver ) {
1256
1256
case 0 :
1257
1257
case 1 :
1258
1258
if (sizeof (* raw ) > (data_len - pos ))
@@ -1499,7 +1499,7 @@ static int cs_dsp_load(struct cs_dsp *dsp, const struct firmware *firmware,
1499
1499
goto out_fw ;
1500
1500
}
1501
1501
1502
- dsp -> fw_ver = header -> ver ;
1502
+ dsp -> wmfw_ver = header -> ver ;
1503
1503
1504
1504
if (header -> core != dsp -> type ) {
1505
1505
cs_dsp_err (dsp , "%s: invalid core %d != %d\n" ,
@@ -1779,7 +1779,7 @@ static struct cs_dsp_alg_region *cs_dsp_create_region(struct cs_dsp *dsp,
1779
1779
1780
1780
list_add_tail (& alg_region -> list , & dsp -> alg_regions );
1781
1781
1782
- if (dsp -> fw_ver > 0 )
1782
+ if (dsp -> wmfw_ver > 0 )
1783
1783
cs_dsp_ctl_fixup_base (dsp , alg_region );
1784
1784
1785
1785
return alg_region ;
@@ -1902,7 +1902,7 @@ static int cs_dsp_adsp1_setup_algs(struct cs_dsp *dsp)
1902
1902
ret = PTR_ERR (alg_region );
1903
1903
goto out ;
1904
1904
}
1905
- if (dsp -> fw_ver == 0 ) {
1905
+ if (dsp -> wmfw_ver == 0 ) {
1906
1906
if (i + 1 < n_algs ) {
1907
1907
len = be32_to_cpu (adsp1_alg [i + 1 ].dm );
1908
1908
len -= be32_to_cpu (adsp1_alg [i ].dm );
@@ -1924,7 +1924,7 @@ static int cs_dsp_adsp1_setup_algs(struct cs_dsp *dsp)
1924
1924
ret = PTR_ERR (alg_region );
1925
1925
goto out ;
1926
1926
}
1927
- if (dsp -> fw_ver == 0 ) {
1927
+ if (dsp -> wmfw_ver == 0 ) {
1928
1928
if (i + 1 < n_algs ) {
1929
1929
len = be32_to_cpu (adsp1_alg [i + 1 ].zm );
1930
1930
len -= be32_to_cpu (adsp1_alg [i ].zm );
@@ -2015,7 +2015,7 @@ static int cs_dsp_adsp2_setup_algs(struct cs_dsp *dsp)
2015
2015
ret = PTR_ERR (alg_region );
2016
2016
goto out ;
2017
2017
}
2018
- if (dsp -> fw_ver == 0 ) {
2018
+ if (dsp -> wmfw_ver == 0 ) {
2019
2019
if (i + 1 < n_algs ) {
2020
2020
len = be32_to_cpu (adsp2_alg [i + 1 ].xm );
2021
2021
len -= be32_to_cpu (adsp2_alg [i ].xm );
@@ -2037,7 +2037,7 @@ static int cs_dsp_adsp2_setup_algs(struct cs_dsp *dsp)
2037
2037
ret = PTR_ERR (alg_region );
2038
2038
goto out ;
2039
2039
}
2040
- if (dsp -> fw_ver == 0 ) {
2040
+ if (dsp -> wmfw_ver == 0 ) {
2041
2041
if (i + 1 < n_algs ) {
2042
2042
len = be32_to_cpu (adsp2_alg [i + 1 ].ym );
2043
2043
len -= be32_to_cpu (adsp2_alg [i ].ym );
@@ -2059,7 +2059,7 @@ static int cs_dsp_adsp2_setup_algs(struct cs_dsp *dsp)
2059
2059
ret = PTR_ERR (alg_region );
2060
2060
goto out ;
2061
2061
}
2062
- if (dsp -> fw_ver == 0 ) {
2062
+ if (dsp -> wmfw_ver == 0 ) {
2063
2063
if (i + 1 < n_algs ) {
2064
2064
len = be32_to_cpu (adsp2_alg [i + 1 ].zm );
2065
2065
len -= be32_to_cpu (adsp2_alg [i ].zm );
0 commit comments