From owner-freebsd-questions@FreeBSD.ORG Wed Sep 6 17:27:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33C9016A4E1 for ; Wed, 6 Sep 2006 17:27:49 +0000 (UTC) (envelope-from danny@ricin.com) Received: from smtpq3.tilbu1.nb.home.nl (smtpq3.tilbu1.nb.home.nl [213.51.146.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6752443D55 for ; Wed, 6 Sep 2006 17:27:30 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.188] (port=49270 helo=smtp3.tilbu1.nb.home.nl) by smtpq3.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1GL1BR-0007r1-HE; Wed, 06 Sep 2006 19:27:29 +0200 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.221.74]:50522 helo=desktop.homenet) by smtp3.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1GL1BP-0002uE-V8; Wed, 06 Sep 2006 19:27:27 +0200 From: Danny Pansters To: Mike jeays Date: Wed, 6 Sep 2006 19:27:27 +0200 User-Agent: KMail/1.9.3 References: <1157512143.941.5.camel@chaucer.jeays.ca> <200609061236.34004.danny@ricin.com> <1157556836.941.23.camel@chaucer.jeays.ca> In-Reply-To: <1157556836.941.23.camel@chaucer.jeays.ca> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_/Tw/EPzVjY0dEyo" Message-Id: <200609061927.27533.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: KBTV setup problem 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: Wed, 06 Sep 2006 17:27:49 -0000 --Boundary-00=_/Tw/EPzVjY0dEyo Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 06 September 2006 17:33, you wrote: > > > SOUND - Sound card and tuner sound wiring > > > =================================================================== > > > SND MODULE LOADED............ Yes > > > AUDIO CHIP................... CMedia CMI8738 Hmm, someone else had the same problem a while ago, also had a CMedia CMI8738. I guess that driver doesn't work well with python's ossaudiodev module that kbtv uses to handle audio. This would be something to be coordinated by the snd_cmi and python maintainers I'm afraid. Maybe snd_cmi doesn't support ossaudio device/mixer at all? If you try the attached test that I sent him (put both files somewhere in the same directory and run 'python test.py' from there), do you get: % python test.py DEBUG: IOError or OSSAudioError occured ? If so, and there's nothing wrong with permissions on dsp and mixer devices, that would confirm my hypothesis (can you let me know if this is the case?) Sorry. Maybe you can try with a separate sound card. At least I know now that the MSP is not the problem. Thanks for the feedback, Dan > > > MIXER CHANNEL FOR TV......... > > > btsetup> quit > > > > > > chaucer 502 /usr/home/mike # kbtv > > > kbtv: WARNING: KLocale: trying to look up "" in catalog. Fix the > > > program Traceback (most recent call last): > > > File "./kbtv_application.py", line 136, in ? > > > mainwindow = KbtvPart(player) > > > File "/usr/local/share/apps/kbtv/kbtv_part.py", line 118, in __init__ > > > self.extendToolbar() > > > File "/usr/local/share/apps/kbtv/kbtv_part.py", line 389, in > > > extendToolbar > > > self.toolbarwidget = KbtvToolbarWidget(self, tb) > > > File "/usr/local/share/apps/kbtv/kbtv_toolbar.py", line 48, in > > > __init__ > > > self.mixerchan = bthardware.MIXER_CHANNEL_NAMES.index(mchan) > > > ValueError: list.index(x): x not in list PS: It's possible to set mchan to, say, line in the code instead of uninitialized, but I would think that would only make things better cosmetically (no crash) but it wouldn't make sound work. > No, I am trying to use the snd drivers via the built-in sound card in > the motherboard. I removed all references to the TV card from the > kernel definition file, and let it be loaded dynamically, as suggested > in the documentation. > > chaucer 507 /etc # kldstat > Id Refs Address Size Name > 1 37 0xc0400000 387d9c kernel > 2 1 0xc0788000 3204 splash_bmp.ko > 3 1 0xc078c000 4228 vesa.ko > 4 1 0xc07dc000 328c snd_driver.ko > 5 2 0xc07e0000 4d08 snd_ad1816.ko > 6 29 0xc07e5000 1d9c8 sound.ko > 7 2 0xc0803000 4c4c snd_als4000.ko > 8 2 0xc0808000 4fcc snd_cmi.ko --Boundary-00=_/Tw/EPzVjY0dEyo--