ASoC: Intel: Skylake: Set sample_type in base config
Subsystems (3)
PATCH 1/1 ASoC: Intel: Skylake: Set sample_type in base config
From: Jenny TC <[email protected]>
sample_type defined in topology 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 is reflected int eh 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 to 1 helps to fix this.
--- sound/soc/intel/skylake/skl-messages.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-messages.c +1 -0
@@ -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
Quoted 8 lines · Jenny TC
From: Jenny TC <[email protected]>
sample_typedefined in topology configuration is not getting reflected in the dsp param. This patch setssample_typein base config so that the sample type defined in the topology is reflected int eh dsp params. This issues was uncovered while debugging theS24_LEformat which require the MSB byte in 32 bit word to be skipped. Settingsample_typeto 1 helps to fix this.
skl_set_base_module_format() is called from a variety of places, so am I correct in stating that S24_LE never worked with this driver? If so, the patch should really be titled "ASoC: Intel: Skylake: enable S24_LE format support"
Also your commit message is confusing in the last sentence. What do you mean by "Setting sample_type to " when you only use what's provided by the topology?
Quoted 18 lines
Signed-off-by Jenny TC <[email protected]>--- sound/soc/intel/skylake/skl-messages.c | 1 + 1 file changed, 1 insertion(+)sound/soc/intel/skylake/skl-messages.c +1
-0@@ -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,
Quoted 9 lines
Quoted 8 lines
sample_typedefined in topology configuration is not getting reflected in the dsp param. This patch setssample_typein base config so that the sample type defined in the topology is reflected int eh dsp params. This issues was uncovered while debugging theS24_LEformat which require the MSB byte in 32 bit word to be skipped. Settingsample_typeto 1 helps to fix this.
skl_set_base_module_format()is called from a variety of places, so am I correct in stating thatS24_LEnever worked with this driver? If so, the patch should really be titled "ASoC: Intel: Skylake: enableS24_LEformat >support"
Yes, S24_LE is being enabled for first time, I'll update the title
Quoted 1 line
Also your commit message is confusing in the last sentence. What do you mean by "Setting
sample_typeto " when you only use what's provided by the topology?
Yes, setting sample type to 1 in topology firmware helps to fix this. I'll update the commit message to make it clear.
--- sound/soc/intel/skylake/skl-messages.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-messages.c +1 -0
@@ -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,