From owner-freebsd-questions@FreeBSD.ORG Sun Jan 6 12:36:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5074216A417 for ; Sun, 6 Jan 2008 12:36:46 +0000 (UTC) (envelope-from mehul.n.ved@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 2606713C465 for ; Sun, 6 Jan 2008 12:36:46 +0000 (UTC) (envelope-from mehul.n.ved@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so12304234waf.3 for ; Sun, 06 Jan 2008 04:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=hVPLgw65A16m2O7v/n9qFV0xZyrF2mtg6wkzZanmPFc=; b=gLfCGsj1BKsrjcKDduEmCxTeddmUn6YDZ/JRAziVawSBSKPJ2WpZSWvdkDIBWlVWtGpLiVBLABGOE7T508vcBcw4T8RqilL9iKFONwVobaMrQw+AtwBzWN3DiKhElwunNYnwtCCJ1/0j7rDQ0DDrB1y8sXiI5kjG7tz6MelNViw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=xIm7B2sLu40HAWvDlZ/nesVbnq1qFw8aPbauHf2/cLsQ3ESUBHMhfvtWP9AsCSgezQDRMpZkWPD8/72zdzahphSpP9yhKdWpH5JdG8E3QhgrkH47HfEX6HZ0Y+vIXWX2SSYt56Sqz2OZDM/jVh6j3SXgXK0fw0KtgJmt3s/kOAU= Received: by 10.142.229.4 with SMTP id b4mr4469302wfh.125.1199621358730; Sun, 06 Jan 2008 04:09:18 -0800 (PST) Received: by 10.142.173.14 with HTTP; Sun, 6 Jan 2008 04:09:18 -0800 (PST) Message-ID: Date: Sun, 6 Jan 2008 17:39:18 +0530 From: "Mehul Ved" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: sound doesn't work randomly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2008 12:36:46 -0000 Hi, I have a Via8233 onboard sound card. After reading a few docs and installing oss, I got sound to work but the problem is that it works sometimes and just doesn't work other times. This only happens with FreeBSD, with linux it's working fine all the time so I believe I can rule out hardware problems. Here is the sound card information that might be useful -------------------------------------------- pciconf -lv pcm0@pci0:17:5: class=0x040100 card=0x04301462 chip=0x30591106 rev=0x60 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller' class = multimedia subclass = audio -------------------------------------------- -------------------------------------------- kldstat Id Refs Address Size Name 1 16 0xc0400000 33e03c kernel 2 1 0xc073f000 1ada4 linux.ko 3 1 0xc075a000 6170 snd_via8233.ko 4 2 0xc0761000 22b88 sound.ko 5 1 0xc0784000 693310 nvidia.ko 6 1 0xc0e18000 59f20 acpi.ko 7 2 0xc6191000 79000 osscore.ko 8 1 0xc6211000 5000 via8233.ko 9 1 0xc6227000 2000 vmix.ko ------------------------------------------- ------------------------------------------- /etc/rc.conf oss_enable="YES" ------------------------------------------- ------------------------------------------- /boot/loader.conf snd_via8233_load="YES" ------------------------------------------- ------------------------------------------- cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xe700 irq 22 kld snd_via8233 (5p/1r/0v channels duplex default) ------------------------------------------- cat > /dev/dsp doesn't return any sound. ------------------------------------------- ossdetect -v Detected VIA VT8233/8235/8237 Detected OSS Transparent Virtual Mixing Architecture ------------------------------------------- ------------------------------------------- ossinfo -v Version info: OSS 4.0 (b071114/200801041811) (0x00040003) CDDL Platform: FreeBSD/i386 6.2-RELEASE FreeBSD 6.2-RELEASE #3: Sun Jan 6 14:16:34 IST 2008 root@bsd.mehulved.com:/usr/obj/usr/src/sys/MYKERNEL (bsd.mehulved.com) Number of audio devices: 0 Number of audio engines: 0 Number of MIDI devices: 0 Number of mixer devices: 0 Device objects 0: vmix0 OSS transparent virtual support MIDI devices (/dev/midi*) Mixer devices (/dev/mixer*) Audio devices -------------------------------------------- -------------------------------------------- osstest -v Sound subsystem and version: OSS 4.0 (b071114/200801041811) (0x00040003) Platform: FreeBSD/i386 6.2-RELEASE FreeBSD 6.2-RELEASE #3: Sun Jan 6 14:16:34 IST 2008 root@bsd.mehulved.com:/usr/obj/usr/src/sys/MYKERNEL NOTICE! You don't have any audio devices available. It looks like your audio hardware was not recognized by OSS. Please contact 4Front technologies for help (http://www.opensound.com/support.cgi). Don't forget to include your soundon.log file to the support request. -------------------------------------------- -------------------------------------------- ossmix SNDCTL_MIX_NREXT: Device not configured -------------------------------------------- I also checked -------------------------------- fstat | grep dsp -------------------------------- and killed any process if they were running. None of it helped. All of a sudden again I have sound working right now. Any other info will be needed? Some links I refered to are 1)http://bsdtips.utcorp.net/mediawiki/index.php/Setting_up_your_sound_card 2)http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html and some forums