From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 13 21:39:59 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE59116A417 for ; Sun, 13 Jan 2008 21:39:58 +0000 (UTC) (envelope-from mehul.n.ved@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by mx1.freebsd.org (Postfix) with ESMTP id 7E2DE13C4D1 for ; Sun, 13 Jan 2008 21:39:58 +0000 (UTC) (envelope-from mehul.n.ved@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1921830rvb.43 for ; Sun, 13 Jan 2008 13:39:57 -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=iR/1MOnat09D15K/XhbFwBzMr6POba0oE9Lbjde49lTtD5/8vMBq8GfrAOsfVinOPq7rC1lZ33oHJRdgS8VI3TjVQeupHV5u2rX1bbubem1M7S9H7t6jBZoxBN4PeB/J3KueWv+cXsUZAZflDjkSLKGyqjLUT9oexJcKVutEC34= 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=YQyIku63cLqHPV7R0L1dXYzFnAPXCSuFqK4sunVcDniwo44dmvt9Ifr9a6Sv763zko01xKsnvSdgvelXAnTXWEQSYNnirU8kHengJDhBMSyrT7/au57v/kf9NmByECeKsh4VLnKF+F7n/8OB7bB+40o5KYAJYFH4tXnXkzB9lsA= Received: by 10.141.44.13 with SMTP id w13mr3356399rvj.181.1200258921999; Sun, 13 Jan 2008 13:15:21 -0800 (PST) Received: by 10.141.69.20 with HTTP; Sun, 13 Jan 2008 13:15:22 -0800 (PST) Message-ID: Date: Mon, 14 Jan 2008 02:45:22 +0530 From: "Mehul Ved" To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: sound works randomly X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 21:39:59 -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