Subject: kern/12053: BSDi audio ioctl code needs work
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@smaug.fh-regensburg.de>
List: netbsd-bugs
Date: 01/26/2001 15:49:22
>Number:         12053
>Category:       kern
>Synopsis:       BSDi audio ioctl code needs work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 26 15:52:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        -current as of ~Jan15 2001
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Environment:
	
NetBSD noon 1.5Q NetBSD 1.5Q (NOON) #19: Mon Jan 22 04:09:05 CET 2001     feyrer@noon:/usr/cvs/src-current/sys/arch/i386/compile/NOON i386


>Description:
	When running the BSDi binary for mtv, it refuses to play sound:

  2923 mtvp     NAMI  "/dev/mixer"
  2923 mtvp     RET   open 3
  2923 mtvp     CALL  ioctl(0x3,_IOR('M',0,0x4),0xbfbb71d8)  
  2923 mtvp     RET   ioctl -1 errno 22 Invalid argument
  ...
  2923 mtvp     NAMI  "/dev/audio"
  2923 mtvp     RET   open 6
  2923 mtvp     CALL  ioctl(0x6,_IOR('P',0xf,0x4),0xbfbb7124)
  2923 mtvp     RET   ioctl -1 errno 22 Invalid argument
  2923 mtvp     CALL  ioctl(0x6,_IOW('P',0x10,0x4),0xbfbb7120)
  2923 mtvp     RET   ioctl -1 errno 22 Invalid argument
  2923 mtvp     CALL  ioctl(0x6,_IOWR('P',0xa,0x4),0xbfbb70f0)
  2923 mtvp     RET   ioctl -1 errno 22 Invalid argument


>How-To-Repeat:
	Get ftp://ftp.mpegtv.com/pub/mpeg/mpegtv/player/unsupported/x86-bsdi-bsdos/mtv-1.0.6.0.tgz
	setenv MTVP_AUDIO_DEVICE_MAIN /dev/audio
	mtvp some.mpeg

	The same happens with MTVP_AUDIO_DEVICE_MAIN=/dev/sound


>Fix:
	Unknown, yet much anticipated.
>Release-Note:
>Audit-Trail:
>Unformatted: