Re: i810 audio patch

Nathan Bryant
2001-12-05T23:58:08Z

> Doug Ledford wrote:
>
>> Can you add a debug check to update_lvi()? Something like:
>>
>> #ifdef DEBUG_MMAP
>> if (dmabuf->count > dmabuf->fragsize && inb(port+OFF_CIV) == x)
>> printk(KERN_DEBUG,"i810_audio: update_lvi - CIV ==
>> LVI\n");
>> #endif
>>
>> and see if that triggers with the original mmap code?
>
>
> I've narrowed it down a little more.. the above does not trigger. but
> i've added some other printk's and the sequence of events goes like this:

sorry... syslog.conf was not configured for DEBUG level...

it actually looks like this

Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR: count = 0
Dec 5 18:55:17 lasn-001 kernel: GETOPTR: setting swptr 0, hwptr=65536
Dec 5 18:55:17 lasn-001 kernel: i810_audio: update_lvi - CIV == LVI
Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR 65536, 4, 65536, 65536
Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR: count = 65536
Dec 5 18:55:17 lasn-001 kernel: DAC HWP 65536,65536,0
Dec 5 18:55:17 lasn-001 kernel: GETOPTR: setting swptr 0, hwptr=65536
Dec 5 18:55:17 lasn-001 kernel: i810_audio: update_lvi - CIV == LVI
Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR 65536, 0, 65536, 65536
Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR: count = 65536
Dec 5 18:55:17 lasn-001 kernel: DAC HWP 65536,65536,0
Dec 5 18:55:17 lasn-001 kernel: GETOPTR: setting swptr 0, hwptr=65536
Dec 5 18:55:17 lasn-001 kernel: i810_audio: update_lvi - CIV == LVI
Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR 65536, 0, 65536, 65536
Dec 5 18:55:17 lasn-001 kernel: SNDCTL_DSP_GETOPTR: count = 65536
Dec 5 18:55:17 lasn-001 kernel: DAC HWP 65536,65536,0