From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 23 14:11:49 2006 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 C3CC616A4DF for ; Sun, 23 Jul 2006 14:11:49 +0000 (UTC) (envelope-from kov_vik@freemail.hu) Received: from fmx04.freemail.hu (fmx04.freemail.hu [195.228.245.54]) by mx1.FreeBSD.org (Postfix) with SMTP id E005143D53 for ; Sun, 23 Jul 2006 14:11:48 +0000 (GMT) (envelope-from kov_vik@freemail.hu) Received: (qmail 28639 invoked from network); 23 Jul 2006 16:11:46 +0200 Received: from fm14.freemail.hu (195.228.245.114) by fmx04.freemail.hu with SMTP; 23 Jul 2006 16:11:31 +0200 Received: (qmail 74028 invoked by uid 563820); 23 Jul 2006 16:11:31 +0200 Date: Sun, 23 Jul 2006 16:11:31 +0200 (CEST) From: =?ISO-8859-2?Q?KOV=C1CS_VIKTOR?= To: freebsd-multimedia@freebsd.org Message-ID: X-Originating-IP: [80.99.243.220] X-HTTP-User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.4) Gecko/20060702 Firefox/1.5.0.4 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Freemail: message scanned Subject: HDA driver works on Intel X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2006 14:11:49 -0000 Hello! If it helps I tried the HDA driver with Daniel Eischen's patch from 'http://people.freebsd.org/~deischen/hdac.tgz', and it works on my laptop. I cannot change the volume in XMMS, but in mplayer I can.=20 pciscan -lv: pcm0@pci0:27:0: class=3D0x040300 card=3D0x05711558 chip=3D0x27d88086 rev=3D0x02 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '82801G (ICH7 Family) High Definition Audio' class =3D multimedia I hope this will be in CVS soon ;-)=0A=0A__________________________________= _______________________________________ L=F3er=F5k, hengerek, ig=E9nyre szabottan! http://jarmuapro.origo.hu/advanc= edSearch.do?cid=3D1&rid=3D1#chooseCategory From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 23 15:54:48 2006 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 E970416A4DF; Sun, 23 Jul 2006 15:54:48 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (pool-71-117-252-190.ptldor.fios.verizon.net [71.117.252.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BD3843D58; Sun, 23 Jul 2006 15:54:47 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (localhost.home.localnet [127.0.0.1]) by schitzo.solgatos.com (8.13.6/8.13.6) with ESMTP id k6NFskSV027679; Sun, 23 Jul 2006 08:54:46 -0700 Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.13.6/8.13.4/Submit) with UUCP id k6NFskw0027676; Sun, 23 Jul 2006 08:54:46 -0700 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id PAA03098; Sun, 23 Jul 2006 15:53:48 GMT Message-Id: <200607231553.PAA03098@sopwith.solgatos.com> To: freebsd-hardware@freebsd.org, freebsd-multimedia@freebsd.org Date: Sun, 23 Jul 2006 08:53:48 +0100 From: Dieter Cc: Subject: Improving FreeBSD's hardware compatibility - TV tuners X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2006 15:54:49 -0000 > analog TV? what's that? isn't everyone going digital? (yes, I know > that analog TV will be with us for a long time due to security cams > and other uses..) Broadcast analog TV will be going away soon. Yet there will be continue to be some uses for analog capture. So I recommend concentrating first on tuners that handle both analog and digital. Work is in progress on the Dvico Fusion5 tuners. The Fusion5 is nice because it is available in a USB version, which does not require a slot. Another tuner worthy of a BSD driver is the HD3000. Does both analog and digital in a variety of formats (NTSC, PAL, 8VSB, QAM, etc.) Has working Linux drivers with source. The only tuner I know of that is documented to be friendly to fair use rights. The Fusion5 and HD3000 use different chips. If one doesn't work well in a particular reception environment, the other might. From owner-freebsd-multimedia@FreeBSD.ORG Sun Jul 23 23:18:02 2006 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 CA69B16A4DA; Sun, 23 Jul 2006 23:18:02 +0000 (UTC) (envelope-from nick@nickwithers.com) Received: from mail.nickwithers.com (mail.manrags.com [203.219.206.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B86C43D45; Sun, 23 Jul 2006 23:18:01 +0000 (GMT) (envelope-from nick@nickwithers.com) Received: from localhost (shmick.shmon.net [10.0.0.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.nickwithers.com (Postfix) with ESMTP id F39123A37A; Mon, 24 Jul 2006 09:17:47 +1000 (EST) Date: Mon, 24 Jul 2006 09:17:46 +1000 From: Nick Withers To: freebsd-multimedia@freebsd.org Message-Id: <20060724091746.e00df5ac.nick@nickwithers.com> In-Reply-To: <54106.61.68.92.74.1153297297.squirrel@nickwithers.com> References: <58847.10.0.0.15.1153283588.squirrel@nickwithers.com> <20060719052006.GB37635@cdnetworks.co.kr> <54106.61.68.92.74.1153297297.squirrel@nickwithers.com> Organization: nickwithers.com X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.20; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-nickwithers-MailScanner: Found to be clean X-nickwithers-MailScanner-From: nick@nickwithers.com Cc: ariff@freebsd.org Subject: Re: kern/84471: [sound] [patch] no sound ICH4 (Analog Devices X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2006 23:18:02 -0000 On Wed, 19 Jul 2006 18:21:37 +1000 (EST) "Nick Withers" wrote: > > On Wed, 19 July, 2006 3:20 pm, Pyun YongHyeon wrote: > > On Wed, Jul 19, 2006 at 02:33:08PM +1000, Nick Withers wrote: > > > G'day all, > > > > > > I'm attempting to convert a mate of my to the light side that is > > FreeBSD. > > > Everything's working extremely well, with the exception of sound for > > his > > > Compaq Presario B3800 laptop. > > > > > > I _believe_ that this is the same issue as described in kern/84471, > > which > > > I believe needs to be re-opened. > > > > > (snip) > > > How about attached patch? > > Thanks very much for that, but I'm afraid it didn't solve the problem... Apparently I lied... > > -- > > Regards, > > Pyun YongHyeon > > Any other ideas? Cheers! > > Oh, and Ariff: I tried setting ogain and phout to 100 both before and > after applying the patch / installing a new kernel to no avail, thanks for > the suggestion and interest! Righto, something magic happened and the machine now outputs sound without any problems. The only thing that I can really think of that might have b rought this about (short of me screwing something up - which I don't believe I did - or some strange hardware fault) is that he did attempt to boot into a vanilla Windows XP Professional installation (unsuccessfully, mind you) between our testing and the sound problem magically disappearing. The machine has a hardware volume adjuster thingy that isn't just an analog volument control (i.e.: It's the kind where some software is required to handle the thing), so perhaps the hardware volument was set to an aduible level by the XP boot? ...I hate things fixing themselves magically! Booting with the unpatched kernel leads to no sound, so Pyun's patch appears to have done the trick! -- Nick Withers email: nick@nickwithers.com Web: http://www.nickwithers.com Mobile: +61 414 397 446 From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 11:03:06 2006 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 7D5DD16A53F for ; Mon, 24 Jul 2006 11:03:06 +0000 (UTC) (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 E46D943D9D for ; Mon, 24 Jul 2006 11:02:49 +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 k6OB2l5A013692 for ; Mon, 24 Jul 2006 11:02:47 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6OB2kZW013688 for freebsd-multimedia@freebsd.org; Mon, 24 Jul 2006 11:02:46 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Jul 2006 11:02:46 GMT Message-Id: <200607241102.k6OB2kZW013688@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, 24 Jul 2006 11:03:06 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- 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 [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/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/12/10] kern/90214 multimedia [sound] memory leaks in snd_via8233 o [2006/03/09] kern/94279 multimedia [snd_neomagic] snd_neomagic crashes on Fr o [2006/04/30] kern/96538 multimedia [sound] emu10k1-driver inverts channels o [2006/05/20] kern/97535 multimedia [snd_mss] doesn't work in 6.0-RELEASE and o [2006/05/30] kern/98167 multimedia [sound] [es137x] [patch] ES1370 mixer vol o [2006/06/09] kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard o [2006/06/22] ports/99323 multimedia jackd audio server broken? o [2006/07/12] kern/100169 multimedia [snd_ich] snd_ich broken on Dell PIII sys 14 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/02/26] kern/25386 multimedia [sound] Incorrect mixer registers (line & o [2002/04/30] kern/37600 multimedia [sound] [partial patch] t4dwave drive doe f [2003/12/26] kern/60599 multimedia [bktr] [partial patch] No sound for ATI T o [2003/12/29] kern/60677 multimedia [sound] [patch] No reaction of volume con f [2004/05/14] kern/66642 multimedia [sound] pcm0: play: 0: play interrupt tim f [2004/09/30] kern/72218 multimedia [sound] audio recording broken with emu10 o [2004/10/22] kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound near o [2005/04/08] kern/79678 multimedia [sound] sound works except recording from 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/07/29] kern/84311 multimedia [sound] 82801FB/FR/FW/FRW Intel High Defi f [2005/08/03] kern/84507 multimedia [sound] fm801: Not every card supports va f [2005/09/11] kern/85964 multimedia [sound] Can't play 24 bit audio (Audigy 2 f [2005/10/04] ports/86899 multimedia multimedia/mjpegtools - lavplay/glav clai o [2005/10/21] kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: re f [2005/11/11] kern/88820 multimedia [sound] Erratic recognition of VIA 8285 s o [2006/01/29] kern/92512 multimedia [sound] distorted mono output with emu10k o [2006/01/30] kern/92557 multimedia [sound] Contrary to 6.0 release notes, sn o [2006/03/01] i386/93986 multimedia Acer TravelMate 4652LMi pcm0 channel dead o [2006/03/29] kern/95086 multimedia [sound] uaudio line in problem with sbdm o [2006/05/22] kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fai o [2006/06/04] kern/98496 multimedia [snd_ich] some functions don't work in my o [2006/06/04] kern/98504 multimedia [sound] Sound is distorted with SB Live 5 o [2006/06/30] kern/99639 multimedia [sound] FreeBSD 4.11 hangs while trying t 24 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 11:38:01 2006 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 25E5B16A4DA for ; Mon, 24 Jul 2006 11:38:01 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B21A43D46 for ; Mon, 24 Jul 2006 11:38:00 +0000 (GMT) (envelope-from kosio.dimitrov@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so772379wxd for ; Mon, 24 Jul 2006 04:37:59 -0700 (PDT) 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:references; b=XMBvsRxFMvK+jXQFxcsAIQBKmtQVelJ4u3ccnSVJw2hymoFi8jnr9xe3PaGd7vuOaxT2oSn3lzmQezDWHIyt1j+YY9fkrtpkBsIShD3F2GRAyP1C6WNpatw/VfJl7/O9LZUe6k6DLPwK7tiuOKNAmQqh8kWe8Om80POWjD92kek= Received: by 10.70.110.12 with SMTP id i12mr4538165wxc; Mon, 24 Jul 2006 04:37:59 -0700 (PDT) Received: by 10.70.54.6 with HTTP; Mon, 24 Jul 2006 04:37:59 -0700 (PDT) Message-ID: <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> Date: Mon, 24 Jul 2006 11:37:59 +0000 From: "Konstantin Dimitrov" To: freebsd-multimedia@freebsd.org In-Reply-To: <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> MIME-Version: 1.0 References: <200606072039.13422.shoesoft@gmx.net> <8103ad500607170201k259336a8te2f741f27fd8d3a4@mail.gmail.com> <8103ad500607171052u5196fcf9se50a5a4cbfa0c9f9@mail.gmail.com> <200607172337.48028.lrntct@gmail.com> <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Alexander@leidinger.net Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 11:38:01 -0000 during the last weekend i have some free time and decided to look through the list of reported problems: 1) memory leak after "kldunload snd_ak452x.ko" : "Warning: memory type ak452x leaked memory on destroy (1 allocations, 64 bytes leaked)." fixed, so should be removed from the list with bugs, here is the patch: http://xkodi.svobodno.com/envy24/new/envy24.c.memleak.diff 2) 24 bit playback not supported (only 16/32 bit) it is not true and should be removed from the list with bugs. according to OSS specification 24bit playback is done using 32bit playback: 24bit sample is padded with zeroes to 32bit sample and after that 24bit sample becomes 32bit sample with LSB==0. it is not responsibility of a driver to do that conversion, the conversion itself takes place into the player or into the kernel (newpcm subsystem). the driver supports 32bit playback, so that is why it also supports 24bit playback. i have tested 24bit playback with mplayer and it works fine as expected: Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 44100 Hz, 2 ch, s24le, 2116.8 kbit/100.00% (ratio: 264600->264600) Selected audio codec: [pcm] afm:pcm (Uncompressed PCM) ========================================================================== Checking audio filter chain for 44100Hz/2ch/s24le -> 44100Hz/2ch/s24le... AF_pre: 44100Hz/2ch/s24le AO: [oss] 44100Hz 2ch s24le (3 bps) Building audio filter chain for 44100Hz/2ch/s24le -> 44100Hz/2ch/s24le... 3) after kld(un)loading some times, the card fails to be probed until reboot i can't reproduce that problem, more details are needed ... are there any error messages when probing fails? 4) No sound in KDE: Everything works fine at the console but when I load KDE the sound stutters and plays at less then 1/2 speed. fixed, so should be removed from the list with bugs, here is the patch: http://xkodi.svobodno.com/envy24/new/envy24.c.hm_kde.diff the problem is related to the implementation of Envy24(1712) hardware mixer support in the driver, see 5) for more details 5) vchans don't work it is a feature, not a bug and it is really great feature, so should be removed from the list with bugs. Envy24(1712) has very precise 36bit wide hardware mixer, which is superior that vchans (software sound mixer in the kernel). the driver supports Envy24(1712) hardware mixer, so up to 10 channels (5 stereo pairs) can be playback simultaneously and that is why no software sound mixer (vchans) is needed. however, there are problems with the implementation of Envy24(1712) hardware mixer support in the driver, one of them is the problem decribed in 4), more detailed and correct description of 4) is: when playback several channels simultaneously and stop one of the channels, then sound starts to stutter and plays at very low speed. i'm expecting more problems related to the implementation of Envy24(1712) hardware mixer support to be found. personally i have already found two new: there is no problem to playback simultaneously 5 stereo 16bit sound files, but there is problem to playback simultaneously more than one 24bit/32bit sound file or 16bit sound file and 24bit/32bit sound file and currently i have no solution for these two new found problems. any feedback or questions are welcome. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 12:23:46 2006 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 62A3A16A4E2 for ; Mon, 24 Jul 2006 12:23:46 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 6184A43D79 for ; Mon, 24 Jul 2006 12:23:38 +0000 (GMT) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 24 Jul 2006 12:23:36 -0000 Received: from h081217094251.dyn.cm.kabsi.at (EHLO h081217094251.dyn.cm.kabsi.at) [81.217.94.251] by mail.gmx.net (mp043) with SMTP; 24 Jul 2006 14:23:36 +0200 X-Authenticated: #16703784 From: Stefan Ehmann To: "Konstantin Dimitrov" Date: Mon, 24 Jul 2006 14:23:28 +0200 User-Agent: KMail/1.9.3 References: <200606072039.13422.shoesoft@gmx.net> <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> In-Reply-To: <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607241423.30007.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: freebsd-multimedia@freebsd.org, Alexander@leidinger.net Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 12:23:46 -0000 On Monday 24 July 2006 13:37, Konstantin Dimitrov wrote: > during the last weekend i have some free time and decided to look through > the list of reported problems: > > 1) memory leak after "kldunload snd_ak452x.ko" : "Warning: memory type > ak452x leaked memory on destroy (1 allocations, 64 bytes leaked)." > > fixed, so should be removed from the list with bugs, here is the patch: > http://xkodi.svobodno.com/envy24/new/envy24.c.memleak.diff > > 2) 24 bit playback not supported (only 16/32 bit) > > it is not true and should be removed from the list with bugs. according to > OSS specification 24bit playback is done using 32bit playback: 24bit sample > is padded with zeroes to 32bit sample and after that 24bit sample becomes > 32bit sample with LSB==0. it is not responsibility of a driver to do that > conversion, the conversion itself takes place into the player or into the > kernel (newpcm subsystem). the driver supports 32bit playback, so that is > why it also supports 24bit playback. i have tested 24bit playback with > mplayer and it works fine as expected: > > Opening audio decoder: [pcm] Uncompressed PCM audio decoder > AUDIO: 44100 Hz, 2 ch, s24le, 2116.8 kbit/100.00% (ratio: 264600->264600) > Selected audio codec: [pcm] afm:pcm (Uncompressed PCM) > ========================================================================== > Checking audio filter chain for 44100Hz/2ch/s24le -> 44100Hz/2ch/s24le... > AF_pre: 44100Hz/2ch/s24le > AO: [oss] 44100Hz 2ch s24le (3 bps) > Building audio filter chain for 44100Hz/2ch/s24le -> 44100Hz/2ch/s24le... There's a similar problem with 8Bit files. Is this neither within the responsibility of the driver? With the 24bit file I tried I just get white noise in mplayer. I made another one for testing purposes and this one did work. (So it doesn't seem to be a problem with the driver) > > 3) after kld(un)loading some times, the card fails to be probed until > reboot > > i can't reproduce that problem, more details are needed ... are there any > error messages when probing fails? Here's the output in /var/log/messages: Jul 7 18:19:14 taxman kernel: pcm0: detached Jul 7 18:19:23 taxman kernel: pcm0: port 0xd400-0xd41f,0xd000-0xd00f,0xb800-0xb80f,0xb400-0xb43f irq 16 at device 13.0 on pci0 Jul 7 18:19:23 taxman kernel: pcm0: system configuration Jul 7 18:19:23 taxman kernel: SubVendorID: 0x1412, SubDeviceID: 0xd634 Jul 7 18:19:23 taxman kernel: XIN2 Clock Source: 22.5792MHz(44.1kHz*512) Jul 7 18:19:23 taxman kernel: MPU-401 UART(s) #: 1 Jul 7 18:19:23 taxman kernel: AC'97 codec: not exist Jul 7 18:19:23 taxman kernel: ADC #: 1 Jul 7 18:19:23 taxman kernel: DAC #: 1 Jul 7 18:19:23 taxman kernel: Multi-track converter type: I2S(96KHz support, 24bit resolution, ID#0x2) Jul 7 18:19:23 taxman kernel: S/PDIF(IN/OUT): 1/1 ID# 0x00 Jul 7 18:19:23 taxman kernel: GPIO(mask/dir/state): 0x04/0xfe/0xfb Jul 7 18:19:24 taxman kernel: pcm0: unable to initialize the card Jul 7 18:19:24 taxman kernel: device_attach: pcm0 attach returned 28 > > 4) No sound in KDE: Everything works fine at the console but when I load > KDE the sound stutters and plays at less then 1/2 speed. > > fixed, so should be removed from the list with bugs, here is the patch: > http://xkodi.svobodno.com/envy24/new/envy24.c.hm_kde.diff > > the problem is related to the implementation of Envy24(1712) hardware mixer > support in the driver, see 5) for more details > > 5) vchans don't work > > it is a feature, not a bug and it is really great feature, so should be > removed from the list with bugs. Envy24(1712) has very precise 36bit wide > hardware mixer, which is superior that vchans (software sound mixer in the > kernel). the driver supports Envy24(1712) hardware mixer, so up to 10 > channels (5 stereo pairs) can be playback simultaneously and that is why no > software sound mixer (vchans) is needed. > > however, there are problems with the implementation of Envy24(1712) > hardware mixer support in the driver, one of them is the problem decribed > in 4), more detailed and correct description of 4) is: > when playback several channels simultaneously and stop one of the channels, > then sound starts to stutter and plays at very low speed. > i'm expecting more problems related to the implementation of Envy24(1712) > hardware mixer support to be found. > personally i have already found two new: there is no problem to playback > simultaneously 5 stereo 16bit sound files, but there is problem to playback > simultaneously more than one 24bit/32bit sound file or 16bit sound file and > 24bit/32bit sound file and currently i have no solution for these two new > found problems. I've mistaken the problem when one of the channels stop with the vchans. I just got the stuttering sound. But now that I tried it works indeed as long as non of the channels stop. If there's no support in the chip, we probable have to stick to 24 or 32Bit (otherwise return busy or do the resampling in software) which isn't too much of a limitation IMHO. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 12:41:19 2006 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 4039B16A4DD for ; Mon, 24 Jul 2006 12:41:19 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60CF443D46 for ; Mon, 24 Jul 2006 12:41:17 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FF9C.dip.t-dialin.net [84.165.255.156]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k6OCTThd095680; Mon, 24 Jul 2006 14:29:29 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k6OCfJqZ001420; Mon, 24 Jul 2006 14:41:19 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 24 Jul 2006 14:41:19 +0200 Message-ID: <20060724144119.1vowamod40c88kws@netchild.homeip.net> X-Priority: 3 (Normal) Date: Mon, 24 Jul 2006 14:41:19 +0200 From: Alexander Leidinger To: Konstantin Dimitrov References: <200606072039.13422.shoesoft@gmx.net> <8103ad500607170201k259336a8te2f741f27fd8d3a4@mail.gmail.com> <8103ad500607171052u5196fcf9se50a5a4cbfa0c9f9@mail.gmail.com> <200607172337.48028.lrntct@gmail.com> <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> In-Reply-To: <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-multimedia@freebsd.org Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 12:41:19 -0000 Quoting Konstantin Dimitrov (from Mon, 24 =20 Jul 2006 11:37:59 +0000): > during the last weekend i have some free time and decided to look through > the list of reported problems: In case there are some open PRs I would like to know the number of them... > 5) vchans don't work > > it is a feature, not a bug and it is really great feature, so should be > removed from the list with bugs. Envy24(1712) has very precise 36bit wide > hardware mixer, which is superior that vchans (software sound mixer in the > kernel). the driver supports Envy24(1712) hardware mixer, so up to 10 > channels (5 stereo pairs) can be playback simultaneously and that is why n= o > software sound mixer (vchans) is needed. What if someone wants to play more than 5 stereo pairs at once? I agree that if an high quality feature like this is supported, it =20 should be used. But I don't agree that we should not use vchans. If =20 someone wants to use vchans, he should be able to use them (we can add =20 a note into the man page regarding the hardware feature and the =20 relative quality of it compared to vchans). Regarding the use of the hardware feature: How do you make use of it =20 in the driver? Do you allow the same stereo channel to get opened 5 =20 times and let the hardware handle everything? Bye, Alexander. --=20 Kiss your keyboard goodbye! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 12:57:20 2006 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 68FC416A4E6 for ; Mon, 24 Jul 2006 12:57:20 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F09D43D4C for ; Mon, 24 Jul 2006 12:57:18 +0000 (GMT) (envelope-from kosio.dimitrov@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so783148wxd for ; Mon, 24 Jul 2006 05:57:17 -0700 (PDT) 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:references; b=TlT14nheYon1lLkJYDZPODQ36hAuwe9+aLNrC8JIqbu1eg9BliWnSqGEqZdnxY2dfQF9XKeVJEDVxlU3qR5qUuoagOB4Cci4sBY516CqtnaGCgtq9MK/sVSVZEV6U7UwramW4dI+e7HCFXmNrf12WBlqKq127Z/MSfgct5GFkNY= Received: by 10.70.11.4 with SMTP id 4mr2918869wxk; Mon, 24 Jul 2006 05:57:17 -0700 (PDT) Received: by 10.70.54.6 with HTTP; Mon, 24 Jul 2006 05:57:17 -0700 (PDT) Message-ID: <8103ad500607240557y2dcc9f2we0fe4eee9fcd15b3@mail.gmail.com> Date: Mon, 24 Jul 2006 12:57:17 +0000 From: "Konstantin Dimitrov" To: "Stefan Ehmann" In-Reply-To: <200607241423.30007.shoesoft@gmx.net> MIME-Version: 1.0 References: <200606072039.13422.shoesoft@gmx.net> <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> <200607241423.30007.shoesoft@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, Alexander@leidinger.net Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 12:57:20 -0000 On 7/24/06, Stefan Ehmann wrote: > > On Monday 24 July 2006 13:37, Konstantin Dimitrov wrote: > > during the last weekend i have some free time and decided to look > through > > the list of reported problems: > > > > 1) memory leak after "kldunload snd_ak452x.ko" : "Warning: memory type > > ak452x leaked memory on destroy (1 allocations, 64 bytes leaked)." > > > > fixed, so should be removed from the list with bugs, here is the patch: > > http://xkodi.svobodno.com/envy24/new/envy24.c.memleak.diff > > > > 2) 24 bit playback not supported (only 16/32 bit) > > > > it is not true and should be removed from the list with bugs. according > to > > OSS specification 24bit playback is done using 32bit playback: 24bit > sample > > is padded with zeroes to 32bit sample and after that 24bit sample > becomes > > 32bit sample with LSB==0. it is not responsibility of a driver to do > that > > conversion, the conversion itself takes place into the player or into > the > > kernel (newpcm subsystem). the driver supports 32bit playback, so that > is > > why it also supports 24bit playback. i have tested 24bit playback with > > mplayer and it works fine as expected: > > > > Opening audio decoder: [pcm] Uncompressed PCM audio decoder > > AUDIO: 44100 Hz, 2 ch, s24le, 2116.8 kbit/100.00% (ratio: > 264600->264600) > > Selected audio codec: [pcm] afm:pcm (Uncompressed PCM) > > > ========================================================================== > > Checking audio filter chain for 44100Hz/2ch/s24le -> > 44100Hz/2ch/s24le... > > AF_pre: 44100Hz/2ch/s24le > > AO: [oss] 44100Hz 2ch s24le (3 bps) > > Building audio filter chain for 44100Hz/2ch/s24le -> > 44100Hz/2ch/s24le... > There's a similar problem with 8Bit files. Is this neither within the > responsibility of the driver? i will investigate that ... With the 24bit file I tried I just get white noise in mplayer. I made > another > one for testing purposes and this one did work. (So it doesn't seem to be > a > problem with the driver) i'm using 24bit wav files from here: http://computer.eskildsen.dk/ShowProduct.aspx?productId=17489 to test 24bit playback, maybe your first 24bit file was wrong(broken) > > > > 3) after kld(un)loading some times, the card fails to be probed until > > reboot > > > > i can't reproduce that problem, more details are needed ... are there > any > > error messages when probing fails? > > Here's the output in /var/log/messages: > > Jul 7 18:19:14 taxman kernel: pcm0: detached > Jul 7 18:19:23 taxman kernel: pcm0: 2496)> > port 0xd400-0xd41f,0xd000-0xd00f,0xb800-0xb80f,0xb400-0xb43f irq 16 at > device > 13.0 on pci0 > Jul 7 18:19:23 taxman kernel: pcm0: system configuration > Jul 7 18:19:23 taxman kernel: SubVendorID: 0x1412, SubDeviceID: 0xd634 > Jul 7 18:19:23 taxman kernel: XIN2 Clock Source: 22.5792MHz(44.1kHz*512) > Jul 7 18:19:23 taxman kernel: MPU-401 UART(s) #: 1 > Jul 7 18:19:23 taxman kernel: AC'97 codec: not exist > Jul 7 18:19:23 taxman kernel: ADC #: 1 > Jul 7 18:19:23 taxman kernel: DAC #: 1 > Jul 7 18:19:23 taxman kernel: Multi-track converter type: I2S(96KHz > support, > 24bit resolution, ID#0x2) > Jul 7 18:19:23 taxman kernel: S/PDIF(IN/OUT): 1/1 ID# 0x00 > Jul 7 18:19:23 taxman kernel: GPIO(mask/dir/state): 0x04/0xfe/0xfb > Jul 7 18:19:24 taxman kernel: pcm0: unable to initialize the card > Jul 7 18:19:24 taxman kernel: device_attach: pcm0 attach returned 28 that error means that "bus_dmamem_alloc(sc->dmat, (void **)&sc->pbuf, BUS_DMA_NOWAIT, &sc->pmap)" failes in the "envy24_dmainit" maybe the driver doesn't free the allocated dma resources correctly, definitely need investigation, thanks > > > > 4) No sound in KDE: Everything works fine at the console but when I load > > KDE the sound stutters and plays at less then 1/2 speed. > > > > fixed, so should be removed from the list with bugs, here is the patch: > > http://xkodi.svobodno.com/envy24/new/envy24.c.hm_kde.diff > > > > the problem is related to the implementation of Envy24(1712) hardware > mixer > > support in the driver, see 5) for more details > > > > 5) vchans don't work > > > > it is a feature, not a bug and it is really great feature, so should be > > removed from the list with bugs. Envy24(1712) has very precise 36bit > wide > > hardware mixer, which is superior that vchans (software sound mixer in > the > > kernel). the driver supports Envy24(1712) hardware mixer, so up to 10 > > channels (5 stereo pairs) can be playback simultaneously and that is why > no > > software sound mixer (vchans) is needed. > > > > however, there are problems with the implementation of Envy24(1712) > > hardware mixer support in the driver, one of them is the problem > decribed > > in 4), more detailed and correct description of 4) is: > > when playback several channels simultaneously and stop one of the > channels, > > then sound starts to stutter and plays at very low speed. > > i'm expecting more problems related to the implementation of > Envy24(1712) > > hardware mixer support to be found. > > personally i have already found two new: there is no problem to playback > > simultaneously 5 stereo 16bit sound files, but there is problem to > playback > > simultaneously more than one 24bit/32bit sound file or 16bit sound file > and > > 24bit/32bit sound file and currently i have no solution for these two > new > > found problems. > > I've mistaken the problem when one of the channels stop with the vchans. I > just got the stuttering sound. But now that I tried it works indeed as > long > as non of the channels stop. sorry, but i can't understand well - you apply the envy24.c.hm_kde.diff and still has problems when stop one of the channels or you have that problem before, because now when play more that one 16bit file and stop one or several of the files the rest should continue to play fine ? > If there's no support in the chip, we probable have to stick to 24 or > 32Bit > (otherwise return busy or do the resampling in software) which isn't too > much > of a limitation IMHO. > maybe i was not enough clear - the chip supports hardware mixing no matter what resolution is user - 16bit, 24bit and 32bit, but the driver works well only when mixing 16bit samples and it is limitation, because it can't mix 24/32bit+24/32bit samples or 16bit+24/32bit samples and it need very serious investigation. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 13:02:19 2006 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 AEA2316A4DF for ; Mon, 24 Jul 2006 13:02:19 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4981443D45; Mon, 24 Jul 2006 13:02:19 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from misaki (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with SMTP id k6OD2HjG028389; Mon, 24 Jul 2006 13:02:18 GMT (envelope-from ariff@FreeBSD.org) Date: Mon, 24 Jul 2006 21:02:09 +0800 From: Ariff Abdullah To: kosio.dimitrov@gmail.com Message-Id: <20060724210209.2e20820a.ariff@FreeBSD.org> In-Reply-To: <20060724144119.1vowamod40c88kws@netchild.homeip.net> References: <200606072039.13422.shoesoft@gmx.net> <8103ad500607170201k259336a8te2f741f27fd8d3a4@mail.gmail.com> <8103ad500607171052u5196fcf9se50a5a4cbfa0c9f9@mail.gmail.com> <200607172337.48028.lrntct@gmail.com> <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> <20060724144119.1vowamod40c88kws@netchild.homeip.net> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__24_Jul_2006_21_02_09_+0800_27EguG4hw16w2qQL" Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 13:02:19 -0000 --Signature=_Mon__24_Jul_2006_21_02_09_+0800_27EguG4hw16w2qQL Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 24 Jul 2006 14:41:19 +0200 Alexander Leidinger wrote: > Quoting Konstantin Dimitrov (from Mon, 24 > =20 > Jul 2006 11:37:59 +0000): >=20 > > during the last weekend i have some free time and decided to look > > through the list of reported problems: >=20 > In case there are some open PRs I would like to know the number of > them... >=20 > > 5) vchans don't work > > > > it is a feature, not a bug and it is really great feature, so > > should be removed from the list with bugs. Envy24(1712) has very > > precise 36bit wide hardware mixer, which is superior that vchans > > (software sound mixer in the kernel). the driver supports > > Envy24(1712) hardware mixer, so up to 10 channels (5 stereo pairs) > > can be playback simultaneously and that is why no software sound > > mixer (vchans) is needed. >=20 via8233 support up to 5 channels hardware mixing and works beautifully. The question is whether it is properly implemented or not. > What if someone wants to play more than 5 stereo pairs at once? >=20 > I agree that if an high quality feature like this is supported, it =20 > should be used. But I don't agree that we should not use vchans. If=20 >=20 > someone wants to use vchans, he should be able to use them (we can > add a note into the man page regarding the hardware feature and > the relative quality of it compared to vchans). >=20 I second this. > Regarding the use of the hardware feature: How do you make use of it > =20 > in the driver? Do you allow the same stereo channel to get opened 5=20 >=20 > times and let the hardware handle everything? >=20 Support for full blown 8/16/24/32 sign/unsigned vchan/softpcmvol/ssrc does exist: http://people.freebsd.org/~ariff/ I still need time to resync all my "stalled" work first. -- Ariff Abdullah FreeBSD --Signature=_Mon__24_Jul_2006_21_02_09_+0800_27EguG4hw16w2qQL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFExMTVlr+deMUwTNoRAvAgAJ9SWCBBoymcvOoL0bNeEvb0wybKrwCbBhwV yksJ3opQi2Sjldl70oKx64s= =/t2c -----END PGP SIGNATURE----- --Signature=_Mon__24_Jul_2006_21_02_09_+0800_27EguG4hw16w2qQL-- From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 13:21:48 2006 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 58B3516A4E1 for ; Mon, 24 Jul 2006 13:21:48 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 72BA543D46 for ; Mon, 24 Jul 2006 13:21:47 +0000 (GMT) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 24 Jul 2006 13:21:46 -0000 Received: from h081217094251.dyn.cm.kabsi.at (EHLO h081217094251.dyn.cm.kabsi.at) [81.217.94.251] by mail.gmx.net (mp039) with SMTP; 24 Jul 2006 15:21:46 +0200 X-Authenticated: #16703784 From: Stefan Ehmann To: "Konstantin Dimitrov" Date: Mon, 24 Jul 2006 15:21:43 +0200 User-Agent: KMail/1.9.3 References: <200606072039.13422.shoesoft@gmx.net> <200607241423.30007.shoesoft@gmx.net> <8103ad500607240557y2dcc9f2we0fe4eee9fcd15b3@mail.gmail.com> In-Reply-To: <8103ad500607240557y2dcc9f2we0fe4eee9fcd15b3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607241521.44121.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: freebsd-multimedia@freebsd.org, Alexander@leidinger.net Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 13:21:48 -0000 On Monday 24 July 2006 14:57, Konstantin Dimitrov wrote: > > I've mistaken the problem when one of the channels stop with the vchans. > > I just got the stuttering sound. But now that I tried it works indeed as > > long > > as non of the channels stop. > > sorry, but i can't understand well - you apply the envy24.c.hm_kde.diff and > still has problems when stop one of the channels or you have that problem > before, because now when play more that one 16bit file and stop one or > several of the files the rest should continue to play fine ? Sorry, I've missed that this problem is fixed with the patch. Works fine after applying envy24.c.hm_kde.diff Stefan From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 24 13:35:43 2006 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 51D9316A4DA for ; Mon, 24 Jul 2006 13:35:43 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE67943D5C for ; Mon, 24 Jul 2006 13:35:39 +0000 (GMT) (envelope-from kosio.dimitrov@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so788532wxd for ; Mon, 24 Jul 2006 06:35:39 -0700 (PDT) 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:references; b=pO3LJDssg/TGC557dpx/oWjdofpXgIU0g9qYL9EjOC+9sLM4TEqlKmMXBtwPp6X2lNIvm4LW6JxgVI51xCxTC2G1M0Pm2Xx3ABILBJzsybQxWLxiX2X1B2/hi2aitcNu0HgFFqH3ncknxDZ3oaGLOHxobiCPc+PAxRl3h3k//5s= Received: by 10.70.12.6 with SMTP id 6mr4915242wxl; Mon, 24 Jul 2006 06:35:39 -0700 (PDT) Received: by 10.70.54.6 with HTTP; Mon, 24 Jul 2006 06:35:38 -0700 (PDT) Message-ID: <8103ad500607240635w3d4a163ejf6eeb7b5c8fa3ca0@mail.gmail.com> Date: Mon, 24 Jul 2006 13:35:38 +0000 From: "Konstantin Dimitrov" To: "Alexander Leidinger" In-Reply-To: <20060724144119.1vowamod40c88kws@netchild.homeip.net> MIME-Version: 1.0 References: <200606072039.13422.shoesoft@gmx.net> <8103ad500607170201k259336a8te2f741f27fd8d3a4@mail.gmail.com> <8103ad500607171052u5196fcf9se50a5a4cbfa0c9f9@mail.gmail.com> <200607172337.48028.lrntct@gmail.com> <8103ad500607180035t50633780wbf585805464b8696@mail.gmail.com> <8103ad500607240437p256e65c2y79cd8fdc34a53cf0@mail.gmail.com> <20060724144119.1vowamod40c88kws@netchild.homeip.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, ariff@freebsd.org Subject: Re: Status of VIA Envy24 audio controller 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, 24 Jul 2006 13:35:43 -0000 On 7/24/06, Alexander Leidinger wrote: > > Quoting Konstantin Dimitrov (from Mon, 24 > Jul 2006 11:37:59 +0000): > > > during the last weekend i have some free time and decided to look > through > > the list of reported problems: > > In case there are some open PRs I would like to know the number of them... i think there are no PRs, Stefan and Nikolas reported the problems to the freebsd-multimedia@freebsd.org > 5) vchans don't work > > > > it is a feature, not a bug and it is really great feature, so should be > > removed from the list with bugs. Envy24(1712) has very precise 36bit > wide > > hardware mixer, which is superior that vchans (software sound mixer in > the > > kernel). the driver supports Envy24(1712) hardware mixer, so up to 10 > > channels (5 stereo pairs) can be playback simultaneously and that is why > no > > software sound mixer (vchans) is needed. > > What if someone wants to play more than 5 stereo pairs at once? > > I agree that if an high quality feature like this is supported, it > should be used. But I don't agree that we should not use vchans. If > someone wants to use vchans, he should be able to use them (we can add > a note into the man page regarding the hardware feature and the > relative quality of it compared to vchans). > i agree that it is a good idea to be able to choose between the use of vchans or build-in hardware mixer and maybe it's not properly implemented like Ariff Abdullah mentioned, maybe Ariff will help for proper implementation, i'm not enough familiar with newpcm, also all others Envy24 chips - 172x don't have build-in hardware mixer and volume support, so it is great to hear that "8/16/24/32 sign/unsigned vchan/softpcmvol/ssrc does exist" and maybe in that case vchans are much better choice and will remove a lot of complexity and problems from the driver. Regarding the use of the hardware feature: How do you make use of it > in the driver? Do you allow the same stereo channel to get opened 5 > times and let the hardware handle everything? as you know the author of the driver is Katsurajima Naoto and he is using the following approach to achieve hardware mixing: route all Envy24 DMA channels to the build-in hardware mixer and register 5 channels using "pcm_register" and "pcm_addchan" and every channel using different Envy24 DMA channel. Bye, > Alexander. > > -- > Kiss your keyboard goodbye! > > http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 > http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 > > From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 27 07:49:23 2006 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 7A91416A4DF for ; Thu, 27 Jul 2006 07:49:23 +0000 (UTC) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from mx.gfk.ru (mx.gfk.ru [84.21.231.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D23043D62 for ; Thu, 27 Jul 2006 07:49:19 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from demon.hhp.local by mx.gfk.ru (MDaemon PRO v9.0.5) with ESMTP id md50000366236.msg for ; Thu, 27 Jul 2006 11:48:46 +0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 27 Jul 2006 11:48:39 +0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: snd_emu10kx sound lag workaround Thread-Index: AcaxURKh3LFGQFqqSM6xzysDmrZj7g== From: "Yuriy Tsibizov" To: X-Spam-Processed: mx.gfk.ru, Thu, 27 Jul 2006 11:48:46 +0400 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.0.8 X-Return-Path: Yuriy.Tsibizov@gfk.ru X-Envelope-From: Yuriy.Tsibizov@gfk.ru X-MDaemon-Deliver-To: freebsd-multimedia@freebsd.org X-MDAV-Processed: mx.gfk.ru, Thu, 27 Jul 2006 11:48:46 +0400 Subject: snd_emu10kx sound lag workaround 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, 27 Jul 2006 07:49:23 -0000 snd_emu10kx has a problem playing small sound files (it is silent) and has some sound lag (on large files) with it's default buffer size of EMUPAGESIZE*4 (=3D16K). Workaround is to use smaller DMA buffer size (with buffer size =3D EMUPAGESIZE (=3D4K)) as it was in snd_emu10k1 driver. Hardware can use a buffer up to EMUPAGESIZE*8192 (=3D32M), if you use only one stereo channel. Default DMA buffer size is defined in sys/dev/sound/pci/emu10kx.h: #define EMU_DEFAULT_BUFSZ EMUPAGESIZE*4 It seems that driver plays data ahead of sound buffer updates, - with small files hardware never returns to start of buffer, with no sound at all. - with large files it has a lag (length depends on sample rate) and content of last update of hardware buffer is not played all. I'll try to fix it or ask to commit a workaround next week. Yuriy. From owner-freebsd-multimedia@FreeBSD.ORG Sat Jul 29 08:01:19 2006 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 318D016A4DA; Sat, 29 Jul 2006 08:01:19 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF66243D46; Sat, 29 Jul 2006 08:01:18 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6T81IjO073049; Sat, 29 Jul 2006 08:01:18 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6T81IE1073044; Sat, 29 Jul 2006 08:01:18 GMT (envelope-from linimon) Date: Sat, 29 Jul 2006 08:01:18 GMT From: Mark Linimon Message-Id: <200607290801.k6T81IE1073044@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-multimedia@FreeBSD.org Cc: Subject: Re: kern/99920: [snd_ich] Not support integrated audio on ICH7R chip (P5WD2 motherboard). 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, 29 Jul 2006 08:01:19 -0000 Synopsis: [snd_ich] Not support integrated audio on ICH7R chip (P5WD2 motherboard). Responsible-Changed-From-To: freebsd-i386->freebsd-multimedia Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jul 29 08:00:58 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=99920 From owner-freebsd-multimedia@FreeBSD.ORG Sat Jul 29 10:02:45 2006 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 ACEC716A4DD; Sat, 29 Jul 2006 10:02:45 +0000 (UTC) (envelope-from m.apitz@oclcpica.org) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9094E43D46; Sat, 29 Jul 2006 10:02:43 +0000 (GMT) (envelope-from m.apitz@oclcpica.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id LAA15655; Sat, 29 Jul 2006 11:59:41 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) Received: from ppp-82-135-0-112.dynamic.mnet-online.de(82.135.0.112) by hunter.Sisis.de via smap (V2.1) id xma015634; Sat, 29 Jul 06 11:59:11 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.13.4/8.13.4/Submit) id k6TA26wQ020601; Sat, 29 Jul 2006 12:02:06 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to m.apitz@oclcpica.org using -f Date: Sat, 29 Jul 2006 12:02:06 +0200 From: Matthias Apitz To: Joel Dahl Message-ID: <20060729100206.GA19424@rebelion.Sisis.de> References: <44C04B33.7030305@FreeBSD.org> <1153490847.666.11.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1153490847.666.11.camel@localhost> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-RELEASE (i386) Cc: freebsd-multimedia@freebsd.org Subject: Re: azalia(4) from NetBSD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2006 10:02:45 -0000 El día Friday, July 21, 2006 a las 04:07:27PM +0200, Joel Dahl escribió: > On Fri, 2006-07-21 at 00:34 -0300, Marcus Alves Grando wrote: > > Multimidia, > > > > I have plan to import azalia(4) from NetBSD to FreeBSD. Can someone show > > me what's need? How i can proceed? That's possible? > > I'm not sure this is such a good idea. Stephane E. Potvin and a few > others are already working on HDA support and several patches are > available in the list archives. You'd probably only be duplicating work > if you decide to port the azalia driver from NetBSD, so if you really > want to help, you should take a look at the following patches: > > The original driver from Stephane E. Potvin: > http://www.leidinger.net/FreeBSD/hdac_20060525.tbz > > >From Andrea Bittau: > http://darkircop.org/hdac.tgz > http://darkircop.org/hdac-rec.tgz > > >From Wesley Morgan: > http://files.chemikals.org/hdac.tgz > > >From Daniel Eischen: > http://people.freebsd.org/~deischen/hdac.tgz > > I can't stop you from porting the azalia driver, but I would like to > encourage you to at least take a look at what we already have before you > do anything. :-) I have one laptop with the following sound chip: none0@pci0:27:0: class=0x040300 card=0x107c1734 chip=0x26688086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82801FB/FR/FW/FRW Intel High DefiNition Audio Controller' class = multimedia which works with the driver from OpenSound (I say this to ensure that it is really playing sound :-)). Today I gave a try to three of the above mentioned drivers: 1. From Daniel Eischen: http://people.freebsd.org/~deischen/hdac.tgz this gives: # kldload ./hdac.ko # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: (1p/0r/0v channels default) # cat hdac.ko > /dev/dsp # but no noise comes out. In /var/log/messages I've: Jul 29 09:58:56 farc kernel: pcm0: mem 0xffef8000-0xffefbfff irq 16 at device 27.0 on pci0 Jul 29 09:58:56 farc kernel: init 0xc2817e80 Jul 29 09:58:56 farc kernel: pcm0: Output Streams: 4, Input Streams: 4, Bidirectional Streams: 0 Jul 29 09:58:56 farc kernel: pcm0: CORB Size: 256, RIRB Size: 256 Jul 29 09:58:56 farc kernel: pcm0: Vendor info: 10573055 1057 3055 7 0 2 Jul 29 09:58:56 farc kernel: pcm0: Vendor info: 10ec0880 10ec 880 8 0 1 Jul 29 09:58:56 farc kernel: pcm0: at device 0:1 (no driver attached) Jul 29 09:58:56 farc kernel: pcm0: