[alsa-devel] [PATCH] ASoC: adsp: Correct version number masks

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Dec 10 06:04:05 CET 2012


Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm_adsp.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 3f0e69b..00caaa5 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -394,7 +394,7 @@ static int wm_adsp_setup_algs(struct wm_adsp *dsp)
 		algs = be32_to_cpu(adsp1_id.algs);
 		adsp_info(dsp, "Firmware: %x v%d.%d.%d, %zu algorithms\n",
 			  be32_to_cpu(adsp1_id.fw.id),
-			  (be32_to_cpu(adsp1_id.fw.ver) & 0xff000) >> 16,
+			  (be32_to_cpu(adsp1_id.fw.ver) & 0xff0000) >> 16,
 			  (be32_to_cpu(adsp1_id.fw.ver) & 0xff00) >> 8,
 			  be32_to_cpu(adsp1_id.fw.ver) & 0xff,
 			  algs);
@@ -415,7 +415,7 @@ static int wm_adsp_setup_algs(struct wm_adsp *dsp)
 		algs = be32_to_cpu(adsp2_id.algs);
 		adsp_info(dsp, "Firmware: %x v%d.%d.%d, %zu algorithms\n",
 			  be32_to_cpu(adsp2_id.fw.id),
-			  (be32_to_cpu(adsp2_id.fw.ver) & 0xff000) >> 16,
+			  (be32_to_cpu(adsp2_id.fw.ver) & 0xff0000) >> 16,
 			  (be32_to_cpu(adsp2_id.fw.ver) & 0xff00) >> 8,
 			  be32_to_cpu(adsp2_id.fw.ver) & 0xff,
 			  algs);
@@ -465,7 +465,7 @@ static int wm_adsp_setup_algs(struct wm_adsp *dsp)
 		case WMFW_ADSP1:
 			adsp_info(dsp, "%d: ID %x v%d.%d.%d\n",
 				  i, be32_to_cpu(adsp1_alg[i].alg.id),
-				  (be32_to_cpu(adsp1_alg[i].alg.ver) & 0xff000) >> 16,
+				  (be32_to_cpu(adsp1_alg[i].alg.ver) & 0xff0000) >> 16,
 				  (be32_to_cpu(adsp1_alg[i].alg.ver) & 0xff00) >> 8,
 				  be32_to_cpu(adsp1_alg[i].alg.ver) & 0xff);
 			break;
@@ -473,7 +473,7 @@ static int wm_adsp_setup_algs(struct wm_adsp *dsp)
 		case WMFW_ADSP2:
 			adsp_info(dsp, "%d: ID %x v%d.%d.%d\n",
 				  i, be32_to_cpu(adsp2_alg[i].alg.id),
-				  (be32_to_cpu(adsp2_alg[i].alg.ver) & 0xff000) >> 16,
+				  (be32_to_cpu(adsp2_alg[i].alg.ver) & 0xff0000) >> 16,
 				  (be32_to_cpu(adsp2_alg[i].alg.ver) & 0xff00) >> 8,
 				  be32_to_cpu(adsp2_alg[i].alg.ver) & 0xff);
 			break;
-- 
1.7.10.4



More information about the Alsa-devel mailing list