Sound code question... relative to SB16 problems

Trever Adams (arabian@onramp.net)
Wed, 29 Apr 1998 15:36:33 +0000


> @@ -732,7 +732,8 @@
> vma->vm_page_prot))
> return -EAGAIN;
>
> - vma->vm_dentry = dget(file->f_dentry);
> + vma->vm_file = file;
> + file->f_count++;
>
> dmap->mapping_flags |= DMA_MAP_MAPPED;

This is a section of the patch for 2.1.89. It is from the soundcard.c.
This seems to be the kernel version where all things SB16 started to
fail (just the wave/pcm actually).

file->f_count++;?? No where is there a decrement in any .c file in the
drivers/sound directory. Also, I may be premature here, but I failed to
find where it was declared/defined or allocated. There seem to be a few
of these in the sound card stuff. It seems some may lead to memory
leaks and other problems.

Please forgive me if these are way out on mars, but I am trying to
figure out why myself and others are having these crazy problems, and I
am starting to believe they are in the sound card things (To Alan Cox I
believe it was, no, I never did try compiling 88 with .94 sound stuff,
haven't had much time, and I would rather play with code than compile).
So, I am trying to learn how it works and comment on it as I can.

Trever Adams
arabian@onramp.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu