Deleted Added
full compact
dsp.c (142716) dsp.c (144389)
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
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

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

24 * SUCH DAMAGE.
25 */
26
27#include <sys/param.h>
28#include <sys/queue.h>
29
30#include <dev/sound/pcm/sound.h>
31
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
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

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

24 * SUCH DAMAGE.
25 */
26
27#include <sys/param.h>
28#include <sys/queue.h>
29
30#include <dev/sound/pcm/sound.h>
31
32SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/dsp.c 142716 2005-02-27 22:16:30Z phk $");
32SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/dsp.c 144389 2005-03-31 12:19:44Z phk $");
33
34#define OLDPCM_IOCTL
35
36static d_open_t dsp_open;
37static d_close_t dsp_close;
38static d_read_t dsp_read;
39static d_write_t dsp_write;
40static d_ioctl_t dsp_ioctl;

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

1169 pdev = pcm_chan->audio_devt;
1170 break;
1171 default:
1172 panic("Unknown devtype %d", devtype);
1173 }
1174
1175 if ((pdev->si_drv1 == NULL) && (pdev->si_drv2 == NULL)) {
1176 *dev = pdev;
33
34#define OLDPCM_IOCTL
35
36static d_open_t dsp_open;
37static d_close_t dsp_close;
38static d_read_t dsp_read;
39static d_write_t dsp_write;
40static d_ioctl_t dsp_ioctl;

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

1169 pdev = pcm_chan->audio_devt;
1170 break;
1171 default:
1172 panic("Unknown devtype %d", devtype);
1173 }
1174
1175 if ((pdev->si_drv1 == NULL) && (pdev->si_drv2 == NULL)) {
1176 *dev = pdev;
1177 dev_ref(*dev);
1177 return;
1178 }
1179 }
1180}
1181
1182static void
1183dsp_sysinit(void *p)
1184{

--- 15 unchanged lines hidden ---
1178 return;
1179 }
1180 }
1181}
1182
1183static void
1184dsp_sysinit(void *p)
1185{

--- 15 unchanged lines hidden ---