* [PATCH] ASoC: SOF: Intel: hda-dai: Print the format_val as hexadecimal number
@ 2023-04-06 15:52 Pierre-Louis Bossart
2023-04-06 20:14 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Pierre-Louis Bossart @ 2023-04-06 15:52 UTC (permalink / raw)
To: alsa-devel
Cc: tiwai, broonie, Peter Ujfalusi, Pierre-Louis Bossart,
Kai Vehmanen, Jaska Uimonen, Ranjani Sridharan
From: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The format_val is a set of bitfileds, printing it as a decimal just makes
interpreting it complicated.
In other HDA core code the format_val is printed as hexadecimal also.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
---
sound/soc/sof/intel/hda-dai.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sof/intel/hda-dai.c b/sound/soc/sof/intel/hda-dai.c
index 0435b7f251aa..44a5d94c5050 100644
--- a/sound/soc/sof/intel/hda-dai.c
+++ b/sound/soc/sof/intel/hda-dai.c
@@ -177,8 +177,8 @@ static int hda_link_dma_hw_params(struct snd_pcm_substream *substream,
format_val = snd_hdac_calc_stream_format(params_rate(params), params_channels(params),
params_format(params), link_bps, 0);
- dev_dbg(bus->dev, "format_val=%d, rate=%d, ch=%d, format=%d\n",
- format_val, params_rate(params), params_channels(params), params_format(params));
+ dev_dbg(bus->dev, "format_val=%#x, rate=%d, ch=%d, format=%d\n", format_val,
+ params_rate(params), params_channels(params), params_format(params));
if (ops->setup_hext_stream)
ops->setup_hext_stream(sdev, hext_stream, format_val);
--
2.37.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: SOF: Intel: hda-dai: Print the format_val as hexadecimal number
2023-04-06 15:52 [PATCH] ASoC: SOF: Intel: hda-dai: Print the format_val as hexadecimal number Pierre-Louis Bossart
@ 2023-04-06 20:14 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-04-06 20:14 UTC (permalink / raw)
To: alsa-devel, Pierre-Louis Bossart
Cc: tiwai, Peter Ujfalusi, Kai Vehmanen, Jaska Uimonen, Ranjani Sridharan
On Thu, 06 Apr 2023 10:52:19 -0500, Pierre-Louis Bossart wrote:
> The format_val is a set of bitfileds, printing it as a decimal just makes
> interpreting it complicated.
>
> In other HDA core code the format_val is printed as hexadecimal also.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: Intel: hda-dai: Print the format_val as hexadecimal number
commit: ef736f30548951870e2a5bfc41b6b0bb1d455641
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-06 20:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 15:52 [PATCH] ASoC: SOF: Intel: hda-dai: Print the format_val as hexadecimal number Pierre-Louis Bossart
2023-04-06 20:14 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.