summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/usb/uaudio_pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/usb/uaudio_pcm.c')
-rw-r--r--sys/dev/sound/usb/uaudio_pcm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/sound/usb/uaudio_pcm.c b/sys/dev/sound/usb/uaudio_pcm.c
index bd00a01..10e8cc4 100644
--- a/sys/dev/sound/usb/uaudio_pcm.c
+++ b/sys/dev/sound/usb/uaudio_pcm.c
@@ -81,14 +81,14 @@ ua_chan_setfragments(kobj_t obj, void *data, uint32_t blocksize, uint32_t blockc
static int
ua_chan_trigger(kobj_t obj, void *data, int go)
{
- if (!PCMTRIG_COMMON(go)) {
- return (0);
- }
- if (go == PCMTRIG_START) {
- return (uaudio_chan_start(data));
- } else {
- return (uaudio_chan_stop(data));
+ if (PCMTRIG_COMMON(go)) {
+ if (go == PCMTRIG_START) {
+ uaudio_chan_start(data);
+ } else {
+ uaudio_chan_stop(data);
+ }
}
+ return (0);
}
static uint32_t
OpenPOWER on IntegriCloud