NetBSD Problem Report #42055

From asau@inbox.ru  Sat Sep 12 21:40:23 2009
Return-Path: <asau@inbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 9BA5363C06A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Sep 2009 21:40:23 +0000 (UTC)
Message-Id: <873a6ru9j1.fsf@inbox.ru>
Date: Sun, 13 Sep 2009 01:40:18 +0400
From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@gnats.NetBSD.org
Subject: hdaudio doesn't work on Dell Inspiron 6400

>Number:         42055
>Category:       kern
>Synopsis:       hdaudio doesn't work on Dell Inspiron 6400
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tech-multimedia@NetBSD.org
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 12 21:45:00 +0000 2009
>Last-Modified:  Wed Nov 18 21:05:01 +0000 2009
>Originator:     Aleksej Saushev
>Release:        NetBSD 5.99.17
>Organization:
>Environment:
System: NetBSD asau.local 5.99.17 NetBSD 5.99.17 (KERN) #0: Sat Sep 12 12:41:14 MSD 2009 asau@asau.local:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	When replacing azalia with hdaudio per instructions,
	audio stops working. dmesg shows undocumented "hdvsmfg at hdaudio0"

hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 21
hdaudio0: High Definition Audio version 1.0
hdaudio0: OSS 4 ISS 4 BSS 0 SDO 0 64-bit
hdaudio0: using 1024 byte CORB (cap 4)
hdaudio0: using 2048 byte RIRB (cap 4)
hdaudio0: Codec00: 8384:7690 HDA 1.0 rev 34 stepping 1
hdafg0 at hdaudio0 vendor 0x8384 product 0x7690 nid 0x01 (firmware configuration)
hdafg0: parsing widgets
hdafg0: afg start 02 end 15 nwidgets 19
hdafg0: powering up widgets
hdafg0: afg widgets 0xcb87c004-0xcb87d434
hdafg0: parsing controls
hdafg0: disabling non-audio devices
hdafg0: disabling useless devices
hdafg0: parsing associations
hdafg0:   count present associations
hdafg0:   maxassocs 2
hdafg0:   allocating memory
hdafg0:   scan associations, skipping as=0
hdafg0:   all done
hdafg0: building tree
hdafg0: disabling unassociated pins
hdafg0: disabling unselected pins
hdafg0: disabling useless devices
hdafg0: disabling cross-associated pins
hdafg0: disabling useless devices
hdafg0: assigning mixer names to sound sources
hdafg0: assigning mixers to device tree
hdafg0: preparing pin controls
hdafg0: commiting settings
hdafg0: setup jack sensing
hdafg0: building mixer controls
hdafg0: DAC0:02, Analog HP Out: Jack (Black, 0D)
hdafg0: ADC1:03, Analog Mic In: Jack (Black, 10)
hdafg0: configuring encodings
hdafg0: 2ch/2ch 44100Hz-192000Hz 16/16 20/32 24/32
hdafg0: reserving streams
hdafg0: connecting streams
hdafg0: attaching audio device
audio0 at hdafg0: full duplex, independent
hdaudio0: Codec01: 14F1:2BFA HDA 0.9 rev 0 stepping 0
hdvsmfg at hdaudio0 vendor 0x14F1 product 0x2BFA nid 0x02 not configured

	audioctl -a:

name=HD Audio
version=1.0
config=hdaudio
encodings=slinear_le:16,slinear_be:16*,ulinear_le:16*,ulinear_be:16*,mulaw:8*,alaw:8*,slinear_le:32,slinear_be:32*,ulinear_le:32*,ulinear_be:32*
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=8816
hiwat=7
lowat=5
monitor_gain=0
mode=play
play.rate=44100
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=248
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=52896
play.samples=65106160
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=1
play.active=1
play.buffer_size=65536
record.rate=44100
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=0
record.balance=32
record.port=0x0
record.avail_ports=0x0
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 -a:

outputs.master=248,248
inputs.dac=248,248
inputs.beep=255,255
inputs.reclvl=0,0
outputs.dacsel=DAC00
record.source=ADC01

>How-To-Repeat:
	Try listening to the music with new drivers.
>Fix:
	Please.

>Release-Note:

>Audit-Trail:
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42055: hdaudio doesn't work on Dell Inspiron 6400 
Date: Thu, 17 Sep 2009 04:09:44 +0700

 I see something similar on a Dell Precision M4300.
 I built current kernels with azalea and hdaudio
 (otherwise identical).

 A diff of dmesg.boot for the two kernels is

 --- /var/tmp/dmesg.az	2009-09-16 18:08:53.000000000 +0700
 +++ /var/tmp/dmesg.hd	2009-09-16 18:13:15.000000000 +0700
 @@ -4,8 +4,8 @@
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 -NetBSD 5.99.17 (EPSILON-1.2-20090915) #4: Wed Sep 16 04:33:14 ICT 2009
 -	kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/EPSILON
 +NetBSD 5.99.17 (EPSILON-1.2-20090915) #1: Wed Sep 16 04:41:54 ICT 2009
 +	kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/EPSILONhdaudio
  total memory = 2045 MB
  avail memory = 2003 MB
  timecounter: Timecounters tick every 10.000 msec
 @@ -75,9 +75,15 @@
  ehci0: EHCI version 1.0
  ehci0: companion controllers, 2 ports each: uhci0 uhci1
  usb2 at ehci0: USB revision 2.0
 -azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
 -azalia0: interrupting at ioapic0 pin 21
 -azalia0: host: Intel 82801H High Definition Audio Controller (rev. 2), HDA rev. 1.0
 +hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
 +hdaudio0: interrupting at ioapic0 pin 21
 +hdafg0 at hdaudio0 vendor 0x8384 product 0x76A0 nid 0x01 (firmware configuration)
 +hdafg0: DAC0:10, Analog HP Out: Jack (Black, 0A)
 +hdafg0: ADC1:12, Analog Mic In: Fixed Function (Unknown, 0C)
 +hdafg0: ADC1:12, Analog Line In: Jack (Black, 0B)
 +hdafg0: 2ch/2ch 44100Hz-192000Hz 16/16 20/32 24/32
 +audio0 at hdafg0: full duplex, independent
 +hdvsmfg at hdaudio0 vendor 0x14F1 product 0x2C06 nid 0x02 not configured
  ppb1 at pci0 dev 28 function 0: Intel 82801H PCI Express Port #1 (rev. 0x02)
  ppb1: disabling notification events
  pci2 at ppb1 bus 11
 @@ -152,13 +158,8 @@
  isa0 at pcib0
  com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
  timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 -timecounter: Timecounter "TSC" frequency 1995149500 Hz quality 3000
 +timecounter: Timecounter "TSC" frequency 1995161800 Hz quality 3000
  acpiacad0: AC adapter online.
 -azalia0: codec[0]: 0x8384/0x76a0 (rev. 2.4), HDA rev. 1.0
 -azalia0: codec[1]: 0x14f1/0x2c06 (rev. 0.0), HDA rev. 1.0
 -azalia0: codec[1]: No support for modem function groups
 -azalia0: codec[1] has no audio function groups
 -audio0 at azalia0: full duplex, independent
  uhub0 at usb0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  uhub0: 2 ports with 2 removable, self powered
  uhub1 at usb1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1

 The timecounted difference is obviously just noise, the only other meaningful
 difference is the audio.   Noth kernels are monolithic (no modules).

 Of itself, this looks OK, but using azalea, mixerctl -av claims:

 outputs.black0a.source=dac10  [ dac10 dac11 ]
 outputs.black0a.dir=output  [ input output ]
 outputs.black0a.boost=off  [ off on ]
 outputs.black0b.source=dac10  [ dac10 dac11 ]
 outputs.black0b.dir=output  [ input output ]
 outputs.unknown0c.dir=output  [ input output ]
 outputs.unknown0d.dir=output  [ input output ]
 outputs.unknown0d.boost=off  [ off on ]
 inputs.dac10.mute=off  [ off on ]
 inputs.dac10=126,126  delta=2
 inputs.dac10.lrswap=off  [ off on ]
 inputs.dac11.mute=off  [ off on ]
 inputs.dac11=126,126  delta=2
 inputs.dac11.lrswap=off  [ off on ]
 inputs.sel19.source=  [ black0b unknown0c unknown0d black0a ]
 outputs.sel19=126,126  delta=63
 inputs.sel1a.source=  [ black0b unknown0c unknown0d black0a ]
 outputs.sel1a=126,126  delta=63
 inputs.sel1b.sel19=119,119  delta=17
 inputs.sel1c.sel1a=119,119  delta=17
 inputs.sel1d.source=sel1b  [ sel1b ]
 outputs.sel1d.mute=off  [ off on ]
 inputs.sel1d.lrswap=off  [ off on ]
 inputs.sel1e.source=sel1c  [ sel1c ]
 outputs.sel1e.mute=off  [ off on ]
 inputs.sel1e.lrswap=off  [ off on ]
 inputs.beep23=85  delta=85
 outputs.volume24=126  delta=2
 playback.mode=10  [ 10 1110 1f ]
 record.mode=12  [ 12 13 20 ]

 Whereas with hdaudio I see a very similar result as asau@ indicated:

 outputs.master=254,254 volume delta=2
 inputs.dac=254,254 volume delta=2
 inputs.beep=255,255 volume delta=64
 inputs.reclvl=0,0 volume delta=51
 outputs.dacsel=DAC00  { DAC00 }
 record.source=ADC01  { ADC01 }

 which seems a little unlikely!

 Note, that azalea doesn't work either on this system, I never bothered about
 that as I assumed that if I ever really needed it, I'd eventually find a
 combination of mixerctl settings that did something (managed that with the
 wife's vaio).   It never bothered me as I prefer my computers to remain quiet!

 I can do any more testing that might help, if requested (I don't generally run
 current - those boots were purely for this test)

 I once did the dot graph building magic with azalea debug output, that
 just left me more confused than before I started!

 kre

Responsible-Changed-From-To: kern-bug-people->tech-multimedia@NetBSD.org
Responsible-Changed-By: jmcneill@NetBSD.org
Responsible-Changed-When: Sat, 26 Sep 2009 17:11:43 +0000
Responsible-Changed-Why:
bump to ml


From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42055: hdaudio doesn't work on Dell Inspiron 6400
Date: Mon, 16 Nov 2009 11:00:41 +0300

 Audio works in NetBSD 5.99.22 i386, but I still have problems with new driver,
 it seems to be incompatible with previous one: I hear sounds when using mplayer,
 not so with musicpd.


 -- 
 HE CE3OH...

From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42055: hdaudio doesn't work on Dell Inspiron 6400
Date: Wed, 18 Nov 2009 20:03:14 +0000

 hdaudio has improved it's mixer control abilities significantly
 in the past months.  If there is still trouble with the mixer
 setup, please post `hdaudiocfg info` and `hdaudiocfg get 0 1`
 (using appropriate codec number and nid numbers for your AFG
 codec, of course) output.

 Aleksej:
 What audio output drivers were those programs using?
 As a additional point of reference, you may also want
 to try audioplay(1).

From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc: tech-multimedia@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/42055: hdaudio doesn't work on Dell Inspiron 6400
Date: Thu, 19 Nov 2009 00:01:41 +0300

 "Jonathan A. Kollasch" <jakllsch@kollasch.net> writes:

 >  hdaudio has improved it's mixer control abilities significantly
 >  in the past months.  If there is still trouble with the mixer
 >  setup, please post `hdaudiocfg info` and `hdaudiocfg get 0 1`
 >  (using appropriate codec number and nid numbers for your AFG
 >  codec, of course) output.

 Script started on Wed Nov 18 23:38:52 2009
 $ hdaudioctl info
 usage: hdaudioctl [-f dev] list
        hdaudioctl [-f dev] get <codecid> <nid>
        hdaudioctl [-f dev] set <codecid> <nid> [plist]
        hdaudioctl [-f dev] graph <codecid> <nid>
 $ hdaudioctl list
 codecid 0x00 nid 0x01 vendor 0x8384 product 0x7690 subsystem 0x01BD1028 device hdafg0
 codecid 0x01 nid 0x02 vendor 0x14F1 product 0x2BFA subsystem 0x01BD1028 device <none>
 $ hdaudioctl get 0 1
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <array>
 	<dict>
 		<key>config</key>
 		<integer>0x40f000f0</integer>
 		<key>nid</key>
 		<integer>8</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x40f000f1</integer>
 		<key>nid</key>
 		<integer>9</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x421101f</integer>
 		<key>nid</key>
 		<integer>13</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x90170110</integer>
 		<key>nid</key>
 		<integer>14</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x40f000f2</integer>
 		<key>nid</key>
 		<integer>15</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x4a11020</integer>
 		<key>nid</key>
 		<integer>16</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x40f000f3</integer>
 		<key>nid</key>
 		<integer>17</integer>
 	</dict>
 	<dict>
 		<key>config</key>
 		<integer>0x40f000f4</integer>
 		<key>nid</key>
 		<integer>18</integer>
 	</dict>
 </array>
 </plist>
 Script done on Wed Nov 18 23:39:38 2009

 >  What audio output drivers were those programs using?

 Presumably OSS. How can I check it to be sure?
 ktrace? What should I look for?

 >  As a additional point of reference, you may also want
 >  to try audioplay(1).

 I've tried to play files of this type:

 RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

 No sound, though audioplay reports progress when I send SIGINFO to it.


 -- 
 HE CE3OH...

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.