aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/vchan.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pcm/vchan.h')
-rw-r--r--sys/dev/sound/pcm/vchan.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/sound/pcm/vchan.h b/sys/dev/sound/pcm/vchan.h
index 8c1de9496ef3..5d8057cd4b7f 100644
--- a/sys/dev/sound/pcm/vchan.h
+++ b/sys/dev/sound/pcm/vchan.h
@@ -39,17 +39,12 @@ extern bool snd_vchans_enable;
int vchan_create(struct pcm_channel *, struct pcm_channel **);
int vchan_destroy(struct pcm_channel *);
-#ifdef SND_DEBUG
-int vchan_passthrough(struct pcm_channel *, const char *);
-#define vchan_sync(c) vchan_passthrough(c, __func__)
-#else
int vchan_sync(struct pcm_channel *);
-#endif
#define VCHAN_SYNC_REQUIRED(c) \
(((c)->flags & CHN_F_VIRTUAL) && (((c)->flags & CHN_F_DIRTY) || \
- sndbuf_getfmt((c)->bufhard) != (c)->parentchannel->format || \
- sndbuf_getspd((c)->bufhard) != (c)->parentchannel->speed))
+ (c)->bufhard->fmt != (c)->parentchannel->format || \
+ (c)->bufhard->spd != (c)->parentchannel->speed))
void vchan_initsys(device_t);