Deleted Added
full compact
uaudio_pcm.c (256281) uaudio_pcm.c (280591)
1/* $FreeBSD: stable/10/sys/dev/sound/usb/uaudio_pcm.c 246128 2013-01-30 18:01:20Z sbz $ */
1/* $FreeBSD: stable/10/sys/dev/sound/usb/uaudio_pcm.c 280591 2015-03-25 13:14:25Z hselasky $ */
2
3/*-
4 * Copyright (c) 2000-2002 Hiroyuki Aizu <aizu@navi.org>
5 * Copyright (c) 2006 Hans Petter Selasky
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 66 unchanged lines hidden (view full) ---

76ua_chan_setfragments(kobj_t obj, void *data, uint32_t blocksize, uint32_t blockcount)
77{
78 return (uaudio_chan_set_param_fragments(data, blocksize, blockcount));
79}
80
81static int
82ua_chan_trigger(kobj_t obj, void *data, int go)
83{
2
3/*-
4 * Copyright (c) 2000-2002 Hiroyuki Aizu <aizu@navi.org>
5 * Copyright (c) 2006 Hans Petter Selasky
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 66 unchanged lines hidden (view full) ---

76ua_chan_setfragments(kobj_t obj, void *data, uint32_t blocksize, uint32_t blockcount)
77{
78 return (uaudio_chan_set_param_fragments(data, blocksize, blockcount));
79}
80
81static int
82ua_chan_trigger(kobj_t obj, void *data, int go)
83{
84 if (!PCMTRIG_COMMON(go)) {
85 return (0);
84 if (PCMTRIG_COMMON(go)) {
85 if (go == PCMTRIG_START) {
86 uaudio_chan_start(data);
87 } else {
88 uaudio_chan_stop(data);
89 }
86 }
90 }
87 if (go == PCMTRIG_START) {
88 return (uaudio_chan_start(data));
89 } else {
90 return (uaudio_chan_stop(data));
91 }
91 return (0);
92}
93
94static uint32_t
95ua_chan_getptr(kobj_t obj, void *data)
96{
97 return (uaudio_chan_getptr(data));
98}
99

--- 143 unchanged lines hidden ---
92}
93
94static uint32_t
95ua_chan_getptr(kobj_t obj, void *data)
96{
97 return (uaudio_chan_getptr(data));
98}
99

--- 143 unchanged lines hidden ---