Skip to contentSkip to conversation

ASoC: Intel: Skylake: enable S24_LE format support

PATCH In review Jenny TC 2 participants 2 messages Mar 23, 2019

Subsystems (3)
lore
Share & tools
lore

Jenny TC

author
#0 lore raw

PATCH v2 1/1 ASoC: Intel: Skylake: enable S24_LE format support

From: Jenny TC <[email protected]>

To enable S24_LE format, sample_type in topology fw has to be set to 1. But sample_type defined in topology firmware configuration is not getting reflected in the dsp param. This patch sets sample_type in base config so that the sample type defined in the topology firmware is reflected in the dsp params. This issues was uncovered while debugging the S24_LE format which require the MSB byte in 32 bit word to be skipped. Setting sample_type in topology firmware to 1 helps to skip MSB byte word.

---
 sound/soc/intel/skylake/skl-messages.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-messages.c +1 -0
index 28c4806..4bf70b4 100644
@@ -483,6 +483,7 @@ static void skl_set_base_module_format(struct skl_sst *ctx,
 	base_cfg->audio_fmt.bit_depth = format->bit_depth;
 	base_cfg->audio_fmt.valid_bit_depth = format->valid_bit_depth;
 	base_cfg->audio_fmt.ch_cfg = format->ch_cfg;
+	base_cfg->audio_fmt.sample_type = format->sample_type;
 
 	dev_dbg(ctx->dev, "bit_depth=%x valid_bd=%x ch_config=%x\n",
 			format->bit_depth, format->valid_bit_depth,
Signature · 1 line
1.9.1
Acked-by on v2 1/1
#1 lore raw
Quoted 11 lines · Jenny TC

From: Jenny TC <[email protected]>

To enable S24_LE format, sample_type in topology fw has to be set to 1. But sample_type defined in topology firmware configuration is not getting reflected in the dsp param. This patch sets sample_type in base config so that the sample type defined in the topology firmware is reflected in the dsp params. This issues was uncovered while debugging the S24_LE format which require the MSB byte in 32 bit word to be skipped. Setting sample_type in topology firmware to 1 helps to skip MSB byte word.

Quoted 17 lines
---
  sound/soc/intel/skylake/skl-messages.c | 1 +
  1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-messages.c +1 -0
index 28c4806..4bf70b4 100644
@@ -483,6 +483,7 @@ static void skl_set_base_module_format(struct skl_sst *ctx,
  	base_cfg->audio_fmt.bit_depth = format->bit_depth;
  	base_cfg->audio_fmt.valid_bit_depth = format->valid_bit_depth;
  	base_cfg->audio_fmt.ch_cfg = format->ch_cfg;
+	base_cfg->audio_fmt.sample_type = format->sample_type;
 
  	dev_dbg(ctx->dev, "bit_depth=%x valid_bd=%x ch_config=%x\n",
  			format->bit_depth, format->valid_bit_depth,