ASoC: mchp-spdiftx: update debug message
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 1 Mar 2023 11:38:02 +0000 (13:38 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 5 Mar 2023 23:37:43 +0000 (23:37 +0000)
Previous debug message states that there was a failure and tx was not
disabled. Which is not true as the TX in this function could also be
enabled. Thus improve a bit the debug message by s/disable/start\/stop/.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230301113807.24036-4-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-spdiftx.c

index e7241d819748a0e29e30b10c2e3ed5484d0bcacc..02a2fa7a42dd2b14d08974823859caf819af1992 100644 (file)
@@ -337,7 +337,7 @@ static int mchp_spdiftx_trigger(struct snd_pcm_substream *substream, int cmd,
        }
        spin_unlock(&ctrl->lock);
        if (ret)
-               dev_err(dev->dev, "unable to disable TX: %d\n", ret);
+               dev_err(dev->dev, "unable to start/stop TX: %d\n", ret);
 
        return ret;
 }