projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a642a
)
ALSA: pcm_timer: use snd_pcm_direction_name()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Tue, 30 Jul 2024 02:05:30 +0000
(
02:05
+0000)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 1 Aug 2024 10:50:13 +0000
(12:50 +0200)
We already have snd_pcm_direction_name(). Let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://patch.msgid.link/87plqvk51y.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_timer.c
patch
|
blob
|
history
diff --git
a/sound/core/pcm_timer.c
b/sound/core/pcm_timer.c
index c43484b22b34ca82fd21fa284dceaf36556ac8c0..ab0e5bd70f8fa08c756b0ff53b4a51866127d352 100644
(file)
--- a/
sound/core/pcm_timer.c
+++ b/
sound/core/pcm_timer.c
@@
-108,8
+108,7
@@
void snd_pcm_timer_init(struct snd_pcm_substream *substream)
if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0)
return;
sprintf(timer->name, "PCM %s %i-%i-%i",
- substream->stream == SNDRV_PCM_STREAM_CAPTURE ?
- "capture" : "playback",
+ snd_pcm_direction_name(substream->stream),
tid.card, tid.device, tid.subdevice);
timer->hw = snd_pcm_timer;
if (snd_device_register(timer->card, timer) < 0) {