Subject: port-i386/12695: yds doesn't play audio data, but cd
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@smaug.fh-regensburg.de>
List: netbsd-bugs
Date: 04/19/2001 03:14:06
>Number:         12695
>Category:       port-i386
>Synopsis:       yds doesn't play audio data, but cd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 18 18:15:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        20010418
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Environment:
	
System: i386/1.5U from 20010418


>Description:

I have a problem with the recently added yds driver on i386/-current
as of Apr 18th. Hardware is a Toshiba Satellite Pro 4600.
Symptoms are:

 * 'cdplay play' works after 'mixerctl -w inputs.cd.mute=off'
 * from audioctl manpage:

	noon%            audioctl -w play=44100,2,16,slinear_le
	audioctl: set failed: Invalid argument
	noon%            audioctl -w play.sample_rate=11025
	audioctl: set failed: Invalid argument

 * and (most importantly, for me), mpg123 doesn't work. Error is:
   "No supported rate found!" See below for full output of 'mpg123
   -vvv', which shows that NO rate at all is offered.


dmesg is:

	auich0 at pci0 dev 31 function 5: i82801BA (ICH2) AC-97 Audio
	auich0: interrupting at irq 11
	auich0: YMH0 codec; 18 bit DAC, no 3D stereo
	audio0 at auich0: full duplex, mmap, independent


Output from audioctl -a, mixerctl -va, mpg123 -vvv and full dmesg
output are attached below. Please let me know if I can test any
patches or provide more data!


 - Hubert

audioctl -a output:

name=ICH2 AC97
version=0x03
config=auich0
encodings=
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=384
hiwat=170
lowat=127
monitor_gain=0
mode=
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=191
record.balance=32
record.port=0x1
record.avail_ports=0x7
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0


mixerctl -va output:

outputs.master=255,255 volume
outputs.master.mute=off  [ off on ]
outputs.mono=255 volume
outputs.mono.mute=on  [ off on ]
outputs.mono.source=mixerout  [ mixerout mic ]
outputs.headphones=255,255 volume
outputs.headphones.mute=off  [ off on ]
outputs.tone=143,143 volume
inputs.speaker=127 volume
inputs.speaker.mute=off  [ off on ]
inputs.phone=191 volume
inputs.phone.mute=on  [ off on ]
inputs.mic=191 volume
inputs.mic.mute=on  [ off on ]
inputs.mic.preamp=off  [ off on ]
inputs.mic.source=mic0  [ mic0 mic1 ]
inputs.line=191,191 volume
inputs.line.mute=on  [ off on ]
inputs.cd=191,191 volume
inputs.cd.mute=on  [ off on ]
inputs.video=191,191 volume
inputs.video.mute=on  [ off on ]
inputs.aux=191,191 volume
inputs.aux.mute=on  [ off on ]
inputs.dac=191,191 volume
inputs.dac.mute=off  [ off on ]
record.source=mic  [ mic cd video aux line mixerout mixeroutmono phone ]
record.volume=255,255 volume
record.volume.mute=off  [ off on ]
record.mic=0 volume
record.mic.mute=off  [ off on ]
outputs.loudness=off  [ off on ]
outputs.spatial=off  [ off on ]
outputs.spatial.center=0 volume
outputs.spatial.depth=0 volume


mpg123 -vvv somefile.mp3 output:

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Audio capabilities:
        |  s16  |  u16  |  u8   |  s8   | ulaw  | alaw  |
 --------------------------------------------------------
  8000  |       |       |       |       |       |       |
 11025  |       |       |       |       |       |       |
 12000  |       |       |       |       |       |       |
 16000  |       |       |       |       |       |       |
 22050  |       |       |       |       |       |       |
 24000  |       |       |       |       |       |       |
 32000  |       |       |       |       |       |       |
 44100  |       |       |       |       |       |       |
 48000  |       |       |       |       |       |       |

Using memory mapped IO for this stream.
Title  : 'Are You Ready For Some Footba  Artist: ABC
Album  : sports                          Year  :     
Comment:                                 Genre : Unknown

Directory: /home/feyrer/work/mp3/
Playing MPEG stream from SportsABC - 'Are You Ready For Some Football' Theme(Monday Night Football).mp3 ...
]0;SportsABC - 'Are You Ready For Some Football' Theme(Monday Night Football).mp3Junk at the beginning 49443303
MPEG 1.0, Layer: III, Freq: 44100, mode: Joint-Stereo, modext: 3, BPF : 417
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: 128 Kbits/s, Extension value: 0
No supported rate found!


full dmesg output:

NetBSD 1.5U (GENERIC) #1: Tue Apr 17 23:18:15 CEST 2001
    feyrer@noon:/usr/cvs/src-current/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Coppermine) (686-class), 997.01 MHz
cpu0: I-cache 16K 32b/line 4-way, D-cache 16K 32b/line 2/4-way
cpu0: L2 cache 256K 32b/line 8-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR,XMM>
total memory = 126 MB
avail memory = 112 MB
using 1651 buffers containing 6604 KB of memory
BIOS32 rev. 0 found at 0xfbf88
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82815 Hub (rev. 0x11)
pchb0: random number generator enabled
ppb0 at pci0 dev 1 function 0: Intel 82815 AGP (rev. 0x11)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Trident Microsystems CyberBlade (rev. 0x63)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0: Intel product 0x2448 (rev. 0x03)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
fxp0 at pci2 dev 8 function 0: Intel i82562 Ethernet, rev 3
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:00:39:01:df:38, 10/100 Mb/s
ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x005500, model 0x0033, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Texas Instruments PCI1410 PCI-CardBus Bridge (CardBus bridge, revision 0x01) at pci2 dev 12 function 0 not configured
Toshiba ToPIC95B CardBus-PCI Bridge (CardBus bridge, revision 0x07) at pci2 dev 13 function 0 not configured
Toshiba ToPIC95B CardBus-PCI Bridge (CardBus bridge, revision 0x07) at pci2 dev 13 function 1 not configured
pcib0 at pci0 dev 31 function 0
pcib0: Intel product 0x244c (rev. 0x03)
pciide0 at pci0 dev 31 function 1: Intel 82801BAM IDE Controller (ICH2) (rev. 0x03)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9590 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19640880 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <CD-224E-BA, , 7.7C> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
uhci0 at pci0 dev 31 function 2: Intel 82801BA USB Controller (rev. 0x03)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 31 function 4: Intel 82801BA USB Controller (rev. 0x03)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
auich0 at pci0 dev 31 function 5: i82801BA (ICH2) AC-97 Audio
auich0: interrupting at irq 11
auich0: YMH0 codec; 18 bit DAC, no 3D stereo
audio0 at auich0: full duplex, mmap, independent
Intel 82801BA AC-97 PCI Modem (modem communications, revision 0x03) at pci0 dev 31 function 6 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask ef6d netmask ef6d ttymask ffef
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
>How-To-Repeat:
	Boot a -current kernel with yds on a Toshiba Satellite Pro 4600 and
	try to play some mp3s.

>Fix:
	yes please.
>Release-Note:
>Audit-Trail:
>Unformatted: