dsp.c (130585) | dsp.c (130640) |
---|---|
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 130585 2004-06-16 09:47:26Z phk $"); | 32SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/dsp.c 130640 2004-06-17 17:16:53Z 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; --- 1077 unchanged lines hidden (view full) --- 1118{ 1119 struct cdev *pdev; 1120 struct snddev_info *pcm_dev; 1121 struct snddev_channel *pcm_chan; 1122 int i, unit, devtype; 1123 int devtypes[3] = {SND_DEV_DSP, SND_DEV_DSP16, SND_DEV_AUDIO}; 1124 char *devnames[3] = {"dsp", "dspW", "audio"}; 1125 | 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; --- 1077 unchanged lines hidden (view full) --- 1118{ 1119 struct cdev *pdev; 1120 struct snddev_info *pcm_dev; 1121 struct snddev_channel *pcm_chan; 1122 int i, unit, devtype; 1123 int devtypes[3] = {SND_DEV_DSP, SND_DEV_DSP16, SND_DEV_AUDIO}; 1124 char *devnames[3] = {"dsp", "dspW", "audio"}; 1125 |
1126 if (*dev != NODEV) | 1126 if (*dev != NULL) |
1127 return; 1128 if (pcm_devclass == NULL) 1129 return; 1130 1131 devtype = 0; 1132 unit = -1; 1133 for (i = 0; (i < 3) && (unit == -1); i++) { 1134 devtype = devtypes[i]; --- 56 unchanged lines hidden --- | 1127 return; 1128 if (pcm_devclass == NULL) 1129 return; 1130 1131 devtype = 0; 1132 unit = -1; 1133 for (i = 0; (i < 3) && (unit == -1); i++) { 1134 devtype = devtypes[i]; --- 56 unchanged lines hidden --- |