sndstat.c (107237) | sndstat.c (109623) |
---|---|
1/* 2 * Copyright (c) 2001 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/pcm/sound.h> 28#include <dev/sound/pcm/vchan.h> 29 | 1/* 2 * Copyright (c) 2001 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/pcm/sound.h> 28#include <dev/sound/pcm/vchan.h> 29 |
30SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/sndstat.c 107237 2002-11-25 17:17:43Z cg $"); | 30SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/sndstat.c 109623 2003-01-21 08:56:16Z alfred $"); |
31 32#define SS_TYPE_MODULE 0 33#define SS_TYPE_FIRST 1 34#define SS_TYPE_PCM 1 35#define SS_TYPE_MIDI 2 36#define SS_TYPE_SEQUENCER 3 37#define SS_TYPE_LAST 3 38 --- 178 unchanged lines hidden (view full) --- 217 type = SS_TYPE_SEQUENCER; 218 else 219 return EINVAL; 220 } else { 221 type = SS_TYPE_MODULE; 222 unit = -1; 223 } 224 | 31 32#define SS_TYPE_MODULE 0 33#define SS_TYPE_FIRST 1 34#define SS_TYPE_PCM 1 35#define SS_TYPE_MIDI 2 36#define SS_TYPE_SEQUENCER 3 37#define SS_TYPE_LAST 3 38 --- 178 unchanged lines hidden (view full) --- 217 type = SS_TYPE_SEQUENCER; 218 else 219 return EINVAL; 220 } else { 221 type = SS_TYPE_MODULE; 222 unit = -1; 223 } 224 |
225 ent = malloc(sizeof *ent, M_DEVBUF, M_ZERO | M_WAITOK); | 225 ent = malloc(sizeof *ent, M_DEVBUF, M_ZERO | 0); |
226 if (!ent) 227 return ENOSPC; 228 229 ent->dev = dev; 230 ent->str = str; 231 ent->type = type; 232 ent->unit = unit; 233 ent->handler = handler; --- 167 unchanged lines hidden --- | 226 if (!ent) 227 return ENOSPC; 228 229 ent->dev = dev; 230 ent->str = str; 231 ent->type = type; 232 ent->unit = unit; 233 ent->handler = handler; --- 167 unchanged lines hidden --- |