Deleted Added
full compact
sndstat.c (193640) sndstat.c (201145)
1/*-
2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org>
3 * Copyright (c) 2001 Cameron Grant <cg@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

29#include "opt_snd.h"
30#endif
31
32#include <dev/sound/pcm/sound.h>
33#include <dev/sound/pcm/pcm.h>
34#include <dev/sound/version.h>
35#include <sys/sx.h>
36
1/*-
2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org>
3 * Copyright (c) 2001 Cameron Grant <cg@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

29#include "opt_snd.h"
30#endif
31
32#include <dev/sound/pcm/sound.h>
33#include <dev/sound/pcm/pcm.h>
34#include <dev/sound/version.h>
35#include <sys/sx.h>
36
37SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/sndstat.c 193640 2009-06-07 19:12:08Z ariff $");
37SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/sndstat.c 201145 2009-12-28 22:56:30Z antoine $");
38
39#define SS_TYPE_MODULE 0
40#define SS_TYPE_FIRST 1
41#define SS_TYPE_PCM 1
42#define SS_TYPE_MIDI 2
43#define SS_TYPE_SEQUENCER 3
44#define SS_TYPE_LAST 3
45

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

74#define SNDSTAT_PID_SET(x, y) (x)->si_drv1 = (void *)((intptr_t)(y))
75#define SNDSTAT_FLUSH() do { \
76 if (sndstat_bufptr != -1) { \
77 sbuf_delete(&sndstat_sbuf); \
78 sndstat_bufptr = -1; \
79 } \
80} while (0)
81
38
39#define SS_TYPE_MODULE 0
40#define SS_TYPE_FIRST 1
41#define SS_TYPE_PCM 1
42#define SS_TYPE_MIDI 2
43#define SS_TYPE_SEQUENCER 3
44#define SS_TYPE_LAST 3
45

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

74#define SNDSTAT_PID_SET(x, y) (x)->si_drv1 = (void *)((intptr_t)(y))
75#define SNDSTAT_FLUSH() do { \
76 if (sndstat_bufptr != -1) { \
77 sbuf_delete(&sndstat_sbuf); \
78 sndstat_bufptr = -1; \
79 } \
80} while (0)
81
82static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(none);
82static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(sndstat_devlist);
83
84int snd_verbose = 1;
85TUNABLE_INT("hw.snd.verbose", &snd_verbose);
86
87#ifdef SND_DEBUG
88static int
89sysctl_hw_snd_sndstat_pid(SYSCTL_HANDLER_ARGS)
90{

--- 359 unchanged lines hidden ---
83
84int snd_verbose = 1;
85TUNABLE_INT("hw.snd.verbose", &snd_verbose);
86
87#ifdef SND_DEBUG
88static int
89sysctl_hw_snd_sndstat_pid(SYSCTL_HANDLER_ARGS)
90{

--- 359 unchanged lines hidden ---