channel_if.m (162588) | channel_if.m (167645) |
---|---|
1#- 2# KOBJ 3# 4# Copyright (c) 2000 Cameron Grant <cg@freebsd.org> 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# | 1#- 2# KOBJ 3# 4# Copyright (c) 2000 Cameron Grant <cg@freebsd.org> 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# |
28# $FreeBSD: head/sys/dev/sound/pcm/channel_if.m 162588 2006-09-23 20:45:47Z netchild $ | 28# $FreeBSD: head/sys/dev/sound/pcm/channel_if.m 167645 2007-03-16 17:16:24Z ariff $ |
29# 30 31#include <dev/sound/pcm/sound.h> 32 33INTERFACE channel; 34 35CODE { 36 --- 41 unchanged lines hidden (view full) --- 78 79 static int 80 channel_nogetrates(kobj_t obj, void *data, int **rates) 81 { 82 *rates = NULL; 83 return 0; 84 } 85 | 29# 30 31#include <dev/sound/pcm/sound.h> 32 33INTERFACE channel; 34 35CODE { 36 --- 41 unchanged lines hidden (view full) --- 78 79 static int 80 channel_nogetrates(kobj_t obj, void *data, int **rates) 81 { 82 *rates = NULL; 83 return 0; 84 } 85 |
86 static int 87 channel_nosetfragments(kobj_t obj, void *data, u_int32_t blocksize, u_int32_t blockcount) 88 { 89 return 0; 90 } 91 |
|
86}; 87 88METHOD void* init { 89 kobj_t obj; 90 void *devinfo; 91 struct snd_dbuf *b; 92 struct pcm_channel *c; 93 int dir; --- 33 unchanged lines hidden (view full) --- 127}; 128 129METHOD u_int32_t setblocksize { 130 kobj_t obj; 131 void *data; 132 u_int32_t blocksize; 133}; 134 | 92}; 93 94METHOD void* init { 95 kobj_t obj; 96 void *devinfo; 97 struct snd_dbuf *b; 98 struct pcm_channel *c; 99 int dir; --- 33 unchanged lines hidden (view full) --- 133}; 134 135METHOD u_int32_t setblocksize { 136 kobj_t obj; 137 void *data; 138 u_int32_t blocksize; 139}; 140 |
141METHOD int setfragments { 142 kobj_t obj; 143 void *data; 144 u_int32_t blocksize; 145 u_int32_t blockcount; 146} DEFAULT channel_nosetfragments; 147 |
|
135METHOD int trigger { 136 kobj_t obj; 137 void *data; 138 int go; 139}; 140 141METHOD u_int32_t getptr { 142 kobj_t obj; --- 64 unchanged lines hidden --- | 148METHOD int trigger { 149 kobj_t obj; 150 void *data; 151 int go; 152}; 153 154METHOD u_int32_t getptr { 155 kobj_t obj; --- 64 unchanged lines hidden --- |