Deleted Added
full compact
dsp.c (89684) dsp.c (89774)
1/*
2 * Copyright (c) 1999 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

--- 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 <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

--- 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 89684 2002-01-23 04:44:03Z cg $");
32SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/dsp.c 89774 2002-01-25 04:14:12Z scottl $");
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;

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

961 case SNDCTL_DSP_SETSYNCRO:
962 /* undocumented */
963
964 case SNDCTL_DSP_SUBDIVIDE:
965 case SOUND_PCM_WRITE_FILTER:
966 case SOUND_PCM_READ_FILTER:
967 /* dunno what these do, don't sound important */
968 default:
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;

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

961 case SNDCTL_DSP_SETSYNCRO:
962 /* undocumented */
963
964 case SNDCTL_DSP_SUBDIVIDE:
965 case SOUND_PCM_WRITE_FILTER:
966 case SOUND_PCM_READ_FILTER:
967 /* dunno what these do, don't sound important */
968 default:
969 DEB(printf("default ioctl chan%d fn 0x%08lx fail\n", chan, cmd));
969 DEB(printf("default ioctl fn 0x%08lx fail\n", cmd));
970 ret = EINVAL;
971 break;
972 }
973 relchns(i_dev, rdch, wrch, 0);
974 splx(s);
975 return ret;
976}
977

--- 187 unchanged lines hidden ---
970 ret = EINVAL;
971 break;
972 }
973 relchns(i_dev, rdch, wrch, 0);
974 splx(s);
975 return ret;
976}
977

--- 187 unchanged lines hidden ---