Skip to contentSkip to conversation

ASoC: qcom: lpass: Fix i2s ctl register bit map

PATCH Superseded Jun Nie 3 participants 4 messages Jan 20, 2021 – Feb 1, 2021

Subsystems (3)
lore
Share & tools
lore

Jun Nie

author
#0 lore raw

PATCH v2 1/1 ASoC: qcom: lpass: Fix i2s ctl register bit map

Fix bitwidth mapping in i2s ctl register per APQ8016 document.

Fixes b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and

dmactl registers")

---
 sound/soc/qcom/lpass-apq8016.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/qcom/lpass-apq8016.c +1 -1
index 8507ef8f6679..3efa133d1c64 100644
@@ -250,7 +250,7 @@ static struct lpass_variant apq8016_data = {
 	.micmode		= REG_FIELD_ID(0x1000, 4, 7, 4, 0x1000),
 	.micmono		= REG_FIELD_ID(0x1000, 3, 3, 4, 0x1000),
 	.wssrc			= REG_FIELD_ID(0x1000, 2, 2, 4, 0x1000),
-	.bitwidth		= REG_FIELD_ID(0x1000, 0, 0, 4, 0x1000),
+	.bitwidth		= REG_FIELD_ID(0x1000, 0, 1, 4, 0x1000),
 
 	.rdma_dyncclk		= REG_FIELD_ID(0x8400, 12, 12, 2, 0x1000),
 	.rdma_bursten		= REG_FIELD_ID(0x8400, 11, 11, 2, 0x1000),
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Jun Nie

Fix bitwidth mapping in i2s ctl register per APQ8016 document.

Fixes b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and

dmactl registers")

Thanks for spotting this, I guess this did not cause me problems yet because I use SNDRV_PCM_FMTBIT_S16 everywhere.

Anyway, this looks correct according to the datasheet:

Quoted 20 lines
---
 sound/soc/qcom/lpass-apq8016.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/qcom/lpass-apq8016.c +1 -1
index 8507ef8f6679..3efa133d1c64 100644
@@ -250,7 +250,7 @@ static struct lpass_variant apq8016_data = {
 	.micmode		= REG_FIELD_ID(0x1000, 4, 7, 4, 0x1000),
 	.micmono		= REG_FIELD_ID(0x1000, 3, 3, 4, 0x1000),
 	.wssrc			= REG_FIELD_ID(0x1000, 2, 2, 4, 0x1000),
-	.bitwidth		= REG_FIELD_ID(0x1000, 0, 0, 4, 0x1000),
+	.bitwidth		= REG_FIELD_ID(0x1000, 0, 1, 4, 0x1000),
 
 	.rdma_dyncclk		= REG_FIELD_ID(0x8400, 12, 12, 2, 0x1000),
 	.rdma_bursten		= REG_FIELD_ID(0x8400, 11, 11, 2, 0x1000),
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#2 lore raw
In reply to Jun Nie
Quoted 5 lines · Jun Nie

Fix bitwidth mapping in i2s ctl register per APQ8016 document.

Fixes b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and

dmactl registers")

Quoted 18 lines
---
  sound/soc/qcom/lpass-apq8016.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/qcom/lpass-apq8016.c +1 -1
index 8507ef8f6679..3efa133d1c64 100644
@@ -250,7 +250,7 @@ static struct lpass_variant apq8016_data = {
  	.micmode		= REG_FIELD_ID(0x1000, 4, 7, 4, 0x1000),
  	.micmono		= REG_FIELD_ID(0x1000, 3, 3, 4, 0x1000),
  	.wssrc			= REG_FIELD_ID(0x1000, 2, 2, 4, 0x1000),
-	.bitwidth		= REG_FIELD_ID(0x1000, 0, 0, 4, 0x1000),
+	.bitwidth		= REG_FIELD_ID(0x1000, 0, 1, 4, 0x1000),
 
  	.rdma_dyncclk		= REG_FIELD_ID(0x8400, 12, 12, 2, 0x1000),
  	.rdma_bursten		= REG_FIELD_ID(0x8400, 11, 11, 2, 0x1000),
#3 lore raw
In reply to Jun Nie

Hi Jun,

Quoted 5 lines · Jun Nie

Fix bitwidth mapping in i2s ctl register per APQ8016 document.

Fixes b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and

dmactl registers")

It looks like you forgot to Cc the ASoC maintainer(s) here, especially Mark Brown, which might be why this patch has not been applied yet.

Can you re-send this patch with all the maintainers in the Cc? You can add the Reviewed-by: from me and Srinivas to your patch so we don't need to send them again.

Thanks!
Stephan