git: d0032e6a9e65 - main - sound: Be more verbose with virtual channel descriptions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Apr 2024 20:35:47 UTC
The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=d0032e6a9e6596302bf129d7f68a627a02c6cd0a commit d0032e6a9e6596302bf129d7f68a627a02c6cd0a Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2024-04-18 20:34:45 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2024-04-18 20:35:36 +0000 sound: Be more verbose with virtual channel descriptions Non-virtual channel description denote "play" or "record", so do the same for virtual ones as well. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D44839 --- sys/dev/sound/pcm/sound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 52ead91853e9..4b5c2573239c 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -461,7 +461,7 @@ pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t c max = SND_MAXHWCHAN; break; case PCMDIR_PLAY_VIRTUAL: - dirs = "virtual"; + dirs = "virtual_play"; direction = PCMDIR_PLAY; pnum = &d->pvchancount; device = SND_DEV_DSPHW_VPLAY; @@ -475,7 +475,7 @@ pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t c max = SND_MAXHWCHAN; break; case PCMDIR_REC_VIRTUAL: - dirs = "virtual"; + dirs = "virtual_record"; direction = PCMDIR_REC; pnum = &d->rvchancount; device = SND_DEV_DSPHW_VREC;