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: SOF: Intel: Use str_yes_no() to improve bdw_dump()

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250107110900.3716-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
7299cc06 abea0cbf

+8 -8
+8 -8
sound/soc/sof/intel/bdw.c
··· 266 266 imrd = snd_sof_dsp_read(sdev, BDW_DSP_BAR, SHIM_IMRD); 267 267 dev_err(sdev->dev, 268 268 "error: ipc host -> DSP: pending %s complete %s raw 0x%8.8x\n", 269 - (panic & SHIM_IPCX_BUSY) ? "yes" : "no", 270 - (panic & SHIM_IPCX_DONE) ? "yes" : "no", panic); 269 + str_yes_no(panic & SHIM_IPCX_BUSY), 270 + str_yes_no(panic & SHIM_IPCX_DONE), panic); 271 271 dev_err(sdev->dev, 272 272 "error: mask host: pending %s complete %s raw 0x%8.8x\n", 273 - (imrx & SHIM_IMRX_BUSY) ? "yes" : "no", 274 - (imrx & SHIM_IMRX_DONE) ? "yes" : "no", imrx); 273 + str_yes_no(imrx & SHIM_IMRX_BUSY), 274 + str_yes_no(imrx & SHIM_IMRX_DONE), imrx); 275 275 dev_err(sdev->dev, 276 276 "error: ipc DSP -> host: pending %s complete %s raw 0x%8.8x\n", 277 - (status & SHIM_IPCD_BUSY) ? "yes" : "no", 278 - (status & SHIM_IPCD_DONE) ? "yes" : "no", status); 277 + str_yes_no(status & SHIM_IPCD_BUSY), 278 + str_yes_no(status & SHIM_IPCD_DONE), status); 279 279 dev_err(sdev->dev, 280 280 "error: mask DSP: pending %s complete %s raw 0x%8.8x\n", 281 - (imrd & SHIM_IMRD_BUSY) ? "yes" : "no", 282 - (imrd & SHIM_IMRD_DONE) ? "yes" : "no", imrd); 281 + str_yes_no(imrd & SHIM_IMRD_BUSY), 282 + str_yes_no(imrd & SHIM_IMRD_DONE), imrd); 283 283 } 284 284 285 285 /*