From nobody@FreeBSD.org  Mon May 22 13:10:58 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 29BA316AA8C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 May 2006 13:10:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E44B243D67
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 May 2006 13:10:57 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4MDAv8M015726
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 May 2006 13:10:57 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4MDAv6i015725;
	Mon, 22 May 2006 13:10:57 GMT
	(envelope-from nobody)
Message-Id: <200605221310.k4MDAv6i015725@www.freebsd.org>
Date: Mon, 22 May 2006 13:10:57 GMT
From: Weifeng Que <queweifeng@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Load Sound Module - VIA8233
X-Send-Pr-Version: www-2.3

>Number:         97609
>Category:       kern
>Synopsis:       [sound] Load Sound Module - VIA8233 - fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 22 13:20:23 GMT 2006
>Closed-Date:    
>Last-Modified:  Wed Jun 14 09:37:18 GMT 2006
>Originator:     Weifeng Que
>Release:        6.1-RELEASE
>Organization:
Citigroup Shanghai China
>Environment:
FreeBSD ninja 6.1-RELEASE FreeBSD 6.1-RELEASE #5: Sun May 21 23:51:18 CST 2006     blender@ninja:/usr/src/sys/i386/compile/ninja  i386

>Description:
Hi Hackers,

I have a main-board sound card via8233, I try to load its module at boot time,
but it does not work.
And I try to some way to solve the problem myself.

add 
device sound
device snd_via8233 
in kernel....

okay, it works sometime...but not all time.

and I edit the /boot/loader.conf to load the sound module
sound_load="YES"
snd_via8233_load="YES"

it has the same problem...

I will show the kernel message when boot :
May 22 20:43:17 ninja kernel: pcm0: <VIA VT8233> port 0xe400-0xe4ff irq 11 at device 17.5 on pci0
May 22 20:43:17 ninja kernel: pcm0: primary codec not ready (cnt = 0x7d0)
May 22 20:43:17 ninja kernel: device_attach: pcm0 attach returned 6

Pleas help to check it. Thank you all.

>How-To-Repeat:
1) add 
device sound / device snd_via8233 in kernel , re-compile it , reboot.
2) add 
sound_load="YES" / snd_via8233_load = "YES"
>Fix:
Sorry, I have no idea.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jun 14 09:36:31 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

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