Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: Intel: avs: Use str_on_off() in avs_dsp_core_power()

Remove hard-coded strings by using the str_on_off() helper function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250212091227.1217-3-thorsten.blum@linux.dev
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
994719ed ae575d21

+2 -1
+2 -1
sound/soc/intel/avs/dsp.c
··· 6 6 // Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com> 7 7 // 8 8 9 + #include <linux/string_choices.h> 9 10 #include <sound/hdaudio_ext.h> 10 11 #include "avs.h" 11 12 #include "registers.h" ··· 40 39 AVS_ADSPCS_TIMEOUT_US); 41 40 if (ret) 42 41 dev_err(adev->dev, "core_mask %d power %s failed: %d\n", 43 - core_mask, power ? "on" : "off", ret); 42 + core_mask, str_on_off(power), ret); 44 43 45 44 return ret; 46 45 }