mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
ALSA: aloop: use snd_pcm_direction_name()
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/87r0bbk528.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
469b77e421
commit
e1a642aba4
@ -900,8 +900,7 @@ static void loopback_snd_timer_dpcm_info(struct loopback_pcm *dpcm,
|
|||||||
cable->snd_timer.id.device,
|
cable->snd_timer.id.device,
|
||||||
cable->snd_timer.id.subdevice);
|
cable->snd_timer.id.subdevice);
|
||||||
snd_iprintf(buffer, " timer open:\t\t%s\n",
|
snd_iprintf(buffer, " timer open:\t\t%s\n",
|
||||||
(cable->snd_timer.stream == SNDRV_PCM_STREAM_CAPTURE) ?
|
snd_pcm_direction_name(cable->snd_timer.stream));
|
||||||
"capture" : "playback");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static snd_pcm_uframes_t loopback_pointer(struct snd_pcm_substream *substream)
|
static snd_pcm_uframes_t loopback_pointer(struct snd_pcm_substream *substream)
|
||||||
|
Loading…
Reference in New Issue
Block a user