* [PATCH] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()
@ 2025-02-12 9:12 Thorsten Blum
2025-02-13 13:38 ` Cezary Rojewski
2025-02-13 17:32 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Blum @ 2025-02-12 9:12 UTC (permalink / raw)
To: Cezary Rojewski, Liam Girdwood, Peter Ujfalusi, Bard Liao,
Ranjani Sridharan, Kai Vehmanen, Pierre-Louis Bossart, Mark Brown,
Jaroslav Kysela, Takashi Iwai
Cc: Thorsten Blum, linux-sound, linux-kernel
Remove hard-coded strings by using the str_on_off() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
sound/soc/intel/avs/dsp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/intel/avs/dsp.c b/sound/soc/intel/avs/dsp.c
index 7b47e52c2b39..b9de691e9b9b 100644
--- a/sound/soc/intel/avs/dsp.c
+++ b/sound/soc/intel/avs/dsp.c
@@ -6,6 +6,7 @@
// Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
//
+#include <linux/string_choices.h>
#include <sound/hdaudio_ext.h>
#include "avs.h"
#include "registers.h"
@@ -39,7 +40,7 @@ int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power)
AVS_ADSPCS_TIMEOUT_US);
if (ret)
dev_err(adev->dev, "core_mask %d power %s failed: %d\n",
- core_mask, power ? "on" : "off", ret);
+ core_mask, str_on_off(power), ret);
return ret;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()
2025-02-12 9:12 [PATCH] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power() Thorsten Blum
@ 2025-02-13 13:38 ` Cezary Rojewski
2025-02-13 17:32 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Cezary Rojewski @ 2025-02-13 13:38 UTC (permalink / raw)
To: Thorsten Blum
Cc: linux-sound, linux-kernel, Liam Girdwood, Peter Ujfalusi,
Bard Liao, Ranjani Sridharan, Kai Vehmanen, Pierre-Louis Bossart,
Mark Brown, Jaroslav Kysela, Takashi Iwai
On 2025-02-12 10:12 AM, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_on_off() helper function.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> sound/soc/intel/avs/dsp.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/intel/avs/dsp.c b/sound/soc/intel/avs/dsp.c
> index 7b47e52c2b39..b9de691e9b9b 100644
> --- a/sound/soc/intel/avs/dsp.c
> +++ b/sound/soc/intel/avs/dsp.c
> @@ -6,6 +6,7 @@
> // Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
> //
>
> +#include <linux/string_choices.h>
> #include <sound/hdaudio_ext.h>
> #include "avs.h"
> #include "registers.h"
> @@ -39,7 +40,7 @@ int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power)
> AVS_ADSPCS_TIMEOUT_US);
> if (ret)
> dev_err(adev->dev, "core_mask %d power %s failed: %d\n",
> - core_mask, power ? "on" : "off", ret);
> + core_mask, str_on_off(power), ret);
>
> return ret;
> }
LGTM
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()
2025-02-12 9:12 [PATCH] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power() Thorsten Blum
2025-02-13 13:38 ` Cezary Rojewski
@ 2025-02-13 17:32 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-02-13 17:32 UTC (permalink / raw)
To: Cezary Rojewski, Liam Girdwood, Peter Ujfalusi, Bard Liao,
Ranjani Sridharan, Kai Vehmanen, Pierre-Louis Bossart,
Jaroslav Kysela, Takashi Iwai, Thorsten Blum
Cc: linux-sound, linux-kernel
On Wed, 12 Feb 2025 10:12:26 +0100, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_on_off() helper function.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()
commit: 994719ed6d81a6f4677875ab6730254c0bc484ea
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] 3+ messages in thread
end of thread, other threads:[~2025-02-13 17:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 9:12 [PATCH] ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power() Thorsten Blum
2025-02-13 13:38 ` Cezary Rojewski
2025-02-13 17:32 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox