From owner-freebsd-multimedia Fri Jan 29 16:03:40 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA05588 for freebsd-multimedia-outgoing; Fri, 29 Jan 1999 16:03:40 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from chen.ml.org (luoqi.watermarkgroup.com [207.202.73.170]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA05574 for ; Fri, 29 Jan 1999 16:03:36 -0800 (PST) (envelope-from luoqi@chen.ml.org) Received: (from luoqi@localhost) by chen.ml.org (8.9.2/8.9.1) id TAA01467; Fri, 29 Jan 1999 19:03:33 -0500 (EST) (envelope-from luoqi) Date: Fri, 29 Jan 1999 19:03:33 -0500 (EST) From: Luoqi Chen Message-Id: <199901300003.TAA01467@chen.ml.org> To: luoqi@chen.ml.org, tristan@mpegtv.com Subject: Re: MpegTV volume control problem Cc: multimedia@FreeBSD.ORG In-Reply-To: <36B20C6D.2B04BDC1@mpegtv.com> Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Luoqi Chen wrote: > > > > I'm having trouble adjusting volume while mtv is playing. No matter what > > value I set the volume to (either using mtv's volume control or using > > /usr/sbin/mixer), mtv immediately sets it back to 5:0. I had to remove > > the mixer node from /dev in order to hear the audio. I tried both Luigi's > > pcm driver and the old driver, same result. Did anybody else have the same > > experience? Is this a mpegtv bug or a problem with our system (either > > the sound driver or the linux emulation layer)? > > > > -lq > > it is not an mpegtv bug: volume control works well with all > the native linux versions > (linux-x86-libc5, linux-x86-glibc, linux-alpha...). > > note that after setting the volume, the player > asks (every second or so) the current > volume settings to the mixer with the OSS > ioctl call MIXER_READ(SOUND_MIXER_VOLUME) > or MIXER_READ(SOUND_MIXER_PCM). > > the player does that in order to reflect the current > volume setting, in case they are changed by some other source. > > If those ioctl do not work properly, mtv would behave > exactly has you describe. > > -t > It's a bug in our linux emulation layer, the direction bits of the ioctl word are ignored, so the read ioctls behaved exactly like the writes. I have included the fix in my read-raw-cd-data patch on http://www.freebsd.org/~luoqi. Tristan, you may add FreeBSD as another OS supported by mtv to play VCDs :) I intend to commit this patch as soon as it is reviewed. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message