From owner-freebsd-hackers Tue Aug 6 4:10:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC88037B400 for ; Tue, 6 Aug 2002 04:10:45 -0700 (PDT) Received: from sdf-eu.org (sdf-eu.org [207.202.214.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EC6E43E75 for ; Tue, 6 Aug 2002 04:10:45 -0700 (PDT) (envelope-from gmt@sdf-eu.org) Received: (from gmt@localhost) by sdf-eu.org (8.11.3/8.11.6) id g76BAaZ10388 for freebsd-hackers@freebsd.org; Tue, 6 Aug 2002 11:10:36 GMT Date: Tue, 6 Aug 2002 11:10:36 GMT From: Max Yuzhakov Message-Id: <200208061110.g76BAaZ10388@sdf-eu.org> To: freebsd-hackers@freebsd.org Subject: dsp ioctl strange code Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! Why in dsp ioctl code in /sys/dev/sound/pcm/dsp.c (dsp_ioctl function) on case AIOSSIZE switch statement (ioctl AIOSSIZE intended for set some size of internal driver structure) input data is zeroed on first step of case statement. Why i can't realy set this size? case AIOSSIZE: /* set the current blocksize */ { struct snd_size *p = (struct snd_size *)arg; p->play_size = 0; p->rec_size = 0; if (wrch) { CHN_LOCK(wrch); chn_setblocksize(wrch, 2, p->play_size); p->play_size = sndbuf_getblksz(wrch->bufsoft); CHN_UNLOCK(wrch); } if (rdch) { CHN_LOCK(rdch); chn_setblocksize(rdch, 2, p->rec_size); p->rec_size = sndbuf_getblksz(rdch->bufsoft); CHN_UNLOCK(rdch); } } break; This is code fragment for RELENG_4_6 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message