From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 03:10:08 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A770216A41F for ; Mon, 12 Dec 2005 03:10:08 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A52F43D62 for ; Mon, 12 Dec 2005 03:10:07 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so1316681nzp for ; Sun, 11 Dec 2005 19:10:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=lkxF10A2E+5gks05E1m/e7bjbre4o+4zMYhaHqaTo61Kxz6o+lSd57xbLpQ2v28Zr8ud8oG0FpWYdLEKsDEnPlSV1c//T0pkHLQuNVqi0Fg8PUt9byIlZeNGbuckCBGEnxmr51o7fsHo2H+PRoJQiE7NcrEY9007Ndl14pO4nxc= Received: by 10.36.25.18 with SMTP id 18mr5606987nzy; Sun, 11 Dec 2005 19:10:06 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 7sm8688961nzn.2005.12.11.19.10.05; Sun, 11 Dec 2005 19:10:06 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.5/8.13.5) with ESMTP id jBC39eGb002203 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Dec 2005 12:09:40 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.5/8.13.5/Submit) id jBC39dKK002202; Mon, 12 Dec 2005 12:09:39 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 12 Dec 2005 12:09:39 +0900 From: Pyun YongHyeon To: "Steven S." Message-ID: <20051212030939.GA1093@rndsoft.co.kr> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051205202824.C45817@atlantis.403forbidden.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 03:10:08 -0000 On Mon, Dec 05, 2005 at 08:30:53PM -0500, Steven S. wrote: > > none1@pci0:10:0: class=0x078000 card=0x00011179 chip=0x07011179 > rev=0x23 hdr=0x00 > vendor = 'Toshiba America Information Systems' > device = 'vt82c693 PCI Communication Device' > class = simple comms > pcm0@pci0:12:0: class=0x040100 card=0x00011179 chip=0x1978125d rev=0x10 > hdr=0x00 > vendor = 'ESS Technology' > device = 'ES1978 Maestro-2E Audiodrive, ES1970 Canyon3D' > class = multimedia > subclass = audio > > when i load the module I get the following > > pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 > on pci0 > pcm0: agg_rdcodec() RW_DONE timed out. > pcm0: agg_rdcodec() PROGLESS timed out. Would you try a new patch? http://people.freebsd.org/~yongari/maestro.c http://people.freebsd.org/~yongari/maestro_reg.h Recodring was not tested at all, let's take one step at a time. -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 06:49:13 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EF5D16A41F for ; Mon, 12 Dec 2005 06:49:13 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from phws.ph.noda.tus.ac.jp (phws.ph.noda.tus.ac.jp [133.31.102.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B08B743D5A for ; Mon, 12 Dec 2005 06:49:12 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost (unknown [133.31.111.131]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id 1DD906E40CB; Mon, 12 Dec 2005 15:49:11 +0900 (JST) Date: Mon, 12 Dec 2005 15:49:11 +0900 (JST) Message-Id: <20051212.154911.343146196.kazuhito@ph.noda.tus.ac.jp> To: nemeths@for.mat.bham.ac.uk From: Kazuhito HONDA In-Reply-To: References: <20051115.033104.343191587.kazuhito@ph.noda.tus.ac.jp> X-Mailer: Mew version 3.3 on XEmacs 21.5-b22 (cucumber) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: external sound card under FreeBSD 5.4 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: Mon, 12 Dec 2005 06:49:13 -0000 Excuse me for long absence. From: Sandor Z Nemeth Subject: Re: external sound card under FreeBSD 5.4 Date: Tue, 29 Nov 2005 23:56:44 +0000 (GMT) > My mixer setting is currently > > Mixer speaker is currently set to 100:100 > Mixer line is currently set to 100:100 > Recording source: mic > > Does this mean that I have no recording device at the moment? Should I > have a line "Mixer rec"? How can I get a recording device? It doesn't mean that. FreeBSD can't recognize which a volume of USB audio is for the purpose of recording or not. But it isn't concerned with detection of a recording port. (`Recording source: mic' has no mean for this device. When the wiring for recording doesn't have the selector, FreeBSD show it. Though SB external 24bit has two port for recording, line-in and mic, these appear as one port for computer.) I have the same USB audio device, and I can record with it on FreeBSD-current. We must be able to record on FreeBSD after 5-stable. But we can't record on FreeBSD 5.4. Sincerely yours, Kazuhito HONDA From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 09:58:53 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D77016A41F for ; Mon, 12 Dec 2005 09:58:53 +0000 (GMT) (envelope-from nemeths@for.mat.bham.ac.uk) Received: from sun13.bham.ac.uk (sun13.bham.ac.uk [147.188.128.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id D953D43D4C for ; Mon, 12 Dec 2005 09:58:52 +0000 (GMT) (envelope-from nemeths@for.mat.bham.ac.uk) Received: from [147.188.128.127] (helo=bham.ac.uk) by sun13.bham.ac.uk with esmtp (Exim 4.10) id 1ElkSI-000248-00; Mon, 12 Dec 2005 09:58:50 +0000 Received: from for.mat.bham.ac.uk ([147.188.56.59]) by bham.ac.uk with esmtp (Exim 4.43) id 1ElkSI-0006nE-MY; Mon, 12 Dec 2005 09:58:50 +0000 Received: from bab.mat.bham.ac.uk by for.mat.bham.ac.uk (8.8.8+Sun/SMI-SVR4) id JAA02660; Mon, 12 Dec 2005 09:58:49 GMT Received: from localhost (nemeths@localhost) by bab.mat.bham.ac.uk (8.8.8p2+Sun/8.8.8) with ESMTP id JAA22087; Mon, 12 Dec 2005 09:58:48 GMT X-Authentication-Warning: babbage.bham.ac.uk: nemeths owned process doing -bs Date: Mon, 12 Dec 2005 09:58:47 +0000 (GMT) From: Sandor Z Nemeth X-Sender: nemeths@babbage.bham.ac.uk To: Kazuhito HONDA In-Reply-To: <20051212.154911.343146196.kazuhito@ph.noda.tus.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BHAM-CUBE-wlist: LOCAL for.mat.bham.ac.uk X-BHAM-CUBE-processed: yes Cc: freebsd-multimedia@freebsd.org Subject: Re: external sound card under FreeBSD 5.4 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: Mon, 12 Dec 2005 09:58:53 -0000 Hi, I have FreeBSD 6.0 and I do not know how to record. Although my mixer setting is Mixer speaker is currently set to 100:100 Mixer line is currently set to 100:100 Recording source: mic I tried to use audacity. When clicking the record button the computer gets freezed, and the only solution is reboot. Since multimedia is one of the most difficult issues under free operating systems, I would like to learn more about it. Thanks, Sandor -------------------------------------------------------- Dr Sandor Zoltan Nemeth Lecturer -------------------------------------------------------- School of Mathematics The University of Birmingham Watson Building Edgbaston B15 2TT Birmingham United Kingdom Phone: +44-121-414-6404 Fax: +44-121-414-3389 -------------------------------------------------------- On Mon, 12 Dec 2005, Kazuhito HONDA wrote: > Excuse me for long absence. > > From: Sandor Z Nemeth > Subject: Re: external sound card under FreeBSD 5.4 > Date: Tue, 29 Nov 2005 23:56:44 +0000 (GMT) > > > My mixer setting is currently > > > > Mixer speaker is currently set to 100:100 > > Mixer line is currently set to 100:100 > > Recording source: mic > > > > Does this mean that I have no recording device at the moment? Should I > > have a line "Mixer rec"? How can I get a recording device? > > It doesn't mean that. > FreeBSD can't recognize which a volume of USB audio > is for the purpose of recording or not. > But it isn't concerned with detection of a recording port. > (`Recording source: mic' has no mean for this device. > When the wiring for recording doesn't have the selector, > FreeBSD show it. > Though SB external 24bit has two port for recording, > line-in and mic, these appear as one port for computer.) > > I have the same USB audio device, > and I can record with it on FreeBSD-current. > We must be able to record on FreeBSD after 5-stable. > But we can't record on FreeBSD 5.4. > > Sincerely yours, > Kazuhito HONDA > From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 10:17:43 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 304C916A422 for ; Mon, 12 Dec 2005 10:17:43 +0000 (GMT) (envelope-from gregory@mdmspb.com) Received: from mail.mdmspb.com (mail.mdmspb.com [212.119.187.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 4429343D5A for ; Mon, 12 Dec 2005 10:17:40 +0000 (GMT) (envelope-from gregory@mdmspb.com) Date: Mon, 12 Dec 2005 13:17:31 +0300 From: "S.N.Grigoriev" To: freebsd-multimedia@freebsd.org Organization: MDM-Bank SPb PLC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-fixed: Message-Id: <20051212101740.4429343D5A@mx1.FreeBSD.org> Subject: PCTV problem 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: Mon, 12 Dec 2005 10:17:43 -0000 Hi, I've recently purchased a Pinnacle PCTV Pro PCI card. In accordance with the FreeBSD handbook this card is supported by the bktr(4) driver. But all my attempts to use it have been unsuccessful: I've always got something like colorized snow on the top part of the program's window. I would like to know if there is a way to fix my problem. My configuration is: FreeBSD v.6.0 RELEASE (amd64) nVidia nForce4-based motherborad 3dfx VooDoo4 4500 PCI video card Kernel config: options BKTR_NEW_MSP34XX_DRIVER options BKTR_USE_FREEBSD_SMBUS options BKTR_USE_PLL device smbus device iicbus device iicbb device ic device iic device iicsmb device smb device bktr ------------------------------------ dmesg info: bktr0: mem 0xe8001000-0xe8001fff irq 19 at device 7.0 on pci1 bktr0: [GIANT-LOCKED] smbus0: on bktr0 smb0: on smbus0 iicbb0: on bktr0 iicbus0: on iicbb0 master-only ic0 on iicbus0 iic0: on iicbus0 iicsmb0: on iicbus0 smbus1: on iicsmb0 smb1: on smbus1 bktr0: MT2032: Companycode=3cbf Part=5a Revision=5a bktr0: MT2032 not found or unknown type bktr0: Detected a MSP3400@-@0 at 0x80 bktr0: Pinnacle/Miro TV, msp3400c stereo. ------------------------------------------------ I've tried to use this configuration with mplayer and xawtv (frequency table: 'russia', TV norm: SECAM/SECAMD). Fxtv always crashes my system with page fault errors. Regards, Serguey. From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 11:02:28 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A2FC16A41F for ; Mon, 12 Dec 2005 11:02:28 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A216C43D6A for ; Mon, 12 Dec 2005 11:02:18 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBCB2H1u064690 for ; Mon, 12 Dec 2005 11:02:17 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBCB2FmQ064684 for freebsd-multimedia@freebsd.org; Mon, 12 Dec 2005 11:02:15 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 12 Dec 2005 11:02:15 GMT Message-Id: <200512121102.jBCB2FmQ064684@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 12 Dec 2005 11:02:28 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/02/26] kern/35351 multimedia [sound] emu10k1: no posibility to record f [2002/07/02] kern/40122 multimedia [sound] Device pcm stopps booting Kernel f [2002/08/29] kern/42173 multimedia [sound] Sony VAIO FXA 53 (or FXA 679 in M f [2003/10/02] kern/57487 multimedia [sound] [patch] Sound stops working on my o [2004/02/22] kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestr f [2004/11/16] kern/73987 multimedia [sound] Nforce2 MB sound problem o [2004/12/31] kern/75687 multimedia [sound] [patch] No sound on PC which is i o [2005/04/14] kern/79905 multimedia [sound] sis7018 sound module problem o [2005/04/14] kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: o [2005/04/20] kern/80147 multimedia [snd_sb16] [patch] panic with the vibra16 o [2005/05/17] kern/81146 multimedia [sound] Sound isn't working AT ALL for Si o [2005/06/08] kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work o [2005/09/30] kern/86747 multimedia [sound] snd_ich and snd_driver .ko's stro o [2005/10/13] kern/87371 multimedia [sound] [panic] Force unload snd_es137x c 14 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/30] kern/20297 multimedia [sound] [patch] Joystick is not enabled w f [2001/02/26] kern/25386 multimedia [sound] Incorrect mixer registers (line & f [2001/07/18] kern/29067 multimedia [sound] Yamaha OPL3Sa2 pcm/pnp stops play f [2001/07/30] kern/29312 multimedia [sound] Using mixer on pcm misbehaves wit o [2002/04/30] kern/37600 multimedia [sound] [partial patch] t4dwave drive doe f [2002/05/02] kern/37657 multimedia [sound] /dev/dsp and /dev/audio skip the o [2002/07/03] kern/40132 multimedia [sound] [patch] enabling the joystick int f [2002/07/23] kern/40927 multimedia [sound] Acer Labs M5451 dies with pcm:pla f [2002/08/17] kern/41743 multimedia [sound] No sound from SiS630s controller f [2002/09/08] kern/42564 multimedia [sound] record bug with emu10k1 driver f [2002/09/10] kern/42638 multimedia [sound] CS4326/4327 (MSS) buggy output pl f [2003/01/20] kern/47243 multimedia [sound] Onboard CMedia CMI8738 playback n f [2003/01/22] kern/47352 multimedia [sound] pcm/ac'97, dsp device busy o [2003/02/16] kern/48338 multimedia [sound] pcm audio driver hogs /dev/dsp?.? o [2003/04/18] kern/51145 multimedia [sound] Audio Slows during Heavy I/O o [2003/06/17] kern/53417 multimedia [sound] Bad Recordings on AC97 onboard au o [2003/07/03] kern/54049 multimedia [sound] Sound driver reports device busy o [2003/07/03] kern/54078 multimedia [sound] Sound Plays ~10% Slow [4.8] o [2003/12/26] kern/60599 multimedia [sound] [partial patch] No sound for ATI o [2003/12/29] kern/60677 multimedia [sound] [patch] No reaction of volume con o [2003/12/30] kern/60737 multimedia [sound] Sound card Turtle Beach Santa Cru o [2003/12/31] kern/60761 multimedia [sound] pcm performance on emu10k1 driver o [2004/02/15] kern/62862 multimedia [sound] [patch] fix pcm vchans related cr o [2004/03/10] kern/64040 multimedia [sound] crackling sound on 5.2.1-RELEASE o [2004/05/09] kern/66422 multimedia [sound] [patch] no sound on modern Sony V o [2004/05/14] kern/66642 multimedia [sound] pcm0: play: 0: play interrupt tim o [2004/06/19] kern/68122 multimedia [sound] Device busy (/dev/dsp)- insane, n o [2004/06/30] kern/68515 multimedia [sound] sound card noise (ES1938, 5.0) o [2004/07/04] kern/68665 multimedia [sound] pcm doesn't detect Realtek ac97 o a [2004/07/19] kern/69283 multimedia [sound] Via 8233 driver records at half s s [2004/08/23] kern/70852 multimedia [sound] via82xx PCM driver does not enabl o [2004/09/30] kern/72218 multimedia [sound] audio recording broken with emu10 o [2004/10/01] kern/72221 multimedia [sound] emu10k1 stereo channels are rever o [2004/10/19] kern/72887 multimedia [sound] emu10k1: sound lag o [2004/10/22] kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound near o [2004/10/25] kern/73098 multimedia [sound] Scan rate of sound card shifts wh o [2004/11/21] i386/74191 multimedia [sound] Notebook PC2001 Compliant AC97 au o [2004/12/20] kern/75316 multimedia [sound] [patch] Enable to select a record o [2005/01/06] kern/75894 multimedia [sound] AD1981 not probing (shuttle ST62K o [2005/01/08] kern/75969 multimedia [sound] [patch] Support for Sigmatel STAC o [2005/01/31] kern/76918 multimedia [sound] ATI AD1981 AC'97 Audio Controller o [2005/04/01] kern/79427 multimedia [sound] No sound on Compaq Armada 100S la o [2005/04/03] kern/79498 multimedia [sound] sndfile-play (and many other play o [2005/04/08] kern/79678 multimedia [sound] sound works except recording from o [2005/04/20] kern/80149 multimedia problems with an soundblaster-8 (original o [2005/04/20] kern/80151 multimedia [sound] [patch] Missing ESS ES1688 PCI-ID o [2005/04/20] kern/80152 multimedia [sound] [patch] SIMPLEX flag is not set p o [2005/04/22] kern/80234 multimedia [sound] [patch] add entry for Analog Devi o [2005/04/29] kern/80465 multimedia [sound] pcm0:record:0: record interrupt t o [2005/05/05] kern/80632 multimedia pcm driver missing support for CMI8738 au o [2005/05/09] kern/80824 multimedia [sound] kldunload can't unload sound.ko o [2005/05/14] kern/81013 multimedia [sound] [patch] Intel ICH3 sound chip rev o [2005/05/17] kern/81170 multimedia [sound] /dev/mixer misbehavior with enson o [2005/05/28] kern/81599 multimedia [sound] Via VT1612A Audio not working wel o [2005/07/29] kern/84311 multimedia [sound] 82801FB/FR/FW/FRW Intel High Defi o [2005/08/02] kern/84471 multimedia [sound] [patch] no sound ICH4 (Analog Dev o [2005/08/03] kern/84507 multimedia [sound] fm801: Not every card supports va o [2005/09/11] kern/85964 multimedia [sound] Can't play 24 bit audio (Audigy 2 o [2005/09/24] kern/86536 multimedia [sound] /dev/mixer has no devices (still) o [2005/09/25] kern/86557 multimedia [sound] Sound Card Volume isn't adjustabl o [2005/10/21] kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: re o [2005/11/08] kern/88687 multimedia [snd_ich] snd_ich locks up machine o [2005/11/11] kern/88820 multimedia [sound] Erratic recognition of VIA 8285 s o [2005/11/15] kern/89046 multimedia [sound] [patch] pchan-related sound corru o [2005/11/18] kern/89224 multimedia [sound] [panic] kernel panic after kldunl 65 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 12:19:03 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1675016A41F for ; Mon, 12 Dec 2005 12:19:03 +0000 (GMT) (envelope-from steve@sohara.org) Received: from sohara.org (sohara.org [192.220.64.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CA4143D83 for ; Mon, 12 Dec 2005 12:18:59 +0000 (GMT) (envelope-from steve@sohara.org) Received: (qmail 67823 invoked by uid 16563); 12 Dec 2005 12:18:57 -0000 Received: from unknown (HELO df1.marelmo.com) ([159.134.157.245]) (envelope-sender ) by 192.220.64.179 (qmail-ldap-1.03) with SMTP for ; 12 Dec 2005 12:18:57 -0000 Date: Mon, 12 Dec 2005 12:15:57 +0000 From: Steve O'Hara-Smith To: freebsd-multimedia@freebsd.org Message-Id: <20051212121557.73deb999.steve@sohara.org> In-Reply-To: <20051212101740.4429343D5A@mx1.FreeBSD.org> References: <20051212101740.4429343D5A@mx1.FreeBSD.org> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i386-pc-dragonfly1) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX, Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: PCTV problem 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: Mon, 12 Dec 2005 12:19:03 -0000 On Mon, 12 Dec 2005 13:17:31 +0300 "S.N.Grigoriev" wrote: > bktr0: MT2032: Companycode=3cbf Part=5a Revision=5a > bktr0: MT2032 not found or unknown type The chances are that this is in fact an MT2050 rather than an MT2032. The bad news is that some months ago I tried porting three different sets of MT2050 support code into the bktr driver and never managed to get a decent picture - I did manage to tune some stations but the result was so badly snowed that it was unwatchable. I abandoned the effort and connected a digital tuner to the S-Video input, I have since moved and become too busy to continue the effort. -- C:>WIN | Directable Mirror Arrays The computer obeys and wins. | A better way to focus the sun You lose and Bill collects. | licences available see | http://www.sohara.org/ From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 12:47:55 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DA5016A41F for ; Mon, 12 Dec 2005 12:47:55 +0000 (GMT) (envelope-from bpetrovi@f.bg.ac.yu) Received: from dekart.f.bg.ac.yu (dekart.f.bg.ac.yu [147.91.75.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9329743D72 for ; Mon, 12 Dec 2005 12:47:49 +0000 (GMT) (envelope-from bpetrovi@f.bg.ac.yu) Received: (from apache@localhost) by dekart.f.bg.ac.yu (8.11.6/8.11.6) id jBCCgeX22734; Mon, 12 Dec 2005 13:42:40 +0100 X-Authentication-Warning: dekart.f.bg.ac.yu: apache set sender to bpetrovi@f.bg.ac.yu using -f Received: from 147.91.1.45 (proxying for unknown) (SquirrelMail authenticated user bpetrovi) by webmail.f.bg.ac.yu with HTTP; Mon, 12 Dec 2005 13:42:40 +0100 (CET) Message-ID: <33731.147.91.1.45.1134391360.squirrel@webmail.f.bg.ac.yu> Date: Mon, 12 Dec 2005 13:42:40 +0100 (CET) From: "Bojan Petrovic" To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: A new detection routine for Microtune MT2032 an MT2050 tuners X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bpetrovi@f.bg.ac.yu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 12:47:55 -0000 I have a Pinnacle PCTV card with a (I think) Microtune MT2050 tuner. It doesn't get detected properly, but one of the tuner registers has a value of 0x42 which should be the MT2050 identifier. I think that the problem might be in the detection code. The tuner identification codes are obtained by reading first (all?) 21 tuner registers and looking at last four values. For MT2032 the register 0x13 should read 0x04, for MT2050, 0x42. The current detection routine reads the registers by calling MT2032_GetRegister() function 21 times in a row. In the Linux bttv driver, the register values are obtained by first sending the 0x00 to the tuner (which I think addresses the first register), doing 21 i2c reads, and finally raising the i2c STOP condition. I'm unable to get any Microtune documentation, but I'm guessing that something changed with the MT2050. It would be great if someone with a MT2032 or a MT2050 tuner could try the following patch. The files patched are from the CURRENT tree (src/dev/bktr/). I would like to know if it breaks the MT2032 detection, and if it succeeds in detecting the MT2050 (it will be written in the kernel log). Also, the kernel log will contain the register values obtained from the old detection code, and values from the new detection code. I'd like to know if there is any difference between the two. If everything goes well, i will send the routines for changing the frequencies of the MT2050. Bojan diff -u current/bktr_core.c currentmod/bktr_core.c --- current/bktr_core.c Mon Dec 12 12:55:39 2005 +++ currentmod/bktr_core.c Mon Dec 12 12:59:42 2005 @@ -442,7 +442,8 @@ */ static int common_ioctl( bktr_ptr_t bktr, ioctl_cmd_t cmd, caddr_t arg ); - +/* We need these for the new Microtune detection routine, so they won't be static */ +#if 0 #if !defined(BKTR_USE_FREEBSD_SMBUS) /* * i2c primitives for low level control of i2c bus. Added for MSP34xx control @@ -452,7 +453,7 @@ static int i2c_write_byte( bktr_ptr_t bktr, unsigned char data); static int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ); #endif - +#endif /* @@ -4070,20 +4071,20 @@ /* from the Linux BTTV i2c driver by Gerd Knorr */ #define BITD 40 -static void i2c_start( bktr_ptr_t bktr) { +void i2c_start( bktr_ptr_t bktr) { OUTL(bktr, BKTR_I2C_DATA_CTL, 1); DELAY( BITD ); /* release data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 3); DELAY( BITD ); /* release clock */ OUTL(bktr, BKTR_I2C_DATA_CTL, 2); DELAY( BITD ); /* lower data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 0); DELAY( BITD ); /* lower clock */ } -static void i2c_stop( bktr_ptr_t bktr) { +void i2c_stop( bktr_ptr_t bktr) { OUTL(bktr, BKTR_I2C_DATA_CTL, 0); DELAY( BITD ); /* lower clock & data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 2); DELAY( BITD ); /* release clock */ OUTL(bktr, BKTR_I2C_DATA_CTL, 3); DELAY( BITD ); /* release data */ } -static int i2c_write_byte( bktr_ptr_t bktr, unsigned char data) { +int i2c_write_byte( bktr_ptr_t bktr, unsigned char data) { int x; int status; @@ -4116,7 +4117,7 @@ return( status ); } -static int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ) { +int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ) { int x; int bit; int byte = 0; diff -u current/bktr_core.h currentmod/bktr_core.h --- current/bktr_core.h Thu Jan 6 02:42:32 2005 +++ currentmod/bktr_core.h Mon Dec 12 12:59:42 2005 @@ -52,6 +52,11 @@ int i2cWrite( bktr_ptr_t bktr, int addr, int byte1, int byte2 ); int i2cRead( bktr_ptr_t bktr, int addr ); +void i2c_start( bktr_ptr_t bktr); +void i2c_stop( bktr_ptr_t bktr); +int i2c_write_byte( bktr_ptr_t bktr, unsigned char data); +int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ); + void msp_dpl_reset( bktr_ptr_t bktr, int i2d_addr ); unsigned int msp_dpl_read( bktr_ptr_t bktr, int i2c_addr, unsigned char dev, unsigned int addr ); void msp_dpl_write( bktr_ptr_t bktr, int i2c_addr, unsigned char dev, @@ -75,6 +80,7 @@ void common_bktr_attach( bktr_ptr_t bktr, int unit, u_long pci_id, u_int rev ); int common_bktr_intr( void *arg ); + /* Prototypes for open, close, read, mmap and ioctl calls */ diff -u current/bktr_tuner.c currentmod/bktr_tuner.c --- current/bktr_tuner.c Sun Nov 13 14:26:38 2005 +++ currentmod/bktr_tuner.c Mon Dec 12 13:10:38 2005 @@ -1120,11 +1120,29 @@ TDA9887_init(bktr, 0); + printf("%s: MT20xx: Reg. dump (old detection):", bktr_name(bktr)); for (i = 0; i < 21; i++) { if ((x = MT2032_GetRegister(i)) == -1) break; + printf(" %02x",x); rdbuf[i] = x; } + + if (i < 21) + return -1; + + printf("\n%s: MT20xx: Reg. dump (new detection):", bktr_name(bktr)); + i2c_start(bktr); + i2c_write_byte(bktr,0xc0); + i2c_write_byte(bktr,0x00); + i2c_start(bktr); + i2c_write_byte(bktr,0xc1); + for (i=0;i<21;i++) { + i2c_read_byte(bktr,&rdbuf[i],i==20); + printf(" %02x",rdbuf[i]); + } + i2c_stop(bktr); + if (rdbuf[0x13]==0x42) printf("\n%s: This might be the MT2050\n", bktr_name(bktr)); if (i < 21) return -1; From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 13:15:27 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E3C016A41F for ; Mon, 12 Dec 2005 13:15:27 +0000 (GMT) (envelope-from bpetrovi@dekart.f.bg.ac.yu) Received: from dekart.f.bg.ac.yu (dekart.f.bg.ac.yu [147.91.75.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A80943D5E for ; Mon, 12 Dec 2005 13:15:26 +0000 (GMT) (envelope-from bpetrovi@dekart.f.bg.ac.yu) Received: from localhost (bpetrovi@localhost) by dekart.f.bg.ac.yu (8.11.6/8.11.6) with ESMTP id jBCDAKa23675 for ; Mon, 12 Dec 2005 14:10:20 +0100 Date: Mon, 12 Dec 2005 14:10:19 +0100 (CET) From: Bojan PETROVIC To: freebsd-multimedia@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-RAVMilter-Version: 8.4.1(snapshot 20020919) (dekart) Subject: Re: A new detection routine for Microtune MT2032 an MT2050 tuners 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: Mon, 12 Dec 2005 13:15:27 -0000 I'm sorry, my email client magled the patch by wrapping the lines This should be ok: diff -u current/bktr_core.c currentmod/bktr_core.c --- current/bktr_core.c Mon Dec 12 12:55:39 2005 +++ currentmod/bktr_core.c Mon Dec 12 12:59:42 2005 @@ -442,7 +442,8 @@ */ static int common_ioctl( bktr_ptr_t bktr, ioctl_cmd_t cmd, caddr_t arg ); - +/* We need these for the new Microtune detection routine, so they won't be static */ +#if 0 #if !defined(BKTR_USE_FREEBSD_SMBUS) /* * i2c primitives for low level control of i2c bus. Added for MSP34xx control @@ -452,7 +453,7 @@ static int i2c_write_byte( bktr_ptr_t bktr, unsigned char data); static int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ); #endif - +#endif /* @@ -4070,20 +4071,20 @@ /* from the Linux BTTV i2c driver by Gerd Knorr */ #define BITD 40 -static void i2c_start( bktr_ptr_t bktr) { +void i2c_start( bktr_ptr_t bktr) { OUTL(bktr, BKTR_I2C_DATA_CTL, 1); DELAY( BITD ); /* release data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 3); DELAY( BITD ); /* release clock */ OUTL(bktr, BKTR_I2C_DATA_CTL, 2); DELAY( BITD ); /* lower data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 0); DELAY( BITD ); /* lower clock */ } -static void i2c_stop( bktr_ptr_t bktr) { +void i2c_stop( bktr_ptr_t bktr) { OUTL(bktr, BKTR_I2C_DATA_CTL, 0); DELAY( BITD ); /* lower clock & data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 2); DELAY( BITD ); /* release clock */ OUTL(bktr, BKTR_I2C_DATA_CTL, 3); DELAY( BITD ); /* release data */ } -static int i2c_write_byte( bktr_ptr_t bktr, unsigned char data) { +int i2c_write_byte( bktr_ptr_t bktr, unsigned char data) { int x; int status; @@ -4116,7 +4117,7 @@ return( status ); } -static int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ) { +int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ) { int x; int bit; int byte = 0; diff -u current/bktr_core.h currentmod/bktr_core.h --- current/bktr_core.h Thu Jan 6 02:42:32 2005 +++ currentmod/bktr_core.h Mon Dec 12 12:59:42 2005 @@ -52,6 +52,11 @@ int i2cWrite( bktr_ptr_t bktr, int addr, int byte1, int byte2 ); int i2cRead( bktr_ptr_t bktr, int addr ); +void i2c_start( bktr_ptr_t bktr); +void i2c_stop( bktr_ptr_t bktr); +int i2c_write_byte( bktr_ptr_t bktr, unsigned char data); +int i2c_read_byte( bktr_ptr_t bktr, unsigned char *data, int last ); + void msp_dpl_reset( bktr_ptr_t bktr, int i2d_addr ); unsigned int msp_dpl_read( bktr_ptr_t bktr, int i2c_addr, unsigned char dev, unsigned int addr ); void msp_dpl_write( bktr_ptr_t bktr, int i2c_addr, unsigned char dev, @@ -75,6 +80,7 @@ void common_bktr_attach( bktr_ptr_t bktr, int unit, u_long pci_id, u_int rev ); int common_bktr_intr( void *arg ); + /* Prototypes for open, close, read, mmap and ioctl calls */ diff -u current/bktr_tuner.c currentmod/bktr_tuner.c --- current/bktr_tuner.c Sun Nov 13 14:26:38 2005 +++ currentmod/bktr_tuner.c Mon Dec 12 13:10:38 2005 @@ -1120,11 +1120,29 @@ TDA9887_init(bktr, 0); + printf("%s: MT20xx: Reg. dump (old detection):", bktr_name(bktr)); for (i = 0; i < 21; i++) { if ((x = MT2032_GetRegister(i)) == -1) break; + printf(" %02x",x); rdbuf[i] = x; } + + if (i < 21) + return -1; + + printf("\n%s: MT20xx: Reg. dump (new detection):", bktr_name(bktr)); + i2c_start(bktr); + i2c_write_byte(bktr,0xc0); + i2c_write_byte(bktr,0x00); + i2c_start(bktr); + i2c_write_byte(bktr,0xc1); + for (i=0;i<21;i++) { + i2c_read_byte(bktr,&rdbuf[i],i==20); + printf(" %02x",rdbuf[i]); + } + i2c_stop(bktr); + if (rdbuf[0x13]==0x42) printf("\n%s: This might be the MT2050\n", bktr_name(bktr)); if (i < 21) return -1; From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 14:42:58 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C75816A41F for ; Mon, 12 Dec 2005 14:42:58 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: from fuego.fadesa.es (fuego.fadesa.es [195.55.55.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13E0443D45 for ; Mon, 12 Dec 2005 14:42:54 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: (from root@localhost) by fuego.fadesa.es (8.9.3p2/8.8.8) id OAA10074 for ; Mon, 12 Dec 2005 14:47:28 +0100 Received: from tierra.fadesa.es(195.55.55.7) by fuego.fadesa.es Mon, 12 Dec 05 14:47:09 +0100 Received: from fadesa.es (filemon.fadesa.es [195.55.55.6] (may be forged)) by tierra.fadesa.es (8.9.3p2/8.8.8) with ESMTP id OAA00269 for ; Mon, 12 Dec 2005 14:39:37 +0100 Sender: fan@fadesa.es Message-ID: <439D7D99.CCC77815@fadesa.es> Date: Mon, 12 Dec 2005 14:39:37 +0100 From: "=?iso-8859-15?Q?Jos=E9?= M. =?iso-8859-15?Q?Fandi=F1o?=" Organization: Inmobiliaria FADESA X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.30-ow1 i686) X-Accept-Language: gl, en, es MIME-Version: 1.0 CC: freebsd-multimedia@freebsd.org References: <20051206020536.GA16108@panix.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Logged: Logged by tierra.fadesa.es as OAA00269 at Mon Dec 12 14:39:37 2005 Subject: Re: Selecting sound output device? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@fadesa.es List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 14:42:58 -0000 Jesse Sheidlower wrote: > Now I'd like to know how to use pcm1 as the output device any time > the USB speakers are plugged in, or at least how to control this > manually. Both devices are present: > > $ cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x1c00, 0x18c0 irq 11 bufsz 16384 kld snd_ich (1p/1r/4v channels duplex default) > pcm1: at addr ? (1p/0r/1v channels duplex) > mode 1:(output) 1ch, 16/16bit, pcm, 6400-48000Hz > mode 2:(output) 2ch, 16/16bit, pcm, 6400-48000Hz > > So, if I'm not selecting it in XMMS--if I want to use it for > all output--how do I either automatically or explicitly select > pcm1 as my sound output device? (I'm using the speakers with a > laptop, so I expect to be plugging and unplugging them at other > times than boot, if that matters.) I haven't you hardware but I'd say that the solution involves playing with devd and devd.conf in such way that when the spakers are pluggled a softlink must be created pointing the proper device (ln -s /dev/pcm1 /dev/pcm on attach) Regards, -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d- s+:+() a31 C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w--- O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++ G++ e- h+(++) !r !z ------END GEEK CODE BLOCK------ From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 13 01:42:11 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D7E316A41F for ; Tue, 13 Dec 2005 01:42:11 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mtai04.charter.net (mtai04.charter.net [209.225.8.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6806A43D66 for ; Tue, 13 Dec 2005 01:42:10 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mxip21-10.charter.net ([10.20.202.71]) by mtai04.charter.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20051213012408.XMRP4233.mtai04.charter.net@mxip21-10.charter.net> for ; Mon, 12 Dec 2005 20:24:08 -0500 Received: from 68-114-28-99.dhcp.gwnt.ga.charter.com (HELO services.403forbidden.net) ([68.114.28.99]) by mxip21-10.charter.net with ESMTP; 12 Dec 2005 20:24:08 -0500 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= Received: from atlantis.403forbidden.net (atlantis.403forbidden.net [10.0.0.10]) by services.403forbidden.net (8.13.1/8.13.1) with ESMTP id jBD1O8S5013018; Mon, 12 Dec 2005 20:24:08 -0500 (EST) (envelope-from steven@403forbidden.net) Date: Mon, 12 Dec 2005 20:24:03 -0500 (EST) From: "Steven S." To: freebsd-multimedia@freebsd.org In-Reply-To: <20051212030939.GA1093@rndsoft.co.kr> Message-ID: <20051212201440.G701@atlantis.403forbidden.net> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> <20051212030939.GA1093@rndsoft.co.kr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) 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: Tue, 13 Dec 2005 01:42:11 -0000 same problem. no mixer devices, no sound. pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 on pci0 pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: pcm0: agg_rdcodec: PROGRESS timed out. pcm0: agg_rdcodec: RW_DONE timed out. pcm0: ac97 codec reports dac not ready pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_wrcodec: PROGRESS timed out. pcm0: agg_wrcodec: PROGRESS timed out. FreeBSD Audio Driver (newpcm) Installed devices: pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 on pci0 (4p/1r/4v channels duplex default) hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.verbose: 1 hw.snd.maxautovchans: 4 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 16384 hw.snd.pcm0.vchans: 4 hw.snd.pcm0.hwvol_step: 5 hw.snd.pcm0.hwvol_mixer: vol $ mixer Mixer rec is currently set to 100:100 $ On Mon, 12 Dec 2005, Pyun YongHyeon wrote: > On Mon, Dec 05, 2005 at 08:30:53PM -0500, Steven S. wrote: > > > > none1@pci0:10:0: class=0x078000 card=0x00011179 chip=0x07011179 > > rev=0x23 hdr=0x00 > > vendor = 'Toshiba America Information Systems' > > device = 'vt82c693 PCI Communication Device' > > class = simple comms > > pcm0@pci0:12:0: class=0x040100 card=0x00011179 chip=0x1978125d rev=0x10 > > hdr=0x00 > > vendor = 'ESS Technology' > > device = 'ES1978 Maestro-2E Audiodrive, ES1970 Canyon3D' > > class = multimedia > > subclass = audio > > > > when i load the module I get the following > > > > pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 > > on pci0 > > pcm0: agg_rdcodec() RW_DONE timed out. > > pcm0: agg_rdcodec() PROGLESS timed out. > > Would you try a new patch? > > http://people.freebsd.org/~yongari/maestro.c > http://people.freebsd.org/~yongari/maestro_reg.h > > Recodring was not tested at all, let's take one step at a time. > -- > Regards, > Pyun YongHyeon > > From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 13 04:18:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ABA716A41F for ; Tue, 13 Dec 2005 04:18:46 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id C403143D55 for ; Tue, 13 Dec 2005 04:18:44 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id o1so1644634nzf for ; Mon, 12 Dec 2005 20:18:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=kVBPjm++BcrJoQ9kabMAhS5kp6e0haBCkYJmVKu8mhfbD/I4h+RGADO94E/pKkavtqlmGALW6OcRPcAqaLGZLHEcU0B4hDcqjHjf1CiwnWD9z1sS8BZ5b97XB9oIPAWc4oPZ8WN82SA4OBOZD9gUT9cresfrqdXO4Kg3D3p/bCk= Received: by 10.36.39.9 with SMTP id m9mr6738217nzm; Mon, 12 Dec 2005 20:18:44 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 10sm10520268nzo.2005.12.12.20.18.42; Mon, 12 Dec 2005 20:18:43 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.5/8.13.5) with ESMTP id jBD4IVNn006810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Dec 2005 13:18:31 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.5/8.13.5/Submit) id jBD4IU06006809; Tue, 13 Dec 2005 13:18:30 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 13 Dec 2005 13:18:30 +0900 From: Pyun YongHyeon To: "Steven S." Message-ID: <20051213041830.GB5920@rndsoft.co.kr> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> <20051212030939.GA1093@rndsoft.co.kr> <20051212201440.G701@atlantis.403forbidden.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <20051212201440.G701@atlantis.403forbidden.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 04:18:46 -0000 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 12, 2005 at 08:24:03PM -0500, Steven S. wrote: > > > same problem. no mixer devices, no sound. > I guess the codec may need some special handling. Please apply attached patch too. Did it make any difference? -- Regards, Pyun YongHyeon --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ac97.patch.1213" --- sys/dev/sound/pcm/ac97.c.orig Tue Dec 13 09:29:05 2005 +++ sys/dev/sound/pcm/ac97.c Tue Dec 13 13:12:08 2005 @@ -317,10 +317,30 @@ return AC97_READ(codec->methods, codec->devinfo, reg); } +static int +ac97_valid_reg(struct ac97_info *codec, int reg) +{ + + switch (codec->id) { + case 0x414b4d00: /* AK4540 */ + case 0x414b4d01: /* AK4542 */ + if (reg <= 0x1c || reg == 0x20 || reg == 0x26 || reg >= 0x7c) + return 1; + return 0; + /* NOTREACHED */ + break; + default: + break; + } + + return 1; +} + void ac97_wrcd(struct ac97_info *codec, int reg, u_int16_t val) { - AC97_WRITE(codec->methods, codec->devinfo, reg, val); + if (ac97_valid_reg(codec, reg)) + AC97_WRITE(codec->methods, codec->devinfo, reg, val); } static void --82I3+IH0IqGh5yIs-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 13 06:40:04 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DB7E16A41F for ; Tue, 13 Dec 2005 06:40:04 +0000 (GMT) (envelope-from gregory@mdmspb.com) Received: from mail.mdmspb.com (mail.mdmspb.com [212.119.187.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 14A4C43D49 for ; Tue, 13 Dec 2005 06:40:02 +0000 (GMT) (envelope-from gregory@mdmspb.com) Date: Tue, 13 Dec 2005 09:39:58 +0300 From: "S.N.Grigoriev" To: freebsd-multimedia@freebsd.org In-Reply-To: References: Organization: MDM-Bank SPb PLC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-fixed: Message-Id: <20051213064002.14A4C43D49@mx1.FreeBSD.org> Subject: Re: A new detection routine for Microtune MT2032 an MT2050 tuners 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: Tue, 13 Dec 2005 06:40:04 -0000 On Mon, 12 Dec 2005 13:42:40 +0100 (CET) Bojan PETROVIC wrote: > It would be great if someone with a MT2032 or a MT2050 tuner could try > the following patch. The files patched are from the CURRENT tree > (src/dev/bktr/). Hi, Bojan, I tried to use your patches with the v.6.0 (amd64) source tree. Compilation process finished with errors: linking kernel bktr_tuner.o(.text+0x447): In function `mt2032_init': : undefined reference to `i2c_start' bktr_tuner.o(.text+0x454): In function `mt2032_init': : undefined reference to `i2c_write_byte' bktr_tuner.o(.text+0x45e): In function `mt2032_init': : undefined reference to `i2c_write_byte' bktr_tuner.o(.text+0x466): In function `mt2032_init': : undefined reference to `i2c_start' bktr_tuner.o(.text+0x473): In function `mt2032_init': : undefined reference to `i2c_write_byte' bktr_tuner.o(.text+0x482): In function `mt2032_init': : undefined reference to `i2c_read_byte' bktr_tuner.o(.text+0x4ae): In function `mt2032_init': : undefined reference to `i2c_read_byte' bktr_tuner.o(.text+0x4da): In function `mt2032_init': : undefined reference to `i2c_read_byte' bktr_tuner.o(.text+0x506): In function `mt2032_init': : undefined reference to `i2c_read_byte' bktr_tuner.o(.text+0x532): In function `mt2032_init': : undefined reference to `i2c_read_byte' bktr_tuner.o(.text+0x555): In function `mt2032_init': : undefined reference to `i2c_stop' *** Error code 1 Stop in /usr/obj/usr/src/sys/NEWBKTR. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Regards, Serguey. From owner-freebsd-multimedia@FreeBSD.ORG Tue Dec 13 11:14:07 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8C2516A41F for ; Tue, 13 Dec 2005 11:14:07 +0000 (GMT) (envelope-from bpetrovi@f.bg.ac.yu) Received: from dekart.f.bg.ac.yu (dekart.f.bg.ac.yu [147.91.75.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E76B43D90 for ; Tue, 13 Dec 2005 11:13:33 +0000 (GMT) (envelope-from bpetrovi@f.bg.ac.yu) Received: (from apache@localhost) by dekart.f.bg.ac.yu (8.11.6/8.11.6) id jBDB8Ol09781; Tue, 13 Dec 2005 12:08:24 +0100 X-Authentication-Warning: dekart.f.bg.ac.yu: apache set sender to bpetrovi@f.bg.ac.yu using -f Received: from 147.91.1.43 (proxying for 147.91.1.45) (SquirrelMail authenticated user bpetrovi) by webmail.f.bg.ac.yu with HTTP; Tue, 13 Dec 2005 12:08:24 +0100 (CET) Message-ID: <43342.147.91.1.43.1134472104.squirrel@webmail.f.bg.ac.yu> Date: Tue, 13 Dec 2005 12:08:24 +0100 (CET) From: "Bojan Petrovic" To: In-Reply-To: <20051212120042.0283416A423@hub.freebsd.org> References: <20051212120042.0283416A423@hub.freebsd.org> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: A new detection routine for Microtune MT2032 an MT2050 tuners X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bpetrovi@f.bg.ac.yu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 11:14:07 -0000 > Hi, Bojan, > > I tried to use your patches with the v.6.0 (amd64) source tree. > Compilation process finished with errors: > > linking kernel > bktr_tuner.o(.text+0x447): In function `mt2032_init': > : undefined reference to `i2c_start' Hi. Thank you for trying the patch. I think I know what the problem is. Try commenting the "options BKTR_USE_FREEBSD_SMBUS" line from your kernel config file. I wasn't using that option so the bug came through unnoticed. I'll try to make the patch work with this option. Bojan From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 01:16:44 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42ACC16A41F for ; Wed, 14 Dec 2005 01:16:44 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mtai04.charter.net (mtai04.charter.net [209.225.8.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37ED143D60 for ; Wed, 14 Dec 2005 01:16:42 +0000 (GMT) (envelope-from steven@403forbidden.net) Received: from mxip08-10.charter.net ([10.20.200.78]) by mtai04.charter.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20051214011642.DXNV4233.mtai04.charter.net@mxip08-10.charter.net> for ; Tue, 13 Dec 2005 20:16:42 -0500 Received: from 68-114-28-99.dhcp.gwnt.ga.charter.com (HELO services.403forbidden.net) ([68.114.28.99]) by mxip08-10.charter.net with ESMTP; 13 Dec 2005 20:16:39 -0500 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAgAAA+kAAAPv Received: from atlantis.403forbidden.net (atlantis.403forbidden.net [10.0.0.10]) by services.403forbidden.net (8.13.1/8.13.1) with ESMTP id jBE1Go19023599; Tue, 13 Dec 2005 20:16:50 -0500 (EST) (envelope-from steven@403forbidden.net) Date: Tue, 13 Dec 2005 20:16:44 -0500 (EST) From: "Steven S." To: freebsd-multimedia@freebsd.org In-Reply-To: <20051213041830.GB5920@rndsoft.co.kr> Message-ID: <20051213200617.K701@atlantis.403forbidden.net> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> <20051212030939.GA1093@rndsoft.co.kr> <20051212201440.G701@atlantis.403forbidden.net> <20051213041830.GB5920@rndsoft.co.kr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) 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: Wed, 14 Dec 2005 01:16:44 -0000 I tried that patch and no difference. if it helps here is the verbose ssndstat output Installed devices: pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 on pci0 (4p/1r/4v channels duplex default) [pcm0:play:0]: spd 44100, fmt 0x10000010, flags 0x00001000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_vchan_s16(0x10000010) -> {hardware} [pcm0:play:1]: spd 44100, fmt 0x10000010, flags 0x00000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x10000010) -> {hardware} [pcm0:play:2]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:play:3]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 interrupts 0, overruns 0, hfree 16384, sfree 0 {hardware} -> feeder_root(0x00000000) -> {userland} pcm0:play:0[pcm0:virtual:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} pcm0:play:0[pcm0:virtual:1]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} pcm0:play:0[pcm0:virtual:2]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} pcm0:play:0[pcm0:virtual:3]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x00000000) -> {hardware} nothing else changed in dmesg or mixer On Tue, 13 Dec 2005, Pyun YongHyeon wrote: > On Mon, Dec 12, 2005 at 08:24:03PM -0500, Steven S. wrote: > > > > > > same problem. no mixer devices, no sound. > > > > I guess the codec may need some special handling. > Please apply attached patch too. > Did it make any difference? > > -- > Regards, > Pyun YongHyeon > From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 01:49:07 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4BAE16A420 for ; Wed, 14 Dec 2005 01:49:07 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 751B543D8A for ; Wed, 14 Dec 2005 01:48:40 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so1813484nzo for ; Tue, 13 Dec 2005 17:48:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=HFgI4VbY90kGPGKUHlcIEjpft4sdnytaXSUZTX+oI5l6t0t22iWDUBbvbDNBIcDc1AaG/7FJuq4dAm3iierU5+nmDnxGfanOWEzjs6Wfy3sddvDwi64AgNp03FcpikaTjWT82sHNlEntxjsdQyPW1hQmnb4fd/+MDEDo1iJ2NXM= Received: by 10.36.129.2 with SMTP id b2mr11132nzd; Tue, 13 Dec 2005 17:48:40 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 12sm9450nzn.2005.12.13.17.48.38; Tue, 13 Dec 2005 17:48:40 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.5/8.13.5) with ESMTP id jBE1mc6W010458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Dec 2005 10:48:38 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.5/8.13.5/Submit) id jBE1mcPA010457; Wed, 14 Dec 2005 10:48:38 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 14 Dec 2005 10:48:38 +0900 From: Pyun YongHyeon To: "Steven S." Message-ID: <20051214014838.GA10021@rndsoft.co.kr> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> <20051212030939.GA1093@rndsoft.co.kr> <20051212201440.G701@atlantis.403forbidden.net> <20051213041830.GB5920@rndsoft.co.kr> <20051213200617.K701@atlantis.403forbidden.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051213200617.K701@atlantis.403forbidden.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org, ariff@freebsd.org Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 01:49:07 -0000 On Tue, Dec 13, 2005 at 08:16:44PM -0500, Steven S. wrote: > > > I tried that patch and no difference. > > if it helps here is the verbose ssndstat output > > > Installed devices: > pcm0: port 0xfc00-0xfcff irq 11 at device 12.0 > on pci0 (4p/1r/4v channels duplex default) > [pcm0:play:0]: spd 44100, fmt 0x10000010, flags 0x00001000, > 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_vchan_s16(0x10000010) -> {hardware} > [pcm0:play:1]: spd 44100, fmt 0x10000010, flags 0x00000000, > 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x10000010) -> {hardware} > [pcm0:play:2]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, > 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:play:3]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, > 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, overruns 0, hfree 16384, sfree 0 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm0:play:0[pcm0:virtual:0]: spd 0, fmt 0x00000000/0x00000008, > flags 0x10000000, 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000000) -> {hardware} > pcm0:play:0[pcm0:virtual:1]: spd 0, fmt 0x00000000/0x00000008, > flags 0x10000000, 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000000) -> {hardware} > pcm0:play:0[pcm0:virtual:2]: spd 0, fmt 0x00000000/0x00000008, > flags 0x10000000, 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000000) -> {hardware} > pcm0:play:0[pcm0:virtual:3]: spd 0, fmt 0x00000000/0x00000008, > flags 0x10000000, 0x00000000 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000000) -> {hardware} > > nothing else changed in dmesg or mixer > Then I have no idea as my system works here. It seems it would be difficult to fix the problem without accessing the hardware. :-( How about setting hw.pci.enable_io_modes=0 or disabling ACPI in loader.conf? Maybe ariff@ has better idea.(CCed) -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 03:40:06 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5EC716A41F for ; Wed, 14 Dec 2005 03:40:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7336243D68 for ; Wed, 14 Dec 2005 03:40:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBE3e6wo027119 for ; Wed, 14 Dec 2005 03:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBE3e650027118; Wed, 14 Dec 2005 03:40:06 GMT (envelope-from gnats) Date: Wed, 14 Dec 2005 03:40:06 GMT Message-Id: <200512140340.jBE3e650027118@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Cc: Subject: Re: kern/82043: [sound] snd_emu10k1 - mixer does not work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ppl@nbnet.nb.ca List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 03:40:07 -0000 The following reply was made to PR kern/82043; it has been noted by GNATS. From: To: Cc: Subject: Re: kern/82043: [sound] snd_emu10k1 - mixer does not work. Date: Tue, 13 Dec 2005 22:32:19 -0500 I have the same problem. After some troubleshooting I've found out that the problem was with the black jack (back speakers). `mixer pcm` works fine for the green jack (front speakers). You get the impression that its not working because the sound coming from the black jack is much louder. Problem : the black jack is unfacted by mixer. Workaround: disconnect the black jack and only connect the green jack (if you need rear speakers just swap) #pciconf -l -v [...] pcm0@pci2:7:0: class=0x040100 card=0x80651102 chip=0x00021102 rev=0x0a hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780' class = multimedia subclass = audio emujoy0@pci2:7:1: class=0x098000 card=0x00201102 chip=0x70021102 rev=0x0a hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Game Port' class = input device [...] As the PR originator, there's no warning/errors in dmesg boot. From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 03:40:11 2005 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6F816A41F for ; Wed, 14 Dec 2005 03:40:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAB6243D69 for ; Wed, 14 Dec 2005 03:40:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBE3e9iE027126 for ; Wed, 14 Dec 2005 03:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBE3e9I0027125; Wed, 14 Dec 2005 03:40:09 GMT (envelope-from gnats) Date: Wed, 14 Dec 2005 03:40:09 GMT Message-Id: <200512140340.jBE3e9I0027125@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Cc: Subject: Re: kern/82043: [sound] snd_emu10k1 - mixer does not work. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ppl@nbnet.nb.ca List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 03:40:11 -0000 The following reply was made to PR kern/82043; it has been noted by GNATS. From: To: , Cc: Subject: Re: kern/82043: [sound] snd_emu10k1 - mixer does not work. Date: Tue, 13 Dec 2005 22:34:32 -0500 I've foggot to mention that I'm testing on FreeBSD 6.0. From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 06:23:18 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A0E116A41F for ; Wed, 14 Dec 2005 06:23:18 +0000 (GMT) (envelope-from gregory@mdmspb.com) Received: from mail.mdmspb.com (mail.mdmspb.com [212.119.187.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 51BD043D64 for ; Wed, 14 Dec 2005 06:23:15 +0000 (GMT) (envelope-from gregory@mdmspb.com) Date: Wed, 14 Dec 2005 09:23:04 +0300 From: "S.N.Grigoriev" To: freebsd-multimedia@freebsd.org In-Reply-To: References: Organization: MDM-Bank SPb PLC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-fixed: Message-Id: <20051214062315.51BD043D64@mx1.FreeBSD.org> Cc: Subject: Re: A new detection routine for Microtune MT2032 an MT2050 tuners 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: Wed, 14 Dec 2005 06:23:18 -0000 Hi, I've tested these patches. dmesg output is bktr0: mem 0xe8001000-0xe8001fff irq 19 at device 7.0 on pci1 bktr0: [GIANT-LOCKED] bktr0: MT20xx: Reg. dump (old detection): 42 2f 25 c1 00 63 10 88 29 01 85 99 e3 ad f0 15 24 3c bf 5a 5a bktr0: MT20xx: Reg. dump (new detection): 42 2f 25 c1 00 63 10 88 29 01 85 99 e3 ad f0 15 24 3c bf 42 2f bktr0: This might be the MT2050 bktr0: MT2032: Companycode=3cbf Part=42 Revision=2f bktr0: MT2032 not found or unknown type bktr0: Detected a MSP3410G-B11 at 0x80 bktr0: Pinnacle/Miro TV, Philips PAL I tuner, msp3400c stereo. Regards, Serguey. From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 13:14:06 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4747816A41F for ; Wed, 14 Dec 2005 13:14:06 +0000 (GMT) (envelope-from timothy@open-networks.net) Received: from titan.open-networks.net (ns.open-networks.net [202.173.176.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD4EF43D55 for ; Wed, 14 Dec 2005 13:14:05 +0000 (GMT) (envelope-from timothy@open-networks.net) Received: from [192.168.1.200] (unknown [192.168.1.1]) by titan.open-networks.net (Postfix) with ESMTP id 72D20B83F for ; Wed, 14 Dec 2005 23:14:22 +1000 (EST) Message-ID: <43A01AAE.1050603@open-networks.net> Date: Wed, 14 Dec 2005 23:14:22 +1000 From: Timothy Smith User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051212) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: asus mobo, poor sound quality 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: Wed, 14 Dec 2005 13:14:06 -0000 hi i have an asus p4s800-mx with an onboard adi 1888 audio, i load it with kldload snd_driver, loads fine, here is the output of the sound device %cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x9400, 0x9000 irq 18 bufsz 16384 kld snd_ich (1p/1r/0v channels duplex default) it works alright, but the sound quality is really bad, crackly and muffled bass. i know it's not my speakers or my setup because it works perfectly on my windows system which sits right beside the bsd system. it is definately the freebsd driver. so, is there some way i can fix this or is freebsd totally gimped with this chip? it's supposed to be ac97 compatable. thanks in advance From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 14 17:54:55 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F081316A41F for ; Wed, 14 Dec 2005 17:54:55 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from smtp.dnainternet.net (smtp.dnainternet.net [62.241.254.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35A1D43D68 for ; Wed, 14 Dec 2005 17:54:43 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-184-46.dsl.kpy.customers.dnainternet.fi ([212.149.184.46]:62994 "EHLO [192.168.1.11]" smtp-auth: TLS-CIPHER: TLS-PEER-CN1: ) by smtp2.dnainternet.net with ESMTP id S1232642AbVLNRyj (ORCPT ); Wed, 14 Dec 2005 19:54:39 +0200 Message-ID: <43A05C5D.70005@dnainternet.net> Date: Wed, 14 Dec 2005 19:54:37 +0200 From: Erik Udo User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051130) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Timothy Smith References: <43A01AAE.1050603@open-networks.net> In-Reply-To: <43A01AAE.1050603@open-networks.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: multimedia@freebsd.org Subject: Re: asus mobo, poor sound quality 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: Wed, 14 Dec 2005 17:54:56 -0000 Timothy Smith wrote: > hi i have an asus p4s800-mx with an onboard adi 1888 audio, i load it > with kldload snd_driver, loads fine, here is the output of the sound device > > %cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x9400, 0x9000 irq 18 bufsz 16384 kld snd_ich > (1p/1r/0v channels duplex default) > > it works alright, but the sound quality is really bad, crackly and > muffled bass. i know it's not my speakers or my setup because it works > perfectly on my windows system which sits right beside the bsd system. > it is definately the freebsd driver. > > so, is there some way i can fix this or is freebsd totally gimped with > this chip? it's supposed to be ac97 compatable. > > thanks in advance > > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to > "freebsd-multimedia-unsubscribe@freebsd.org" > Depending on your version (if these patches are mergerd?): site: http://staff.mybsd.org.my/skywizard/FreeBSD/sound/old/ Note on via823x --------------- (Maybe) You can get better sound (no pop/crackle) by disabling dxs channel method. To do this, add hint.pcm.0.via_dxs_disabled="1" into your /boot/device.hints. Basically: hint.pcm..via_dxs_disabled="1" Enabling vchan also helps a lot, especially to prevent overruns Since freebsd native sound multiplexer is so superior, you shouldn't worry about losing dxs hardware capability. From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 15 07:00:45 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38B2316A41F for ; Thu, 15 Dec 2005 07:00:45 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6FCE43D76 for ; Thu, 15 Dec 2005 07:00:14 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so297716nzo for ; Wed, 14 Dec 2005 23:00:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=a8eBJ9cEqE9aoWohVI5kNHen9Fgkk4P5etiS8weHVpbdkFx7eSCr2eHT6qCZUMnDvtAaISAubBipTM88BL5XkJ/U6L1m3LUHkCq9yMPxbTWBtDoonotMzEIgFMbkaf1xZHJxmym0RP46tr6S2Qtjzj4Wa9qDzeZhBQSZRHwF1Jw= Received: by 10.37.2.15 with SMTP id e15mr1574384nzi; Wed, 14 Dec 2005 23:00:13 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id c12sm2202530nzc.2005.12.14.23.00.12; Wed, 14 Dec 2005 23:00:13 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.5/8.13.5) with ESMTP id jBF70R12015437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Dec 2005 16:00:27 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.5/8.13.5/Submit) id jBF70RIP015436; Thu, 15 Dec 2005 16:00:27 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 15 Dec 2005 16:00:27 +0900 From: Pyun YongHyeon To: Timothy Smith Message-ID: <20051215070026.GE14073@rndsoft.co.kr> References: <43A01AAE.1050603@open-networks.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <43A01AAE.1050603@open-networks.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org Subject: Re: asus mobo, poor sound quality X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 07:00:45 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 14, 2005 at 11:14:22PM +1000, Timothy Smith wrote: > hi i have an asus p4s800-mx with an onboard adi 1888 audio, i load it > with kldload snd_driver, loads fine, here is the output of the sound device > > %cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x9400, 0x9000 irq 18 bufsz 16384 kld snd_ich > (1p/1r/0v channels duplex default) > > it works alright, but the sound quality is really bad, crackly and > muffled bass. i know it's not my speakers or my setup because it works > perfectly on my windows system which sits right beside the bsd system. > it is definately the freebsd driver. > > so, is there some way i can fix this or is freebsd totally gimped with > this chip? it's supposed to be ac97 compatable. > It seems that Linux has a workaround for SiS 7012. How about this patch(generated against HEAD)? -- Regards, Pyun YongHyeon --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ich.sis.patch" --- sys/dev/sound/pci/ich.c.orig Mon Nov 21 12:37:43 2005 +++ sys/dev/sound/pci/ich.c Thu Dec 15 15:57:01 2005 @@ -146,7 +146,7 @@ device_t dev; int hasvra, hasvrm, hasmic; unsigned int chnum, bufsz; - int sample_size, swap_reg; + int sample_size, sts_reg; struct resource *nambar, *nabmbar, *irq; int regtype, nambarid, nabmbarid, irqid; @@ -511,9 +511,7 @@ if ((ch->imask & gs) == 0) continue; gs &= ~ch->imask; - st = ich_rd(sc, ch->regbase + - (sc->swap_reg ? ICH_REG_X_PICB : ICH_REG_X_SR), - 2); + st = ich_rd(sc, ch->regbase + sc->sts_reg, 2); st &= ICH_X_SR_FIFOE | ICH_X_SR_BCIS | ICH_X_SR_LVBCI; if (st & (ICH_X_SR_BCIS | ICH_X_SR_LVBCI)) { /* block complete - update buffer */ @@ -538,9 +536,7 @@ } /* clear status bit */ - ich_wr(sc, ch->regbase + - (sc->swap_reg ? ICH_REG_X_PICB : ICH_REG_X_SR), - st, 2); + ich_wr(sc, ch->regbase + sc->sts_reg, st, 2); } ICH_UNLOCK(sc); if (gs != 0) { @@ -710,6 +706,12 @@ return ENOSPC; } + if (sc->vendor == SIS_VENDORID && sc->devid == SIS_7012) { + /* unmute output, from Linux */ + ich_wr(sc, ICH_REG_SIS_CR, + ich_rd(sc, ICH_REG_SIS_CR, 2) | ICH_SIS_CR_UNMUTE, 2); + } + return 0; } @@ -757,10 +759,13 @@ * There really should be a general "quirks" mechanism. */ if (vendor == SIS_VENDORID && devid == SIS_7012) { - sc->swap_reg = 1; + sc->sts_reg = ICH_REG_X_PICB; sc->sample_size = 1; + /* unmute output, from Linux */ + ich_wr(sc, ICH_REG_SIS_CR, + ich_rd(sc, ICH_REG_SIS_CR, 2) | ICH_SIS_CR_UNMUTE, 2); } else { - sc->swap_reg = 0; + sc->sts_reg = ICH_REG_X_SR; sc->sample_size = 2; } --- sys/dev/sound/pci/ich.h.orig Sat Apr 30 14:31:15 2005 +++ sys/dev/sound/pci/ich.h Thu Dec 15 15:46:41 2005 @@ -53,6 +53,10 @@ #define ICH_REG_GLOB_STA 0x30 #define ICH_REG_ACC_SEMA 0x34 +/* SiS register, from Linux */ +#define ICH_REG_SIS_CR 0x4c +#define ICH_SIS_CR_UNMUTE 0x01 + /* Status Register Values */ #define ICH_X_SR_DCH 0x0001 #define ICH_X_SR_CELV 0x0002 --OXfL5xGRrasGEqWY-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 15 10:16:44 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0157316A41F for ; Thu, 15 Dec 2005 10:16:44 +0000 (GMT) (envelope-from bpetrovi@f.bg.ac.yu) Received: from dekart.f.bg.ac.yu (dekart.f.bg.ac.yu [147.91.75.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BA6843D4C for ; Thu, 15 Dec 2005 10:16:41 +0000 (GMT) (envelope-from bpetrovi@f.bg.ac.yu) Received: (from apache@localhost) by dekart.f.bg.ac.yu (8.11.6/8.11.6) id jBFABW215873; Thu, 15 Dec 2005 11:11:32 +0100 X-Authentication-Warning: dekart.f.bg.ac.yu: apache set sender to bpetrovi@f.bg.ac.yu using -f Received: from 147.91.1.43 (proxying for 147.91.1.45) (SquirrelMail authenticated user bpetrovi) by webmail.f.bg.ac.yu with HTTP; Thu, 15 Dec 2005 11:11:32 +0100 (CET) Message-ID: <33943.147.91.1.43.1134641492.squirrel@webmail.f.bg.ac.yu> Date: Thu, 15 Dec 2005 11:11:32 +0100 (CET) From: "Bojan Petrovic" To: In-Reply-To: <20051214062316.046E246C8@spamproxy.f.bg.ac.yu> References: <20051214062316.046E246C8@spamproxy.f.bg.ac.yu> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_20051215111132_86081" Subject: Re: A new detection routine for Microtune MT2032 an MT2050 tuners X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bpetrovi@f.bg.ac.yu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 10:16:44 -0000 ------=_20051215111132_86081 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi. I have attached the patch (again, the diff is from the CURRENT source files) which should enable you to change the channels (I think it won't work on NTSC). The problems i've noticed so far: Some channels that look good in Linux (tvtime) look snowy or washed out in bktr (fxtv). The frequencies sent to the tuner are a little bit off from the tvtime frequencies, so you might need a program which has a manual fine tune option. Or maybe you could set the correct freq. set somewhere (by sysctl maybe, I didn't have time to look at this) Sometimes there are no channels at all, in Linux or in FreeBSD, and switching the computer off and on helped. Please tell me if you had any problems. Bojan. PS. I currently don't have much time to work on this, so I'll get back to it in a month or so. ------=_20051215111132_86081 Content-Type: application/octet-stream; name="bktr-2.patch" Content-Disposition: attachment; filename="bktr-2.patch" Content-Transfer-Encoding: base64 ZGlmZiAtdSBjdXJyZW50L2JrdHJfY2FyZC5jIG5ld2VzdC9ia3RyX2NhcmQuYwotLS0gY3VycmVu dC9ia3RyX2NhcmQuYwlTdW4gRGVjICA0IDExOjA2OjA0IDIwMDUKKysrIG5ld2VzdC9ia3RyX2Nh cmQuYwlXZWQgRGVjIDE0IDIyOjQ0OjM5IDIwMDUKQEAgLTYzNiw2ICs2MzYsNyBAQAogCXVfY2hh ciAJCWVlcHJvbVsyNTZdOwogCWludCAJCXR1bmVyX2kyY19hZGRyZXNzID0gLTE7CiAJaW50IAkJ ZWVwcm9tX2kyY19hZGRyZXNzID0gLTE7CisJaW50CQltaWNyb3R1bmVfdHVuZXI7CiAKIAkvKiBT ZWxlY3QgYWxsIEdQSU8gYml0cyBhcyBpbnB1dHMgKi8KIAlPVVRMKGJrdHIsIEJLVFJfR1BJT19P VVRfRU4sIDApOwpAQCAtOTE0LDExICs5MTUsMTkgQEAKIGNoZWNrVHVuZXI6CiAKICNpZiAhZGVm aW5lZCggQktUUl9PVkVSUklERV9UVU5FUiApCi0JaWYgKGNhcmQgPT0gQ0FSRF9NSVJPICYmIG10 MjAzMl9pbml0KGJrdHIpID09IDAgJiYKLQkgICAgYmt0ci0+YnQ4NDhfdHVuZXIgPT0gLTEpIHsK KwlpZiAoY2FyZCA9PSBDQVJEX01JUk8gJiYgYmt0ci0+YnQ4NDhfdHVuZXIgPT0gLTEpIHsKIAkJ Ymt0ci0+Y2FyZCA9IGNhcmRzWyAoY2FyZCA9IENBUkRfUElOTkFDTEVfUENUVl9SQVZFKSBdOwot CQlzZWxlY3RfdHVuZXIoIGJrdHIsIFRVTkVSX01UMjAzMiApOwotCQlnb3RvIGNoZWNrREJYOwor CQltaWNyb3R1bmVfdHVuZXIgPSBtaWNyb3R1bmVfaW5pdChia3RyKTsKKwkJc3dpdGNoIChtaWNy b3R1bmVfdHVuZXIpIHsKKwkJY2FzZSAoVFVORVJfTVQyMDMyKToKKwkJCXNlbGVjdF90dW5lcihi a3RyLCBUVU5FUl9NVDIwMzIpOworCQkJZ290byBjaGVja0RCWDsKKwkJCWJyZWFrOworCQljYXNl IFRVTkVSX01UMjA1MDoKKwkJCXNlbGVjdF90dW5lcihia3RyLCBUVU5FUl9NVDIwNTApOworCQkJ Z290byBjaGVja0RCWDsKKwkJCWJyZWFrOworCQl9CiAJfQogI2VuZGlmCiAKZGlmZiAtdSBjdXJy ZW50L2JrdHJfdHVuZXIuYyBuZXdlc3QvYmt0cl90dW5lci5jCi0tLSBjdXJyZW50L2JrdHJfdHVu ZXIuYwlTdW4gTm92IDEzIDE0OjI2OjM4IDIwMDUKKysrIG5ld2VzdC9ia3RyX3R1bmVyLmMJVGh1 IERlYyAxNSAxMTozNzozMiAyMDA1CkBAIC0xMzYsNiArMTM2LDcgQEAKIAogCiBzdGF0aWMgdm9p ZCBtdDIwMzJfc2V0X3R2X2ZyZXEoYmt0cl9wdHJfdCBia3RyLCB1bnNpZ25lZCBpbnQgZnJlcSk7 CitzdGF0aWMgdm9pZCBtdDIwNTBfc2V0X3R2X2ZyZXEoYmt0cl9wdHJfdCBia3RyLCB1bnNpZ25l ZCBpbnQgZnJlcSk7CiAKIAogc3RhdGljIGNvbnN0IHN0cnVjdCBUVU5FUiB0dW5lcnNbXSA9IHsK QEAgLTI5OSw2ICszMDAsMTcgQEAKIAkgICAgIDB4MDAgfSwKIAkgICB7IDB4MDAsIDB4MDAgfSwg ICAgICAgICAgICAgICAgICAgICAgLyogYmFuZC1zd2l0Y2ggY3Jvc3Nwb2ludHMgKi8KIAkgICB7 IDB4YTAsIDB4OTAsIDB4MzAsIDB4OGUgfSB9LCAgICAgICAgLyogdGhlIGJhbmQtc3dpdGNoIHZh bHVlcyAqLworCisKKwkvKiBNVDIwNTAgTWljcm90dW5lICovCisJeyAiTVQyMDUwIiwJCQkJLyog dGhlICduYW1lJyAqLworCSAgIFRUWVBFX1BBTCwJCQkJLyogaW5wdXQgdHlwZSAqLworCSAgIHsg VFNBNTUyeF9TQ09OVFJPTCwJCQkvKiBjb250cm9sIGJ5dGUgZm9yIFR1bmVyIFBMTCAqLworCSAg ICAgVFNBNTUyeF9TQ09OVFJPTCwKKwkgICAgIFRTQTU1MnhfU0NPTlRST0wsCisJICAgICAweDAw IH0sCisJICAgeyAweDAwLCAweDAwIH0sCQkJLyogYmFuZC1zd2l0Y2ggY3Jvc3Nwb2ludHMgKi8K KwkgICB7IDB4YTAsIDB4OTAsIDB4MzAsIDB4MDAgfSB9LAkvKiB0aGUgYmFuZC1zd2l0Y2ggdmFs dWVzICovCiB9OwogCiAKQEAgLTgxNSw2ICs4MjcsMTAgQEAKIAkJbXQyMDMyX3NldF90dl9mcmVx KGJrdHIsIGZyZXF1ZW5jeSk7CiAJCXJldHVybiAwOwogCX0KKwlpZiAodHVuZXIgPT0gJnR1bmVy c1tUVU5FUl9NVDIwNTBdKSB7CisJCW10MjA1MF9zZXRfdHZfZnJlcShia3RyLCBmcmVxdWVuY3kp OworCQlyZXR1cm4gMDsKKwl9CiAJaWYgKHR5cGUgPT0gVFZfRlJFUVVFTkNZKSB7CiAJCS8qCiAJ CSAqIHNlbGVjdCB0aGUgYmFuZCBiYXNlZCBvbiBmcmVxdWVuY3kKQEAgLTEwMDIsNyArMTAxOCw4 IEBACiAgKiBHZXQgdGhlIFR1bmVyIHN0YXR1cyBhbmQgc2lnbmFsIHN0cmVuZ3RoCiAgKi8KIGlu dCAgICAgZ2V0X3R1bmVyX3N0YXR1cyggYmt0cl9wdHJfdCBia3RyICkgewotCWlmIChia3RyLT5j YXJkLnR1bmVyID09ICZ0dW5lcnNbVFVORVJfTVQyMDMyXSkKKwlpZiAoYmt0ci0+Y2FyZC50dW5l ciA9PSAmdHVuZXJzW1RVTkVSX01UMjAzMl0gfHwKKwkJYmt0ci0+Y2FyZC50dW5lciA9PSAmdHVu ZXJzW1RVTkVSX01UMjA1MF0pCiAJCXJldHVybiAwOwogCXJldHVybiBpMmNSZWFkKCBia3RyLCBi a3RyLT5jYXJkLnR1bmVyX3BsbEFkZHIgKyAxICk7CiB9CkBAIC0xMTA5LDMyICsxMTI2LDEwIEBA CiAjZGVmaW5lCU1UMjAzMl9HZXRSZWdpc3RlcihyKQkJX01UMjAzMl9HZXRSZWdpc3Rlcihia3Ry LHIpCiAjZGVmaW5lCU1UMjAzMl9TZXRSZWdpc3RlcihyLGQpCQlfTVQyMDMyX1NldFJlZ2lzdGVy KGJrdHIscixkKQogCi0KLWludCAKK3N0YXRpYyB2b2lkCiBtdDIwMzJfaW5pdChia3RyX3B0cl90 IGJrdHIpCiB7Ci0JdV9jaGFyICAgICAgICAgICAgcmRidWZbMjJdOwogCWludCAgICAgICAgICAg ICB4b2djLCB4b2sgPSAwOwotCWludCAgICAgICAgICAgICBpOwotCWludAkJeDsKLQotCVREQTk4 ODdfaW5pdChia3RyLCAwKTsKLQotCWZvciAoaSA9IDA7IGkgPCAyMTsgaSsrKSB7Ci0JCWlmICgo eCA9IE1UMjAzMl9HZXRSZWdpc3RlcihpKSkgPT0gLTEpCi0JCQlicmVhazsKLQkJcmRidWZbaV0g PSB4OwotCX0KLQlpZiAoaSA8IDIxKQotCQlyZXR1cm4gLTE7Ci0KLQlwcmludGYoIiVzOiBNVDIw MzI6IENvbXBhbnljb2RlPSUwMnglMDJ4IFBhcnQ9JTAyeCBSZXZpc2lvbj0lMDJ4XG4iLAotCQli a3RyX25hbWUoYmt0ciksCi0JCXJkYnVmWzB4MTFdLCByZGJ1ZlsweDEyXSwgcmRidWZbMHgxM10s IHJkYnVmWzB4MTRdKTsKLQlpZiAocmRidWZbMHgxM10gIT0gNCkgewotCQlwcmludGYoIiVzOiBN VDIwMzIgbm90IGZvdW5kIG9yIHVua25vd24gdHlwZVxuIiwgYmt0cl9uYW1lKGJrdHIpKTsKLQkJ cmV0dXJuIC0xOwotCX0KIAogCS8qIEluaXRpYWxpemUgUmVnaXN0ZXJzIHBlciBzcGVjLiAqLwog CU1UMjAzMl9TZXRSZWdpc3RlcigyLCAweGZmKTsKQEAgLTExNjcsNyArMTE2Miw1MyBAQAogCiAJ TVQyMDMyX1hPR0MgPSB4b2djOwogCi0JcmV0dXJuIDA7Cit9CisKK3N0YXRpYyB2b2lkCittdDIw NTBfaW5pdChia3RyX3B0cl90IGJrdHIpCit7CisJaW50IHJlc3VsdDsKKwlNVDIwMzJfU2V0UmVn aXN0ZXIoNiwgMHgxMCk7CisJTVQyMDMyX1NldFJlZ2lzdGVyKDB4MGYsIDB4MGYpOworCXJlc3Vs dCA9IE1UMjAzMl9HZXRSZWdpc3RlcigweDBkKTsKK30KKworCitpbnQKK21pY3JvdHVuZV9pbml0 KGJrdHJfcHRyX3QgYmt0cikgeworCXVfY2hhciAgICAgICAgICAgIHJkYnVmWzIyXTsKKwlpbnQg ICAgICAgICAgICAgaTsKKwlpbnQJCXg7CisJaW50CQl0dW5lcjsKKworCVREQTk4ODdfaW5pdChi a3RyLCAwKTsKKworCWZvciAoaSA9IDA7IGkgPCAyMTsgaSsrKSB7CisJCWlmICgoeCA9IE1UMjAz Ml9HZXRSZWdpc3RlcihpKSkgPT0gLTEpCisJCQlicmVhazsKKwkJcmRidWZbaV0gPSB4OworCX0K KwlpZiAoaSA8IDIxKQorCQlyZXR1cm4gLTE7CisJCisJdHVuZXI9LTE7CisJaWYgKHJkYnVmWzB4 MTNdPT00KSB7CisJCW10MjAzMl9pbml0KGJrdHIpOworCQl0dW5lcj1UVU5FUl9NVDIwMzI7CisJ CXNlbGVjdF90dW5lcihia3RyLCBUVU5FUl9NVDIwMzIpOworCX0gZWxzZSBpZiAocmRidWZbMF09 PTB4NDIpIHsKKwkJbXQyMDUwX2luaXQoYmt0cik7CisJCXR1bmVyPVRVTkVSX01UMjA1MDsKKwkJ c2VsZWN0X3R1bmVyKGJrdHIsIFRVTkVSX01UMjA1MCk7CisJfQorCXByaW50ZigiJXM6IE1UMjB4 eDogQ29tcGFueWNvZGU9JTAyeCUwMnggUGFydD0lMDJ4IFJldmlzaW9uPSUwMnhcbiIsCisJCWJr dHJfbmFtZShia3RyKSwKKwkJcmRidWZbMHgxMV0sIHJkYnVmWzB4MTJdLCAodHVuZXI9PVRVTkVS X01UMjA1MCkgPyByZGJ1ZlswXSA6IHJkYnVmWzB4MTNdICwgcmRidWZbMHgxNF0pOworCisJaWYg KCh0dW5lciAhPSBUVU5FUl9NVDIwNTApICYmICh0dW5lciAhPSBUVU5FUl9NVDIwMzIpKSB7CisJ CXByaW50ZigiJXM6IE1UMjB4eCBub3QgZm91bmQgb3IgdW5rbm93biB0eXBlXG4iLCBia3RyX25h bWUoYmt0cikpOworCX0KKwlyZXR1cm4odHVuZXIpOwogfQogCiBzdGF0aWMgaW50IApAQCAtMTQy Miw1ICsxNDYzLDY4IEBACiAJCWlmIChib290dmVyYm9zZSkKIAkJCXByaW50ZigiJXM6IGZyZXF1 ZW5jeSBzZXQgdG8gJWQsIHN0ID0gJSN4LCB0YWQgPSAlI3hcbiIsCiAJCQkJYmt0cl9uYW1lKGJr dHIpLCBmcmVxKjYyNTAwLCBzdGF0LCB0YWQpOworCX0KK30KKworc3RhdGljIGludAorTVQyMDUw X1NldElGRnJlcShia3RyX3B0cl90IGJrdHIsIGludCBmcmVxLCBpbnQgaWYyKQoreworCXVuc2ln bmVkIGludCBpZjEsIGZfbG8xLCBmX2xvMiwgbG8xLCBsbzIsIGZfbG8xX21vZHVsbywgZl9sbzJf bW9kdWxvLCBudW0xLCBudW0yLCBkaXYxYSwgZGl2MWIsIGRpdjJhLCBkaXYyYjsKKwl1bnNpZ25l ZCBjaGFyIGJ1Zls2XTsKKwlpbnQgaTsKKwlwcmludGYoIlxuc2V0dGluZyBtdDIwNTAgZnJlcSAl ZFxuIiwgZnJlcSk7CisJaWYxPTEyMTgqMTAwMCoxMDAwOworCWZfbG8xPWZyZXEraWYxOworCWZf bG8xPShmX2xvMS8xMDAwMDAwKSoxMDAwMDAwOworCisJZl9sbzI9Zl9sbzEtZnJlcS1pZjI7CisJ Zl9sbzI9KGZfbG8yLzUwMDAwKSo1MDAwMDsKKworCWxvMT1mX2xvMS80MDAwMDAwOworCWxvMj1m X2xvMi80MDAwMDAwOworCisJZl9sbzFfbW9kdWxvPSBmX2xvMS0obG8xKjQwMDAwMDApOworCWZf bG8yX21vZHVsbz0gZl9sbzItKGxvMio0MDAwMDAwKTsKKworCW51bTE9NCpmX2xvMV9tb2R1bG8v NDAwMDAwMDsKKwludW0yPTQwOTYqKGZfbG8yX21vZHVsby8xMDAwKS80MDAwOworCisJZGl2MWE9 KGxvMS8xMiktMTsKKwlkaXYxYj1sbzEtKGRpdjFhKzEpKjEyOworCWRpdjJhPShsbzIvOCktMTsK KwlkaXYyYj1sbzItKGRpdjJhKzEpKjg7CisKKwlidWZbMF09MTsKKwlidWZbMV09NCpkaXYxYitu dW0xOworCWlmKGZyZXE8Mjc1KjEwMDAqMTAwMCkgYnVmWzFdID0gYnVmWzFdfDB4ODA7CisKKwli dWZbMl09ZGl2MWE7CisJYnVmWzNdPTMyKmRpdjJiICsgbnVtMi8yNTY7CisJYnVmWzRdPW51bTIt KG51bTIvMjU2KSoyNTY7CisJYnVmWzVdPWRpdjJhOworCWlmKG51bTIhPTApIGJ1Zls1XT1idWZb NV18MHg0MDsKKworCU1UMjAzMl9TZXRSZWdpc3RlcigxLGJ1ZlsxXSk7CisJTVQyMDMyX1NldFJl Z2lzdGVyKDIsYnVmWzJdKTsKKwlNVDIwMzJfU2V0UmVnaXN0ZXIoMyxidWZbM10pOworCU1UMjAz Ml9TZXRSZWdpc3Rlcig0LGJ1Zls0XSk7CisJTVQyMDMyX1NldFJlZ2lzdGVyKDUsYnVmWzVdKTsK KwlyZXR1cm4gMDsKK30KKworc3RhdGljIHZvaWQKK210MjA1MF9zZXRfdHZfZnJlcShia3RyX3B0 cl90IGJrdHIsIHVuc2lnbmVkIGludCBmcmVxKQoreworCWludCBpZjI7CisKKyNpZmRlZiBNVDIw MzJfTlRTQworCWlmMj00NTc1MCoxMDAwOworI2Vsc2UKKwlpZjI9Mzg5MDAqMTAwMDsKKyNlbmRp ZgorCisJaWYgKE1UMjA1MF9TZXRJRkZyZXEoYmt0ciwgZnJlcSo2MjUwMCAvKiBmcmVxKjEwMDAq MTAwMC8xNiAqLywKKwkJaWYyKSA9PSAwKSB7CisJCWJrdHItPnR1bmVyLmZyZXF1ZW5jeSA9IGZy ZXE7CiAJfQogfQpkaWZmIC11IGN1cnJlbnQvYmt0cl90dW5lci5oIG5ld2VzdC9ia3RyX3R1bmVy LmgKLS0tIGN1cnJlbnQvYmt0cl90dW5lci5oCVN1biBOb3YgMTMgMTQ6MjY6MzggMjAwNQorKysg bmV3ZXN0L2JrdHJfdHVuZXIuaAlXZWQgRGVjIDE0IDIxOjQzOjA0IDIwMDUKQEAgLTYxLDcgKzYx LDggQEAKICNkZWZpbmUgQUxQU19UU0JIMQkJMTMKICNkZWZpbmUgVFVORVJfTVQyMDMyCQkxNAog I2RlZmluZQlMR19UUEk4UFNCMTJQX1BBTAkxNQotI2RlZmluZSBCdDg0OF9NQVhfVFVORVIJCTE2 CisjZGVmaW5lIFRVTkVSX01UMjA1MAkJMTYKKyNkZWZpbmUgQnQ4NDhfTUFYX1RVTkVSCQkxNwog CiAvKiBleHBlcmltZW50YWwgY29kZSBmb3IgQXV0b21hdGljIEZyZXF1ZW5jeSBDb250cm9sICov IAogI2RlZmluZSBUVU5FUl9BRkMKQEAgLTkzLDcgKzk0LDcgQEAKIGludAlkb19hZmMoIGJrdHJf cHRyX3QgYmt0ciwgaW50IGFkZHIsIGludCBmcmVxdWVuY3kgKTsKICNlbmRpZiAvKiBUVU5FUl9B RkMgKi8KIAotaW50IG10MjAzMl9pbml0KGJrdHJfcHRyX3QgYmt0cik7CitpbnQgbWljcm90dW5l X2luaXQoYmt0cl9wdHJfdCBia3RyKTsKIAogLyogCiAgKiBUaGlzIGlzIGZvciBzdGFydC11cCBj b252ZW5pZW5jZSBvbmx5LCBOT1QgbWFuZGF0b3J5Lgo= ------=_20051215111132_86081-- From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 15 21:37:39 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6C1416A41F for ; Thu, 15 Dec 2005 21:37:39 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id C35E143D45 for ; Thu, 15 Dec 2005 21:37:36 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IRK00K386Y3OED0@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Thu, 15 Dec 2005 22:42:03 +0100 (CET) Received: from kg-work.kg4.no ([80.203.92.30]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IRK009K86V6VCHC@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Thu, 15 Dec 2005 22:40:19 +0100 (CET) Date: Thu, 15 Dec 2005 22:37:35 +0100 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20051121222213.29d7733a.ariff@FreeBSD.org> To: freebsd-multimedia@freebsd.org Message-id: <20051215223735.148251ee.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20051121222213.29d7733a.ariff@FreeBSD.org> Subject: Re: HEADS UP: Incoming support ATI IXP 150/200/250/300/400 AC97 - snd_atiixp 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: Thu, 15 Dec 2005 21:37:39 -0000 On Mon, 21 Nov 2005 22:22:13 +0800 Ariff Abdullah wrote: > Grab your Acer Ferrari 4000+ or Compaq m2000z or toaster or whatever > with "used to" unsupported ATI IXP audio soundchip, format the drive, I already had FreeBSD installed on my MSI RS480M2-IL (aka MS-7093) motherboard, so I installed the patch, remade the modules, rebooted and tested. Here are the stats: root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Dec 8 00:56:05 CET 2005 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 root@kg-quiet# dmesg | grep pcm pcm0: port 0xdf00-0xdf1f irq 21 at device 1.0 on pci2 pcm0: pcm1: mem 0xfe029000-0xfe0290ff irq 17 at device 20.5 on pci0 pcm1: root@kg-quiet# cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xdf00 irq 21 kld snd_emu10k1 (4p/4s/2r/0v channels duplex default) pcm1: at memory 0xfe029000 irq 17 kld snd_atiixp (1p/1s/1r/0v channels duplex) root@kg-quiet# sysctl hw.snd hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.feeder_rate_ratemin: 4000 hw.snd.feeder_rate_ratemax: 1102500 hw.snd.feeder_rate_scaling: 5 hw.snd.feeder_rate_buffersize: 8192 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 0 hw.snd.slave_enabled: 1 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 0 hw.snd.pcm1.buffersize: 4096 hw.snd.pcm1.vchans: 0 from 'pciconf -lv': pcm0@pci2:1:0: class=0x040100 card=0x00201102 chip=0x00021102 rev=0x05 hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780' class = multimedia subclass = audio pcm1@pci0:20:5: class=0x040100 card=0x70931462 chip=0x43701002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc' class = multimedia subclass = audio pcm0 is a sound card I have been using before the ixp soundchip was supported. Net results; snd_atiixp works here (just did a quick test with xmms). The only thing that I notice is that the output volume is noticeably lower from pcm1 than from pcm0. I don't know why this is so, it is just an observation. Good work! -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 15 23:13:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3364916A420 for ; Thu, 15 Dec 2005 23:13:05 +0000 (GMT) (envelope-from nemeths@for.mat.bham.ac.uk) Received: from sun13.bham.ac.uk (sun13.bham.ac.uk [147.188.128.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8819143D53 for ; Thu, 15 Dec 2005 23:13:04 +0000 (GMT) (envelope-from nemeths@for.mat.bham.ac.uk) Received: from [147.188.128.127] (helo=bham.ac.uk) by sun13.bham.ac.uk with esmtp (Exim 4.10) id 1En2HW-0007VU-00; Thu, 15 Dec 2005 23:13:02 +0000 Received: from for.mat.bham.ac.uk ([147.188.56.59]) by bham.ac.uk with esmtp (Exim 4.43) id 1En2HW-00070i-FU; Thu, 15 Dec 2005 23:13:02 +0000 Received: from bab.mat.bham.ac.uk by for.mat.bham.ac.uk (8.8.8+Sun/SMI-SVR4) id XAA02079; Thu, 15 Dec 2005 23:12:59 GMT Received: from localhost (nemeths@localhost) by bab.mat.bham.ac.uk (8.8.8p2+Sun/8.8.8) with ESMTP id XAA19664; Thu, 15 Dec 2005 23:12:57 GMT X-Authentication-Warning: babbage.bham.ac.uk: nemeths owned process doing -bs Date: Thu, 15 Dec 2005 23:12:57 +0000 (GMT) From: Sandor Z Nemeth X-Sender: nemeths@babbage.bham.ac.uk To: Kazuhito HONDA In-Reply-To: <20051212.154911.343146196.kazuhito@ph.noda.tus.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BHAM-CUBE-wlist: LOCAL for.mat.bham.ac.uk X-BHAM-CUBE-processed: yes Cc: freebsd-multimedia@freebsd.org Subject: external sound card under FreeBSD 6 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: Thu, 15 Dec 2005 23:13:05 -0000 Hi, My external sound card stopped to work. It used to work before (except recording). The part from my dmesg which is about audio is as follows: uaudio0: Creative Technology SB Live! 24-bit External, rev 1.10/1.00, addr 2 uaudio0: audio rev 1.00 pcm0: on uaudio0 uaudio1: vendor 0x046d product 0x08b4, rev 1.10/0.03, addr 2 uaudio1: audio rev 1.00 pcm1: on uaudio1 play channel supported format list invalid pcm1: chn_init(pcm1:play:0) failed: err = 19 pcm1: pcm_chn_create(ua_chan, 1, 0xc1af9980) failed Thanks for your help, Sandor -------------------------------------------------------- Dr Sandor Zoltan Nemeth Lecturer -------------------------------------------------------- School of Mathematics The University of Birmingham Watson Building Edgbaston B15 2TT Birmingham United Kingdom Phone: +44-121-414-6404 Fax: +44-121-414-3389 -------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 16 02:36:28 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7502D16A41F for ; Fri, 16 Dec 2005 02:36:28 +0000 (GMT) (envelope-from lioux@FreeBSD.org) Received: from vette.gigo.com (vette.gigo.com [216.218.228.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3454A43D5C for ; Fri, 16 Dec 2005 02:36:28 +0000 (GMT) (envelope-from lioux@FreeBSD.org) Received: from 201.34.230.31 (unknown [201.34.230.31]) by vette.gigo.com (Postfix) with ESMTP id 4112056A6 for ; Thu, 15 Dec 2005 18:36:27 -0800 (PST) Received: (qmail 42597 invoked by uid 1001); 16 Dec 2005 00:35:20 -0200 Message-ID: <20051216023542.42548.qmail@exxodus.fedaykin.here> Date: Fri, 16 Dec 2005 00:35:20 -0200 From: Mario Sergio Fujikawa Ferreira To: freebsd-multimedia@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Can't record from audigy 2 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: Fri, 16 Dec 2005 02:36:28 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I am running FreeBSD 5.4-STABLE as of December 12. I am unable to record any audio from my audio board. I connected the tv audio output to the board microphone in. The tv audio output has been tested, it's there. I am trying to record using audio/wavplay. $ wavrec /tmp/test.wav $ wavplay /tmp/test.wav No sound. :( Some information on my system is listed below. I can't capture sound with mplayer either. Regards, $ uname -a FreeBSD exxodus.fedaykin.here 5.4-STABLE FreeBSD 5.4-STABLE #14: Mon Dec 12= 06:15:13 BRST 2005 lioux@exxodus:/usr/src/sys/i386/compile/LIOUX i386 $ emuctrl list Id Description Vol RecVol FX (PCM) buses fx0 DSP FX BUS 0 100:100 (100:100) DSP Inputs in1 CD S/PDIF 100:100 (100:100) in2 Optical S/PDIF 100:100 (100:100) in4 Line-In (2) 100:100 (100:100) in5 Coaxial S/PDIF 100:100 (100:100) in6 AUX2 100:100 (100:100) DSP Outputs out0 DIGITAL: Front 100:100 out1 DIGITAL: Center 100 out2 DIGITAL: Subwoofer 100 out3 Headphones 100:100 out4 DIGITAL: Rear 100:100 out5 Front 100:100 out6 Center 100 out7 Subwoofer 100 out9 Rear 100:100 out13 A/D converter (REC) 100:100 Main Mix mix0 Main Mix 100:100 (100:100) $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: on emu10kx0 (16p/1r/4v channels duplex defaul= t) $ cat /dev/emu10kx0 FreeBSD EMU10Kx Audio Driver Hardware resource usage: DSP General Purpose Registers: 147 used, 512 total DSP Instruction Registers: 152 used, 1024 total Card supports NO AC97 codec and 5.1 output Audigy DSP code with Audigy2 hac= ks Installed devices: EMU10Kx Mixer Interface on emu10kx0 FX BUSes Inputs Outputs =20 Playback 1 8 18 =20 Recording 1 8 0 =20 EMU10Kx PCM Interface on pcm0 Digital mode, S/PDIF output is PCM stereo $ ls -l /var/db/pkg|grep emu10kx drwxr-xr-x 2 root wheel 512 Dec 12 06:13 emu10kx-20051021 --=20 Mario S F Ferreira - DF - Brazil - "I guess this is a signature." feature, n: a documented bug | bug, n: an undocumented feature --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDoif+rxEiaFLzGQwRAk4BAJ4/PAdm2ZpnE3mZ8MKRvo8V0yoRCgCfZkQG 5Usfc4XA7+PRvFiGX20dvMM= =Xgks -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS-- From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 16 07:27:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F8DD16A41F for ; Fri, 16 Dec 2005 07:27:25 +0000 (GMT) (envelope-from nemeths@for.mat.bham.ac.uk) Received: from sun13.bham.ac.uk (sun13.bham.ac.uk [147.188.128.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7563E43D53 for ; Fri, 16 Dec 2005 07:27:24 +0000 (GMT) (envelope-from nemeths@for.mat.bham.ac.uk) Received: from [147.188.128.127] (helo=bham.ac.uk) by sun13.bham.ac.uk with esmtp (Exim 4.10) id 1En9zv-0005mx-00; Fri, 16 Dec 2005 07:27:23 +0000 Received: from for.mat.bham.ac.uk ([147.188.56.59]) by bham.ac.uk with esmtp (Exim 4.43) id 1En9zu-0003xu-UD; Fri, 16 Dec 2005 07:27:22 +0000 Received: from bab.mat.bham.ac.uk by for.mat.bham.ac.uk (8.8.8+Sun/SMI-SVR4) id HAA04506; Fri, 16 Dec 2005 07:27:21 GMT Received: from localhost (nemeths@localhost) by bab.mat.bham.ac.uk (8.8.8p2+Sun/8.8.8) with ESMTP id HAA23270; Fri, 16 Dec 2005 07:27:19 GMT X-Authentication-Warning: babbage.bham.ac.uk: nemeths owned process doing -bs Date: Fri, 16 Dec 2005 07:27:19 +0000 (GMT) From: Sandor Z Nemeth X-Sender: nemeths@babbage.bham.ac.uk To: Kazuhito HONDA Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BHAM-CUBE-wlist: LOCAL for.mat.bham.ac.uk X-BHAM-CUBE-processed: yes Cc: freebsd-multimedia@freebsd.org Subject: external sound card under FreeBSD 6 (fwd) 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: Fri, 16 Dec 2005 07:27:25 -0000 Hi, It seems that I can get sound working by commenting out the line snd_uaudio_load="YES" from /boot/loader.conf (that's the only line in this file), unpluging the card, loading kldload snd_uaudio and pluging it back. It used to work with loading snd_uaudio at boot with /boot/loader.conf, but from some unknown reason this doesn't work anymore :( Sandor -------------------------------------------------------- Dr Sandor Zoltan Nemeth Lecturer -------------------------------------------------------- School of Mathematics The University of Birmingham Watson Building Edgbaston B15 2TT Birmingham United Kingdom Phone: +44-121-414-6404 Fax: +44-121-414-3389 -------------------------------------------------------- ---------- Forwarded message ---------- Date: Thu, 15 Dec 2005 23:12:57 +0000 (GMT) From: Sandor Z Nemeth To: Kazuhito HONDA Cc: freebsd-multimedia@freebsd.org Subject: external sound card under FreeBSD 6 Hi, My external sound card stopped to work. It used to work before (except recording). The part from my dmesg which is about audio is as follows: uaudio0: Creative Technology SB Live! 24-bit External, rev 1.10/1.00, addr 2 uaudio0: audio rev 1.00 pcm0: on uaudio0 uaudio1: vendor 0x046d product 0x08b4, rev 1.10/0.03, addr 2 uaudio1: audio rev 1.00 pcm1: on uaudio1 play channel supported format list invalid pcm1: chn_init(pcm1:play:0) failed: err = 19 pcm1: pcm_chn_create(ua_chan, 1, 0xc1af9980) failed Thanks for your help, Sandor -------------------------------------------------------- Dr Sandor Zoltan Nemeth Lecturer -------------------------------------------------------- School of Mathematics The University of Birmingham Watson Building Edgbaston B15 2TT Birmingham United Kingdom Phone: +44-121-414-6404 Fax: +44-121-414-3389 -------------------------------------------------------- From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 16 18:10:35 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14ED316A41F for ; Fri, 16 Dec 2005 18:10:35 +0000 (GMT) (envelope-from andre@albsmeier.net) Received: from outside.albsmeier.net (outside.albsmeier.net [80.81.31.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 753D743D79 for ; Fri, 16 Dec 2005 18:10:28 +0000 (GMT) (envelope-from andre@albsmeier.net) Received: from schlappy.albsmeier.net (dpc6935112083.direcpc.com [69.35.112.83]) (authenticated bits=128) by outside.albsmeier.net (8.13.4/8.13.4) with ESMTP id jBGI9rZH026158; Fri, 16 Dec 2005 19:10:10 +0100 (CET) (envelope-from andre@albsmeier.net) Received: from schlappy.albsmeier.net (schlappy.albsmeier.net [127.0.0.1]) by schlappy.albsmeier.net (8.13.4/8.13.4) with ESMTP id jBGI9QiI001471; Fri, 16 Dec 2005 19:09:29 +0100 (CET) (envelope-from andre@schlappy.albsmeier.net) Received: (from andre@localhost) by schlappy.albsmeier.net (8.13.4/8.13.4/Submit) id jBGI9Qn0001470; Fri, 16 Dec 2005 19:09:26 +0100 (CET) (envelope-from andre) Date: Fri, 16 Dec 2005 19:09:25 +0100 From: Andre Albsmeier To: Sascha Klauder Message-ID: <20051216180925.GA1436@schlappy.albsmeier.net> References: <20051129180656.GA3619@node26.0xfce3.net> <20051129192653.GA35936@trimind.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051129192653.GA35936@trimind.de> X-Echelon: United, assault, VHF, Telex, AA X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.11 Cc: freebsd-multimedia@freebsd.org, Gordon Bergling Subject: Re: [Recommendation] graphicscard (agp) for FreeBSD 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: Fri, 16 Dec 2005 18:10:35 -0000 On Tue, 29-Nov-2005 at 20:26:53 +0100, Sascha Klauder wrote: > On Tue, Nov 29, 2005 at 07:06:56PM +0100, Gordon Bergling wrote: > > I am building a new workstation. Most hardware was just ordered, but I > > am still need a good supported graphicscard for FreeBSD. > > > > Can anyone recommend a graphicscard based on AGP, which should be > > support TV-Out. > > That heavily depends on what you want to do with it. If you > just do 2D, DVD-playback and the like, I would recommend a > Matrox G450 or G550 card. They feature superb image quality, > are completely supported (TV-output worked when I last used That's highly interesting. I have never heard of anyone who was able to make a G450/550's TV-Out work under FreeBSD. The Matrox HAL doesn't support TV-Out for G450 and G550. A G400 works perfectly. On dsiplay :0.0 I use a regular CRT and :0.1 is mapped to TV-out. > one two years ago) and well documented, and even their OpenGL Well, may I ask you to send me the config file you used? Or instructions how you made it work? Did you hack the Matrox HAL (i tried to but failed :-()? Or did you use Linux? I know there are some hacks for Linux which require some kernel code we haven't got in FreeBSD... Thanks, -Andre > performance is sufficient for at least xscreensaver. > > If you need 3D/OpenGL performance, get an NVidia card. They > have native drivers (binary-only though), which are quite stable. > ATI Radeon cards are nice too, but I'd bad luck with DRI drivers > recently. > > Cheers, > -sascha From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 16 18:37:18 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97AC216A41F for ; Fri, 16 Dec 2005 18:37:18 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta3.odn.ne.jp (mfep3.odn.ne.jp [143.90.131.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6C0B43D5C for ; Fri, 16 Dec 2005 18:37:17 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([219.66.219.36]) by t-mta3.odn.ne.jp with ESMTP id <20051216183716350.QMLS.496069.t-mta3.odn.ne.jp@mta3.odn.ne.jp>; Sat, 17 Dec 2005 03:37:16 +0900 Date: Sat, 17 Dec 2005 03:37:15 +0900 (JST) Message-Id: <20051217.033715.343188712.kazuhito@ph.noda.tus.ac.jp> To: freebsd-multimedia@freebsd.org From: Kazuhito HONDA X-Mailer: Mew version 3.3 on XEmacs 21.4.17 (Jumbo Shrimp) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Dec_17_03:37:15_2005_980)--" Content-Transfer-Encoding: 7bit Cc: Subject: patch for 24-bit soft volume and uaudio's tiny fix 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: Fri, 16 Dec 2005 18:37:18 -0000 ----Next_Part(Sat_Dec_17_03:37:15_2005_980)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, We have already had a soft volume, feeder_volume_s16(). But it is of 16 bit. So 24-bit sound streams are always downgraded to 16-bit before soft volume even though a sound device has a 24-bit port. Thus 24-bit soft volume is necessary. This mail has a patch for 24-bit soft volume. I tried to use it with `SB Live! 24-bit external' and it worked. And the patch includes a fix of tiny mistakes in uaudio.c, too. Sincerely yours, Kazuhito HONDA ----Next_Part(Sat_Dec_17_03:37:15_2005_980)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sv_ua_patch" --- sys/dev/sound/pcm/feeder_volume.c.old Tue Nov 22 10:13:37 2005 +++ sys/dev/sound/pcm/feeder_volume.c Sat Dec 17 02:41:08 2005 @@ -67,6 +67,49 @@ feed_volume_s16(struct pcm_feeder *f, st return k; } +static int +feed_volume_s24(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b, + uint32_t count, void *source) +{ + int i, k, vol[2]; + int32_t buf, j; + uint8_t *buf8; + + k = FEEDER_FEED(f->source, c, b, (count / 3) * 3, source); + if (k < 3) { +#if 0 + device_printf(c->dev, "%s: Not enough data (Got: %d bytes)\n", + __func__, k); +#endif + return 0; + } +#if 0 + if (k % 3) + device_printf(c->dev, "%s: Bytes not 24bit aligned.\n", __func__); +#endif + k -= k % 3; + i = k; + vol[0] = c->volume & 0x7f; + vol[1] = (c->volume >> 8) & 0x7f; + while (i > 2) { + buf = 0; + buf8 = (int8_t *) (&buf); + buf8[0] = b[--i]; + buf8[1] = b[--i]; + buf8[2] = b[--i]; + j = (vol[i & 1] * buf) / 100; + if (j > 8388607) + j = 8388607; + if (j < -8388608) + j = -8388608; + buf8 = (int8_t *) (&j); + b[i + 2] = buf8[0]; + b[i + 1] = buf8[1]; + b[i] = buf8[2]; + } + return k; +} + static struct pcm_feederdesc feeder_volume_s16_desc[] = { {FEEDER_VOLUME, AFMT_S16_LE|AFMT_STEREO, AFMT_S16_LE|AFMT_STEREO, 0}, {0, 0, 0, 0}, @@ -76,3 +119,13 @@ static kobj_method_t feeder_volume_s16_m {0, 0} }; FEEDER_DECLARE(feeder_volume_s16, 2, NULL); + +static struct pcm_feederdesc feeder_volume_s24_desc[] = { + {FEEDER_VOLUME, AFMT_S24_LE|AFMT_STEREO, AFMT_S24_LE|AFMT_STEREO, 0}, + {0, 0, 0, 0}, +}; +static kobj_method_t feeder_volume_s24_methods[] = { + KOBJMETHOD(feeder_feed, feed_volume_s24), + {0, 0} +}; +FEEDER_DECLARE(feeder_volume_s24, 2, NULL); --- sys/dev/sound/pcm/channel.c.old Fri Dec 16 23:44:24 2005 +++ sys/dev/sound/pcm/channel.c Fri Dec 16 23:57:30 2005 @@ -1372,9 +1372,19 @@ chn_buildfeeder(struct pcm_channel *c) for (type = FEEDER_RATE; type <= FEEDER_LAST; type++) { if (flags & (1 << type)) { desc.type = type; - desc.in = 0; desc.out = 0; desc.flags = 0; + if (type == FEEDER_VOLUME) { + if (c->feeder->desc->out & (AFMT_S24_LE | AFMT_S24_BE | AFMT_U24_LE | AFMT_U24_BE)) { + desc.in = AFMT_S24_LE | AFMT_STEREO; + } else if (c->feeder->desc->out & (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE | AFMT_U16_BE)) { + desc.in = AFMT_S16_LE | AFMT_STEREO; + } else { + desc.in = 0; + } + } else { + desc.in = 0; + } DEB(printf("find feeder type %d, ", type)); fc = feeder_getclass(&desc); DEB(printf("got %p\n", fc)); --- sys/dev/sound/usb/uaudio.c.old Sun Nov 13 23:20:26 2005 +++ sys/dev/sound/usb/uaudio.c Sat Dec 17 00:00:11 2005 @@ -3909,10 +3909,10 @@ const struct uaudio_conversion const acc {AUDIO_ENCODING_SLINEAR_LE, 8, AFMT_S8}, {AUDIO_ENCODING_SLINEAR_LE, 16, AFMT_S16_LE}, {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S24_LE}, - {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S32_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 32, AFMT_S32_LE}, {AUDIO_ENCODING_SLINEAR_BE, 16, AFMT_S16_BE}, {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S24_BE}, - {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S32_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 32, AFMT_S32_BE}, {AUDIO_ENCODING_ALAW, 8, AFMT_A_LAW}, {AUDIO_ENCODING_ULAW, 8, AFMT_MU_LAW}, {0,0,0} ----Next_Part(Sat_Dec_17_03:37:15_2005_980)---- From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 07:04:07 2005 Return-Path: X-Original-To: freebsd-multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CBAB16A41F; Sat, 17 Dec 2005 07:04:07 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from md.gfk.ru (md.f231.gfk.ru [84.21.231.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7130943D46; Sat, 17 Dec 2005 07:04:05 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from dialup-chibis.gfk.ru ([10.0.6.45]) by gfk.ru (md.gfk.ru [84.21.231.130]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 46-md50000000431.tmp; Sat, 17 Dec 2005 10:03:03 +0300 Date: Sat, 17 Dec 2005 10:03:01 +0300 (MSK) From: Yuriy Tsibizov X-X-Sender: chibis@free.home.local To: Mario Sergio Fujikawa Ferreira In-Reply-To: <20051216023542.42548.qmail@exxodus.fedaykin.here> Message-ID: <20051217094649.S587@free.home.local> References: <20051216023542.42548.qmail@exxodus.fedaykin.here> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Processed: md.gfk.ru, Sat, 17 Dec 2005 10:03:03 +0300 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.6.45 X-Return-Path: Yuriy.Tsibizov@gfk.ru Cc: freebsd-multimedia@FreeBSD.org, Yuriy Tsibizov Subject: Re: Can't record from audigy 2 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: Sat, 17 Dec 2005 07:04:07 -0000 On Fri, 16 Dec 2005, Mario Sergio Fujikawa Ferreira wrote: > I am unable to record any audio from my audio board. I > connected the tv audio output to the board microphone in. The tv > audio output has been tested, it's there. [...] > > $ cat /dev/emu10kx0 > FreeBSD EMU10Kx Audio Driver > > Hardware resource usage: > DSP General Purpose Registers: 147 used, 512 total > DSP Instruction Registers: 152 used, 1024 total > Card supports NO AC97 codec and 5.1 output Audigy DSP code with Audigy2 hacks ^^^^^^^^^^^^^^^^^^^^^^^ I was wrong... This card has AC97 codec. > $ ls -l /var/db/pkg|grep emu10kx > drwxr-xr-x 2 root wheel 512 Dec 12 06:13 emu10kx-20051021 Can you try with this patch? --- emu10kx.c.orig Mon Oct 17 07:56:07 2005 +++ emu10kx.c Sat Dec 17 09:58:17 2005 @@ -106,9 +106,9 @@ {0x1102, 0x0004, 0x1102, 0x0058, "SB0090", "Audigy Player/OEM", HAS_AC97 | HAS_51 | IS_EMU10K2}, /* 0x1002..0x1009 5.1 EMU10K2+P16V (CA0151) cards */ - {0x1102, 0x0004, 0x1102, 0x1002, "SB????", "Audigy 2 Platinum", HAS_51 | IS_CA0151}, - {0x1102, 0x0004, 0x1102, 0x1005, "SB????", "Audigy 2 EX", HAS_51 | IS_CA0151}, - {0x1102, 0x0004, 0x1102, 0x1007, "SB0240", "Audigy 2 6.1", HAS_51 | IS_CA0151}, + {0x1102, 0x0004, 0x1102, 0x1002, "SB????", "Audigy 2 Platinum", HAS_AC97 | HAS_51 | IS_CA0151}, + {0x1102, 0x0004, 0x1102, 0x1005, "SB????", "Audigy 2 EX", HAS_AC97 | HAS_51 | IS_CA0151}, + {0x1102, 0x0004, 0x1102, 0x1007, "SB0240", "Audigy 2 6.1", HAS_AC97 | HAS_51 | IS_CA0151}, /* 0x2001..0x2003 7.1 EMU10K2+P16V (CA0151) cards */ {0x1102, 0x0004, 0x1102, 0x2001, "SB0350", "Audigy 2 ZS", HAS_AC97 | HAS_71 | IS_CA0151}, and set AC97 mixer settings with mixer(8) in addition to emuctrl. Yuriy. From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 11:19:01 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DD9616A41F for ; Sat, 17 Dec 2005 11:19:01 +0000 (GMT) (envelope-from attodorov@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44A8943D4C for ; Sat, 17 Dec 2005 11:19:00 +0000 (GMT) (envelope-from attodorov@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so794173wra for ; Sat, 17 Dec 2005 03:18:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ZPW6rcApV79MRDL6HRAPl471I7sjDxvfYkmdmGWsR1nRKV3ty1MX2JHtaKaV1IseH3SWiGA9jmC2h8mN2kdIVAGggUTt/ejuNTqqcz+XbcvMEBFU560+7vqQoKSjQeRrHuHLl4+uf/o17HUrkIbfnX1u3IXQlLiLrR5kBdLVew4= Received: by 10.54.143.12 with SMTP id q12mr77636wrd; Sat, 17 Dec 2005 03:18:59 -0800 (PST) Received: by 10.54.86.9 with HTTP; Sat, 17 Dec 2005 03:18:59 -0800 (PST) Message-ID: <4ac1e6310512170318qe773688j4de12d1224bb4390@mail.gmail.com> Date: Sat, 17 Dec 2005 13:18:59 +0200 From: Angel Todorov To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: snd_atiixp 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: Sat, 17 Dec 2005 11:19:01 -0000 Hi, I'm using 6.0 RELEASE , and i applied the corresponding patch for the ATIIXP sound chip, but once i do make depend to rebuild the kernel, it can't find /usr/src/sys/modules/sound/driver/atiixp , i.e atiixp.c , atiixp.h , and the Makefile for it. Do i have to manually get these from somewhere and put them in this dir ? Thanks (otherwise the patch seems to be applied correctly). Regards, Angel From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 11:46:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1876416A41F for ; Sat, 17 Dec 2005 11:46:17 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BB0743D53 for ; Sat, 17 Dec 2005 11:46:15 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 664806CC36; Sat, 17 Dec 2005 19:51:23 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73374-07; Sat, 17 Dec 2005 19:51:20 +0800 (MYT) Received: from misaki (unknown [219.95.202.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id A27BA6CC2C; Sat, 17 Dec 2005 19:51:19 +0800 (MYT) Date: Sat, 17 Dec 2005 19:46:04 +0800 From: Ariff Abdullah To: Kazuhito HONDA Message-Id: <20051217194604.7e6c08dd.skywizard@MyBSD.org.my> In-Reply-To: <20051217.033715.343188712.kazuhito@ph.noda.tus.ac.jp> References: <20051217.033715.343188712.kazuhito@ph.noda.tus.ac.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: patch for 24-bit soft volume and uaudio's tiny fix 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: Sat, 17 Dec 2005 11:46:17 -0000 On Sat, 17 Dec 2005 03:37:15 +0900 (JST) Kazuhito HONDA wrote: > Hello, > > We have already had a soft volume, feeder_volume_s16(). > But it is of 16 bit. So 24-bit sound streams are > always downgraded to 16-bit before soft volume > even though a sound device has a 24-bit port. > Thus 24-bit soft volume is necessary. > > This mail has a patch for 24-bit soft volume. > I tried to use it with `SB Live! 24-bit external' > and it worked. > > And the patch includes a fix of tiny mistakes in uaudio.c, too. > uaudio.c: Obvious mistake that need to be fixed. feeder_volume.c: Ok, looks good. My concern is endianess issue, but this can be ignored for now. I need to examine it first. channel.c: Changes against feeder building process is a bit sensitive, some brute testing need to be done here. Thanks. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 11:48:44 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A55D16A41F for ; Sat, 17 Dec 2005 11:48:44 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD52443D68 for ; Sat, 17 Dec 2005 11:48:41 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E349D6CCDE; Sat, 17 Dec 2005 19:53:50 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73155-10; Sat, 17 Dec 2005 19:53:49 +0800 (MYT) Received: from misaki (unknown [219.95.202.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 625AA6CCDC; Sat, 17 Dec 2005 19:53:49 +0800 (MYT) Date: Sat, 17 Dec 2005 19:48:34 +0800 From: Ariff Abdullah To: Angel Todorov Message-Id: <20051217194834.433aa232.skywizard@MyBSD.org.my> In-Reply-To: <4ac1e6310512170318qe773688j4de12d1224bb4390@mail.gmail.com> References: <4ac1e6310512170318qe773688j4de12d1224bb4390@mail.gmail.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: snd_atiixp 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: Sat, 17 Dec 2005 11:48:44 -0000 On Sat, 17 Dec 2005 13:18:59 +0200 Angel Todorov wrote: > Hi, > > I'm using 6.0 RELEASE , and i applied the corresponding patch for > the ATIIXP sound chip, but once i do make depend to rebuild the > kernel, it can't find /usr/src/sys/modules/sound/driver/atiixp , i.e > atiixp.c , atiixp.h , and the Makefile for it. Do i have to manually > get these from somewhere and put them in this dir ? Thanks > (otherwise the patch seems to be applied correctly). > Are you sure about that? It doesn't seem so. If the patch applied correctly, you don't have to do any other extra step. Which patch revision you use? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 11:57:28 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 781C916A41F for ; Sat, 17 Dec 2005 11:57:28 +0000 (GMT) (envelope-from attodorov@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2D3643D86 for ; Sat, 17 Dec 2005 11:57:15 +0000 (GMT) (envelope-from attodorov@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so796806wra for ; Sat, 17 Dec 2005 03:57:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V0ONaozPdhAk0HQ+bXf4UUvbRwDCxMKeVGiwPcd0LJ/OQm/ItPWLQgWEu1Hb8ZVA+EzgjYBScOCWf0VfzhpFUd/pcIDwqJ7/fUx6/glZc+37BKEFBJo9MzH+9wunGrybeovEiocS7p3YZO+6m/CpblRZ3h2l3TDAg+V6eS9qsZs= Received: by 10.54.143.12 with SMTP id q12mr81732wrd; Sat, 17 Dec 2005 03:57:14 -0800 (PST) Received: by 10.54.86.9 with HTTP; Sat, 17 Dec 2005 03:57:14 -0800 (PST) Message-ID: <4ac1e6310512170357v693f769ayd9410c48939c84a1@mail.gmail.com> Date: Sat, 17 Dec 2005 13:57:14 +0200 From: Angel Todorov To: Ariff Abdullah In-Reply-To: <20051217194834.433aa232.skywizard@MyBSD.org.my> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4ac1e6310512170318qe773688j4de12d1224bb4390@mail.gmail.com> <20051217194834.433aa232.skywizard@MyBSD.org.my> Cc: freebsd-multimedia@freebsd.org Subject: Re: snd_atiixp 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: Sat, 17 Dec 2005 11:57:28 -0000 Hi Ariff, Here is the version of the diff i am using, as well as my freebsd version: todorov-bsd-laptop# ls -l snd_RELENG_6_0_20051130_070.diff -rw-r--r-- 1 root wheel 367213 Dec 17 12:48 snd_RELENG_6_0_20051130_070.= diff todorov-bsd-laptop# uname -a FreeBSD todorov-bsd-laptop.mobile 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov 2 19:07:38 UTC 2005 =20 root@rat.samsco.home:/usr/obj/usr/src/sys/GENERIC amd64 Thanks Regards, Angel On 12/17/05, Ariff Abdullah wrote: > On Sat, 17 Dec 2005 13:18:59 +0200 > Angel Todorov wrote: > > Hi, > > > > I'm using 6.0 RELEASE , and i applied the corresponding patch for > > the ATIIXP sound chip, but once i do make depend to rebuild the > > kernel, it can't find /usr/src/sys/modules/sound/driver/atiixp , i.e > > atiixp.c , atiixp.h , and the Makefile for it. Do i have to manually > > get these from somewhere and put them in this dir ? Thanks > > (otherwise the patch seems to be applied correctly). > > > Are you sure about that? It doesn't seem so. If the patch applied > correctly, you don't have to do any other extra step. Which > patch revision you use? > > > -- > Ariff Abdullah > MyBSD > > http://www.MyBSD.org.my (IPv6/IPv4) > http://staff.MyBSD.org.my (IPv6/IPv4) > http://tomoyo.MyBSD.org.my (IPv6/IPv4) > From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 12:12:18 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5449816A420 for ; Sat, 17 Dec 2005 12:12:18 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id C579A43D7B for ; Sat, 17 Dec 2005 12:12:03 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 5BED16CC3E; Sat, 17 Dec 2005 20:17:12 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73978-02; Sat, 17 Dec 2005 20:17:10 +0800 (MYT) Received: from misaki (unknown [219.95.202.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 8F45C6CC2F; Sat, 17 Dec 2005 20:17:09 +0800 (MYT) Date: Sat, 17 Dec 2005 20:11:54 +0800 From: Ariff Abdullah To: pyunyh@gmail.com Message-Id: <20051217201154.43fb87d2.skywizard@MyBSD.org.my> In-Reply-To: <20051214014838.GA10021@rndsoft.co.kr> References: <200512030310.jB33A77R038278@freefall.freebsd.org> <20051203092819.GB13672@rndsoft.co.kr> <20051204181714.C728@atlantis.403forbidden.net> <20051205060208.GC1086@rndsoft.co.kr> <20051205202824.C45817@atlantis.403forbidden.net> <20051212030939.GA1093@rndsoft.co.kr> <20051212201440.G701@atlantis.403forbidden.net> <20051213041830.GB5920@rndsoft.co.kr> <20051213200617.K701@atlantis.403forbidden.net> <20051214014838.GA10021@rndsoft.co.kr> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: kern/63204: [sound] /dev/mixer broken with ESS Maestro-2E (still on 5.4) 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: Sat, 17 Dec 2005 12:12:18 -0000 On Wed, 14 Dec 2005 10:48:38 +0900 Pyun YongHyeon wrote: > On Tue, Dec 13, 2005 at 08:16:44PM -0500, Steven S. wrote: > > > > > > I tried that patch and no difference. > > > > if it helps here is the verbose ssndstat output > > > > > > Installed devices: > > pcm0: port 0xfc00-0xfcff irq 11 at > > device 12.0 on pci0 (4p/1r/4v channels duplex default) > > [pcm0:play:0]: spd 44100, fmt 0x10000010, flags > > 0x00001000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_vchan_s16(0x10000010) -> {hardware} > > [pcm0:play:1]: spd 44100, fmt 0x10000010, flags > > 0x00000000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x10000010) -> {hardware} > > [pcm0:play:2]: spd 0, fmt 0x00000000/0x00000008, flags > > 0x00000000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > [pcm0:play:3]: spd 0, fmt 0x00000000/0x00000008, flags > > 0x00000000, > > 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags > > 0x00000000, 0x00000000 > > interrupts 0, overruns 0, hfree 16384, sfree 0 > > {hardware} -> feeder_root(0x00000000) -> {userland} > > pcm0:play:0[pcm0:virtual:0]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > pcm0:play:0[pcm0:virtual:1]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > pcm0:play:0[pcm0:virtual:2]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > pcm0:play:0[pcm0:virtual:3]: spd 0, fmt > > 0x00000000/0x00000008, > > flags 0x10000000, 0x00000000 > > interrupts 0, underruns 0, ready 0 > > {userland} -> feeder_root(0x00000000) -> {hardware} > > > > nothing else changed in dmesg or mixer > > > > Then I have no idea as my system works here. It seems it would be > difficult to fix the problem without accessing the hardware. :-( > How about setting hw.pci.enable_io_modes=0 or disabling ACPI in > loader.conf? > > Maybe ariff@ has better idea.(CCed) > To be truth, this is one of the issue that keep me puzzled. Lack of hardware is also an issue for me. One thing to note is, this driver used to work before the conversion of busdma (<= 5.1-R). The rest: 1) Excessive inlining - maestro.c won't survive if WARN=1. Inlining failure probably cause incorrect code generation. This need to be addressed. 2) Delayed interrupt hook - few drivers (ich, atiixp) need to delay further chip initialization in order to let interrupt works first. I cannot tell whether this is the right solution, but probably worth a try. Anyway, I'll try to get the specific hardware first. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 17 17:17:41 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42D7F16A41F for ; Sat, 17 Dec 2005 17:17:41 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from phws.ph.noda.tus.ac.jp (phws.ph.noda.tus.ac.jp [133.31.102.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8528343D7D for ; Sat, 17 Dec 2005 17:17:40 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost (unknown [133.31.111.131]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id 7BBB26E40CB; Sun, 18 Dec 2005 02:17:34 +0900 (JST) Date: Sun, 18 Dec 2005 02:17:34 +0900 (JST) Message-Id: <20051218.021734.343168854.kazuhito@ph.noda.tus.ac.jp> To: nemeths@for.mat.bham.ac.uk From: Kazuhito HONDA In-Reply-To: References: <20051212.154911.343146196.kazuhito@ph.noda.tus.ac.jp> X-Mailer: Mew version 3.3 on XEmacs 21.5-b22 (cucumber) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: external sound card under FreeBSD 6 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: Sat, 17 Dec 2005 17:17:41 -0000 Hello, From: Sandor Z Nemeth Subject: external sound card under FreeBSD 6 Date: Thu, 15 Dec 2005 23:12:57 +0000 (GMT) > uaudio0: Creative Technology SB Live! 24-bit External, rev 1.10/1.00, addr 2 > uaudio0: audio rev 1.00 > pcm0: on uaudio0 > uaudio1: vendor 0x046d product 0x08b4, rev 1.10/0.03, addr 2 > uaudio1: audio rev 1.00 > pcm1: on uaudio1 > play channel supported format list invalid > pcm1: chn_init(pcm1:play:0) failed: err = 19 > pcm1: pcm_chn_create(ua_chan, 1, 0xc1af9980) failed Did you plug two external sound cards? If you didn't, something (of LOGITECH?) except sound cards was plugged to a USB port, and it was recognized as a sound card. But the fact is it wasn't a sound card, usb sound system might be broken. In process written in your another mail, something (of LOGITECH?) must be recognized correctly since kernel didn't have snd_uaudio at boot. If you plugged two external sound cards (including a headset or so on), an external sound card (of LOGITECH?) wasn't recognized correctly. At any rate, it is important what is connected. What did you plug to USB ports? Sincerely yours, Kazuhito HONDA