diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2002-10-17 03:45:34 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2002-10-17 03:45:34 +0000 |
| commit | e9be79d69cc2725f5fb423b71d3c83c1d8767874 (patch) | |
| tree | 2e8e62401763c012a117afe650ea0c35c79d1149 /sys/dev | |
| parent | fb8085a2816b3e9f125e38ac0f1c0fe76881b95c (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sound/pci/t4dwave.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/t4dwave.c b/sys/dev/sound/pci/t4dwave.c index e62f90e6726ac..c34fe398a6fe9 100644 --- a/sys/dev/sound/pci/t4dwave.c +++ b/sys/dev/sound/pci/t4dwave.c @@ -187,6 +187,8 @@ tr_rdcd(kobj_t obj, void *devinfo, int regno) return -1; } + i = j = 0; + regno &= 0x7f; snd_mtxlock(tr->lock); if (tr->type == ALI_PCI_ID) { @@ -238,6 +240,8 @@ tr_wrcd(kobj_t obj, void *devinfo, int regno, u_int32_t data) return -1; } + i = 0; + regno &= 0x7f; #if 0 printf("tr_wrcd: reg %x was %x", regno, tr_rdcd(devinfo, regno)); |
