Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/dev/sound/pci/t4dwave.c 71503 2001-01-24 01:20:04Z cg $
---
> * $FreeBSD: head/sys/dev/sound/pci/t4dwave.c 74763 2001-03-24 23:10:29Z cg $
55,56c55,56
< snd_dbuf *buffer;
< pcm_channel *channel;
---
> struct snd_dbuf *buffer;
> struct pcm_channel *channel;
62,63c62,63
< snd_dbuf *buffer;
< pcm_channel *channel;
---
> struct snd_dbuf *buffer;
> struct pcm_channel *channel;
78a79,80
> void *lock;
>
97c99
< static pcmchan_caps tr_reccaps = {4000, 48000, tr_recfmt, 0};
---
> static struct pcmchan_caps tr_reccaps = {4000, 48000, tr_recfmt, 0};
110c112
< static pcmchan_caps tr_playcaps = {4000, 48000, tr_playfmt, 0};
---
> static struct pcmchan_caps tr_playcaps = {4000, 48000, tr_playfmt, 0};
170a173
> snd_mtxlock(tr->lock);
173a177
> snd_mtxunlock(tr->lock);
202a207
> snd_mtxlock(tr->lock);
207a213
> snd_mtxunlock(tr->lock);
252a259
> snd_mtxlock(tr->lock);
262a270
> snd_mtxunlock(tr->lock);
338a347
> snd_mtxlock(tr->lock);
341a351
> snd_mtxunlock(tr->lock);
349a360
> snd_mtxlock(tr->lock);
352a364
> snd_mtxunlock(tr->lock);
399c411
< trpchan_init(kobj_t obj, void *devinfo, snd_dbuf *b, pcm_channel *c, int dir)
---
> trpchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
483c495
< static pcmchan_caps *
---
> static struct pcmchan_caps *
505c517
< trrchan_init(kobj_t obj, void *devinfo, snd_dbuf *b, pcm_channel *c, int dir)
---
> trrchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir)
603c615
< static pcmchan_caps *
---
> static struct pcmchan_caps *
649,651c661
< } else
< printf("same bufhalf\n");
<
---
> }
718a729
> tr->lock = snd_mtxcreate(device_get_nameunit(dev));
748,749c759
< if (!tr->irq ||
< bus_setup_intr(dev, tr->irq, INTR_TYPE_TTY, tr_intr, tr, &tr->ih)) {
---
> if (!tr->irq || snd_setup_intr(dev, tr->irq, INTR_MPSAFE, tr_intr, tr, &tr->ih)) {
780a791
> if (tr->lock) snd_mtxfree(tr->lock);
799a811
> snd_mtxfree(tr->lock);
817c829
< sizeof(snddev_info),
---
> sizeof(struct snddev_info),