ALSA/ASoC: use snd_pcm_direction_name()
authorMark Brown <broonie@kernel.org>
Thu, 1 Aug 2024 19:15:22 +0000 (20:15 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Aug 2024 19:15:22 +0000 (20:15 +0100)
commit9aafe1dd035fd405c5514e6bea2647c196626dd3
tree96a4bf0d226c324ab7df3a6f5f99972a9140f36d
parentbb2bf8568a425d025bcb3f7c112f9a0282a7dc8e
parentbb660132868b5208d6a5f2bd184425cf788f4ef9
ALSA/ASoC: use snd_pcm_direction_name()

Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:

Many drivers are selecting strings "playback" / "capture" by own
handling, but we have snd_pcm_direction_name() function for it.
This patch use it.

One note is that snd_pcm_direction_name() will select
"Playback" and "Capture", instead of "playback" / "capture".
Almost all drivers are using it as dev_dbg() or dev_err()
so no problem. But some other drivers are using it as other
purpose. It might be issue (?). For example ASoC debugfs dir name
will be changed by this patch.