From nobody@FreeBSD.org  Wed Feb 10 02:20:14 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EB20A106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Feb 2010 02:20:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C13238FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Feb 2010 02:20:14 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o1A2KEtk082954
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Feb 2010 02:20:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o1A2KEp6082951;
	Wed, 10 Feb 2010 02:20:14 GMT
	(envelope-from nobody)
Message-Id: <201002100220.o1A2KEp6082951@www.freebsd.org>
Date: Wed, 10 Feb 2010 02:20:14 GMT
From: Michael Bechtold <wmichaelb@fuse.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Audio Quit After Installing 8.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143715
>Category:       kern
>Synopsis:       Audio Quit After Installing 8.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 10 02:30:01 UTC 2010
>Closed-Date:    Sat Apr 10 22:59:37 UTC 2010
>Last-Modified:  Sat Apr 10 22:59:37 UTC 2010
>Originator:     Michael Bechtold
>Release:        8.0
>Organization:
>Environment:
FreeBSD PCBSD-5502 8.0-release-p1 #3: Fri Dec 1113:33:42 PST 2009    
root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD i386
>Description:
Hi, I recently installed the PC-BSD 8.0 beta upgrade, and in the process, my 
audio output disappeared. It worked well on PC-BSD 7.1, and also does so when 
the machine is booted from a Fedora 11 live CD, so it's not hardware. I've 
been working with Kris on the PC-BSD team on testing this and that, but he now 
feels we need to bring this issue up to the FreeBSD driver team. 

KDE Info Center gives the following information:

FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <Intel ICH4 (82801DB)> at io 0xfebff800, 0xfebff400 irq 17 bufsz 16384 
kld snd_ich [MPSAFE] (1p:4v/ir/4v channels duplex default)

The sound support for loader.conf looks like this:

# Load sound-support
sound_load="YES"
snd_uaudio_load="YES"


The sound support for rc.conf looks like this:

# Enable sound-support
snddetect_enable="YES"
mixer_enable="YES"

If I try to play an mp3 file with mplayer from a terminal, I get this:

Music/Norwegian_Wood.mp3
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing /home/mikeb1/Desktop/Music/Norwegian_Wood.mp3.
Audio file file format detected.
Clip info:
 Title: Norwegian Wood (This Bird Has
 Artist: Buddy Rich
 Album: Big Swing Face
 Year: 1967
 Comment: Amazon.com Song ID: 20205921
 Track: 1
 Genre: Jazz
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

but absolutely no sound comes out of the speakers. I'm happy to help with this one if I can, and thanks in advance. 


>How-To-Repeat:
Install PC-BSD 8.0 and try to play an mp3 or other sound file. 
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Sat Feb 13 21:30:10 UTC 2010 
State-Changed-Why:  
To submitter: firstly, what type of sound card are you using?  The output 
of the KDE application suggests that you are using the onboard ICH4 
sound card, however the fact you have "snd_uaudio_load" in loader.conf 
suggests that you may be using a USB audio device? 

Can you give the output of the folliwing commands in a terminal please: 

ls -l /dev/pcm* 
cat /dev/sndstat 
dmesg |grep pcm 

Thanks! 



Responsible-Changed-From-To: freebsd-i386->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Sat Feb 13 21:30:10 UTC 2010 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143715 

Date: Mon, 29 Mar 2010 10:31:41 -0400
From: Michael Bechtold <wmb1204@fuse.net>
Reply-To: wmb1204@fuse.net
Subject: http://www.freebsd.org/cgi/query-pr-cgi?pr-143715

 Gavin: I got busy myself administering finals after our last message. Here's 
 what I know so far:
 
 Responding to  your request, I get:
 
 ls -l /dev/pcm*
 ls: No match.
 
 cat /dev/sndstat
 FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
 Installed devices:
 pcm0: <Intel ICH4 (82801DB)> at io 0xfebff800, 0xfebff400 irq 17 bufsz 16384 
 kld snd_ich [MPSAFE] (1p:4v/1r:4v channels duplex default)
 pcm1: <CMedia CMI8738> at io 0xd800 irq 22 kld snd_cmi [MPSAFE] (1p:1v/1r:1v 
 channels duplex)
 
 dmesg |grep pcm
 pcm0: <Intel ICH4 (82801DB)> port 0xe400-0xe4ff,0xe080-0xe0bf mem 
 0xfebff800-0xfebff9ff,0xfebff400-0xfebff4ff irq 17 at device 31.5 on pci0
 pcm0: [ITHREAD]
 pcm0: primary codec not ready!
 pcm0: <Analog Devices AD1981B AC97 Codec>
 pcm1: <CMedia CMI8738> port 0xd800-0xd8ff irq 22 at device 1.0 on pci2
 pcm1: [ITHREAD]
 
 Just to check, I did install a generic PCI sound card; the listings above 
 reflect that change. I can easily uninstall it; for the record, there is no 
 sound output from either the onboard or PCI sound devices. 
 
 I also generated a sys mgr output file; the sound portions read as follows:
 
 pcm0@pci0:0:31:5:	class=0x040100 card=0x01038086 chip=0x24c58086 rev=0x02 
 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'Realtek AC97 Audio  (82801DBM SoundMAXController (ICH4-M B0 
 step))'
     class      = multimedia
     subclass   = audio
 
 pcm1@pci0:2:1:0:	class=0x040100 card=0x011113f6 chip=0x011113f6 rev=0x10 
 hdr=0x00
     vendor     = 'C-Media Electronics Inc.'
     device     = 'C-Media Audio Controller (CMI873x)'
     class      = multimedia
     subclass   = audio
 
 # Enable sound-support
 snddetect_enable="YES"
 mixer_enable="YES"
 
 # Added for sound support in the portjail, access to /dev/random, /dev/null, 
 etc.
 jail_pcbsd_devfs_enable="YES"
 
 # Load sound-support
 sound_load="YES"
 snd_uaudio_load="YES"
 
 
 I know you're busy, will wait to hear.
 
 Thanks and peace,
 - Michael B. in Cincinnati
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Apr 10 22:59:16 UTC 2010 
State-Changed-Why:  
From misfiled PR kern/145618: 

Date: Sat, 10 Apr 2010 16:15:39 -0400 
From: Mike Bechtold <wmb1204@fuse.net> 
To: Gavin Atkinson <gavin@FreeBSD.org>, bug-followup@FreeBSD.org 
Subject: Re: Third Time Responding: Fwd: kern/143715: Audio Quit After 
Installing 8.0 

Gavin: The production version of PC-BSD 8.0 ("Galileo") 
recently replaced the beta version. I downloaded and used 
it to upgrade my beta install to the release version. When  
I did the corresponding software updates, there was a bug  
fix labeled "sound mute" error. I installed this, rebooted  
the system, and voila! the sound now works. I don't know  
if you had anything to do with this bug fix, but if so, 
thanks! Looks like this one is solved.  
- Michael B. in Cincinnati 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143715 
>Unformatted:
