From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 22 16:38:30 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEF88106564A; Sun, 22 Jan 2012 16:38:30 +0000 (UTC) (envelope-from br@rtclab.com) Received: from mx.bsdpad.com (mx.bsdpad.com [46.4.68.80]) by mx1.freebsd.org (Postfix) with ESMTP id AF3418FC15; Sun, 22 Jan 2012 16:38:30 +0000 (UTC) Received: from mx.bsdpad.com ([46.4.68.80] helo=rtclab.com) by mx.bsdpad.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1Rp0R2-0004tk-Hh; Sun, 22 Jan 2012 20:38:28 +0400 Received: (from br@localhost) by rtclab.com (8.14.5/8.14.5/Submit) id q0MGcSXw018831; Sun, 22 Jan 2012 16:38:28 GMT (envelope-from br) Date: Sun, 22 Jan 2012 20:38:28 +0400 From: Ruslan Bukin To: Alexander Motin Message-ID: <20120122163828.GA18783@jail.io> References: <4F1ADDC8.90104@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F1ADDC8.90104@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@FreeBSD.org Subject: Re: multi-mono-channel sound card 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, 22 Jan 2012 16:38:31 -0000 Hi, On Sat, Jan 21, 2012 at 05:46:16PM +0200, Alexander Motin wrote: > On 01/21/12 16:12, Ruslan Bukin wrote: > >My multichannel sound card (RME HDSPe AIO) is support > >SND_FORMAT(AFMT_S32_LE, 1, 0) only. > > > >I call pcm_addchan(..), which triggers chan_init(..,*snd_dbuf,..) > >Addr of snd_dbuf I write to card in slot N. > >In result I have /dev/dsp0.pN devices (one device per each mono channel) > > > >Works perfectly, sounds great, but in mono mode. > > > >I'm interested, what is the right way to implement > >stereo pair of channels per one device file like in OSS? > > pcm_addchan() registers set of equal playback/record channels that > are supposed to be mixed into the same signal. It is hardware > equivalent of vchans. It has nothing common with multiple speakers. > > Multichannel audio is always multiplexed and AFAIk there is no > demultiplexing in sound(4). Sound(4) can upmix/downmix channels, > change their order, format, rate, but not demultiplex. > > I see only two ways: > - implement demultiplexing in driver -- that is not easy, but I > believe it should be possible; > - export each input/output connector as separate PCM device and let > some user level software to do demultiplexing -- that is easy and > that is what snd_emu10kx does. snd_emu10kx(4) recommends to use > pulseaudio for demultiplexing. Thanks. I have implemented demultiplexing. Works great. I will release the driver soon. -Ruslan > > -- > Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 22 18:19:13 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6554A106564A for ; Sun, 22 Jan 2012 18:19:13 +0000 (UTC) (envelope-from thomas.e.zander@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id ECD198FC1C for ; Sun, 22 Jan 2012 18:19:12 +0000 (UTC) Received: by eekb47 with SMTP id b47so903624eek.13 for ; Sun, 22 Jan 2012 10:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0lWlmnMmjVa4ilkRk+D9rro3JGenJr4uxQS5e4Fwf70=; b=WRSxTNI9tq6D7ZBTwQaaajWSrH9Mq3Cc7kpTV8hYxP+dnu5o+VFHMcccC+GOj0q91J Qxg/mjpDqeETSFHa3SYbLGewpDe8HKuAizVP6z9M6s3Z2kgKlY2+m75dTpXQA7+Ihssb K1xNjifpKrNGHs520etEVyicTUciJrPtGv2EI= MIME-Version: 1.0 Received: by 10.14.10.210 with SMTP id 58mr855172eev.69.1327254792541; Sun, 22 Jan 2012 09:53:12 -0800 (PST) Received: by 10.14.95.13 with HTTP; Sun, 22 Jan 2012 09:53:12 -0800 (PST) In-Reply-To: <9209801.6015281327169259731.JavaMail.defaultUser@defaultHost> References: <9209801.6015281327169259731.JavaMail.defaultUser@defaultHost> Date: Sun, 22 Jan 2012 18:53:12 +0100 Message-ID: From: Thomas Zander To: Barbara Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-multimedia@freebsd.org Subject: Re: last mplayer and h264 videos 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, 22 Jan 2012 18:19:13 -0000 On Sat, Jan 21, 2012 at 19:07, Barbara wrote: > BTW, I've just checked that the patch that should solve the problem as posted > in ffmpeg mailing list should be included in our version of mplayer, so > probably the symptoms are similar or equal, the cause is not. This patch has been fixed in ffmpeg ages ago (Feb 2011). It should be included in the ffmpeg build we use in mplayer. Do you know whether anyone had this problem with ffmpeg h264 after the fix date? I couldn't find a single h264 file on my hard drive that shows the same problem when played. Maybe someone else on the list has encountered it? RIggs From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 22 19:38:02 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA7F6106566C for ; Sun, 22 Jan 2012 19:38:02 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from outrelay01.libero.it (outrelay01.libero.it [212.52.84.101]) by mx1.freebsd.org (Postfix) with ESMTP id 013F68FC15 for ; Sun, 22 Jan 2012 19:38:01 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0206.4F1C6598.0012,ss=1,re=0.000,fgs=0 X-libjamoibt: 1821 Received: from wmail61 (172.31.0.58) by outrelay01.libero.it (8.5.140) (authenticated as barbara.xxx1975@libero.it) id 4F1007AF0112E925; Sun, 22 Jan 2012 20:37:59 +0100 Message-ID: <3348152.3719071327261079960.JavaMail.defaultUser@defaultHost> Date: Sun, 22 Jan 2012 20:37:59 +0100 (CET) From: Barbara To: MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: 7bit X-SenderIP: 95.252.74.79 Cc: freebsd-multimedia@freebsd.org Subject: R: Re: last mplayer and h264 videos X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Barbara List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2012 19:38:02 -0000 > >On Sat, Jan 21, 2012 at 19:07, Barbara wrote: > >> BTW, I've just checked that the patch that should solve the problem as posted >> in ffmpeg mailing list should be included in our version of mplayer, so >> probably the symptoms are similar or equal, the cause is not. > >This patch has been fixed in ffmpeg ages ago (Feb 2011). It should be >included in the ffmpeg build we use in mplayer. Yes I know, I wrote that before. Sorry, maybe I had been not clear enough: I wrote "should be" but in fact it's a "is". > Do you know whether anyone had this problem with ffmpeg h264 after the fix date? No, I don't know. I was just searching for the problem with mplayer when I found that page about ffmpeg. > >I couldn't find a single h264 file on my hard drive that shows the >same problem when played. > Maybe someone else on the list has encountered it? > >RIggs > Did you tried with the one Iinked in my first message? This happens also with videos downloaded from youtube. Look at the transcript here for example: http://pastebin.com/EcRdVUxV This is the output of make showconfig $ cd /usr/ports/multimedia/mplayer && make showconfig ===> The following configuration options are available for mplayer-1.0. r20111218_1: DEBUG=off "Include debug symbols in mplayer's binaries" RTCPU=on "Allow runtime CPU detection" OCFLAGS=on "Use optimized compiler flags" OTCHAIN=off "Use up-to-date toolchain (gcc 4.6)" IPV6=off "Include inet6 network support" X11=on "Enable X11 support for mplayer's video output" X11XV=on "X11 video drivers: XV" X11DGA=on "X11 video drivers: DGA" X11GL=on "X11 video drivers: OpenGL" X11XIN=on "X11 video drivers: Xinerama" X11VM=on "X11 VidMode support" X11XVMC=off "Enable XvMC acceleration" VDPAU=on "Enable Nvidia VDPAU acceleration" GUI=on "Enable GTK2 graphical user interface with X11" SDL=on "Enable SDL video output" SKINS=off "Force dependency on mplayer-skins" RTC=off "Add support for kernel real time clock timing" ARTS=off "Enable KDE sound system support" ESOUND=on "Enable GNOME esound support" JACK=off "Enable JackIt audio server support" NAS=off "Enable NAS sound server support" OPENAL=on "Enable OpenAL sound support" PULSE=on "Enable PulseAudio" LIBUNGIF=on "Enable gif support" OPENJPEG=on "Enable JPEG2000 support" MNG=off "Enable MNG input support" AALIB=on "Enable aalib support" LIBCACA=on "Enable libcaca support" SVGALIB=on "Enable svgalib support" LIBDV=on "Enable libdv support" MAD=on "Enable mad MPEG audio engine support" AMR_NB=on "AMR Narrow Band encoder (opencore)" AMR_WB=on "AMR Wide Band encoder (opencore)" GSM=off "GSM audio codec" LADSPA=off "Enable LADSPA plugin support" SPEEX=on "Enable speex audio codec support" THEORA=on "Enable ogg theora video support" VPX=on "Enable VP8 video via libvpx" SCHROEDINGER=off "Dirac codec via libschroedinger" WIN32=on "Enable win32 codec set on the IA32 arch" REALPLAYER=off "Enable real player plugin" LIVEMEDIA=on "Enable LIVE555 streaming support" SMB=off "Enable Samba input support" BLURAY=off "Build with libbluray support" FRIBIDI=off "Enable FriBiDi support" LIRC=off "Enable lirc support" LIBCDIO=on "Enable libcdio support" CDPARANOIA=on "Enable cdparanoia support" LIBLZO=off "Enable external liblzo library" JOYSTICK=off "Enable joystick support" V4L=off "Enable Video4Linux TV support" LIBRTMP=on "Enable RTMPDump Streaming Media support" ===> Use 'make config' to modify these settings Thanks Barbara From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 23 11:07:08 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCF69106564A for ; Mon, 23 Jan 2012 11:07:08 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C9E7E8FC08 for ; Mon, 23 Jan 2012 11:07:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0NB789J081018 for ; Mon, 23 Jan 2012 11:07:08 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0NB78sC081016 for freebsd-multimedia@FreeBSD.org; Mon, 23 Jan 2012 11:07:08 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Jan 2012 11:07:08 GMT Message-Id: <201201231107.q0NB78sC081016@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org 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, 23 Jan 2012 11:07:08 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/164180 multimedia [PATCH] multimedia/mp4v2: Fix build with clang o kern/162181 multimedia [snd_emu10k1] [patch] The kernel sound driver module s o ports/161871 multimedia [patch] multimedia/mjpegtools plist incorrect with QUI o ports/161783 multimedia [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 o ports/161568 multimedia [PATCH] audio/libsamplerate: samplerate.h has comma at o ports/161546 multimedia [PATCH] multimedia/mkvtoolnix: make some dependencies o kern/159236 multimedia [pcm] [patch] set PCM_CAP_DEFAULT for the default snd o ports/158987 multimedia multimedia/py-kaa-multimedia: fix build error for grap o kern/158979 multimedia [snd_uadio] snd_uaudio fails to initialize built-in mi o kern/158542 multimedia [snd_hda] hdac0: hdac_get_capabilities: Invalid corb s f kern/158424 multimedia [snd_hda] snd_hda driver doesn't expose 'rec' flag for o kern/156726 multimedia [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o kern/156198 multimedia [snd_hda] [hang] loading snd_hda kernel module hangs s o kern/156165 multimedia [hdac] Missing card definition for hdac audio device, o kern/153920 multimedia [sound] [patch] Replace the GPL'd sound/maestro3 heade o ports/153846 multimedia graphics/libcaca 0.99.beta17 - Hidden dependency on Xl o kern/152622 multimedia [pcm] uaudio recording problem o kern/152500 multimedia [hdac] play interrupt timeout, channel dead o kern/152378 multimedia [sound][patch] Update snd_envy24ht to be MPSAFE and us f ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o kern/148741 multimedia [sound] Headphones are deaf (do not work) on Lenovo Th o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/104626 multimedia [sound] FreeBSD 6.2 does not support SoundBlaster Audi o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup s kern/83697 multimedia [sound] [snd_mss] [patch] support, docs added for full o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 78 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 23 14:08:44 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90511106564A for ; Mon, 23 Jan 2012 14:08:44 +0000 (UTC) (envelope-from freebsd-multimedia@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD298FC15 for ; Mon, 23 Jan 2012 14:08:44 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RpKL8-0007H8-8T for freebsd-multimedia@freebsd.org; Mon, 23 Jan 2012 14:53:42 +0100 Received: from 164-16-132-95.pool.ukrtel.net ([95.132.16.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jan 2012 14:53:42 +0100 Received: from c.kworr by 164-16-132-95.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jan 2012 14:53:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-multimedia@freebsd.org From: Volodymyr Kostyrko Date: Mon, 23 Jan 2012 15:53:27 +0200 Lines: 23 Message-ID: References: <20120120170956.GV11137@goofy01.vnodelab.local> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 164-16-132-95.pool.ukrtel.net User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0.1) Gecko/20120110 Firefox/9.0.1 SeaMonkey/2.6.1 In-Reply-To: <20120120170956.GV11137@goofy01.vnodelab.local> Subject: Re: Removing broken drivers in sys/dev/sound/pci 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, 23 Jan 2012 14:08:44 -0000 Joel Dahl wrote: > Hi all, > > I've been playing with a bunch of old sound cards I had lying around and I've > come to the conlusion that maybe it's time to remove a few old drivers we > currently have in the tree. > > - snd_aureal > > This driver wasn't really finished when it was committed back in 1999 and it's > still incomplete. No playback and it doesn't even have a manual page. There's > audio/aureal-kmod in ports which probably works better for this card... I thought the remnants were cleared with http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/124343 The leftover is not even connected to the build and can be safely removed. I even can't test it - I only have pcm0: port 0xd000-0xd007,0xd400-0xd407 mem 0xeb000000-0xeb03ffff irq 22 at de vice 12.0 on pci0 -- Sphinx of black quartz judge my vow. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 23 14:28:38 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 783FF1065673 for ; Mon, 23 Jan 2012 14:28:38 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 097128FC14 for ; Mon, 23 Jan 2012 14:28:37 +0000 (UTC) Received: by bkbc12 with SMTP id c12so3223673bkb.13 for ; Mon, 23 Jan 2012 06:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=bR6KkPpYYsTyqxCqkKK//P5T1ZHLm60Ay5D+dU2uY7w=; b=r2IKWgjB0Pow3XWaFv8PsBgicBOlFWcRUzmtaEgOLZGCVHrR5CQtPQKOyISAf0zGQJ UUC7hWuJUjRp8kjYJ4FS08w+2eQFbj+VLkUTJHwCbnmDmCw8GRfqcagnZiAH2d36lEjo WccTOZnTJd/cXQu6QRi3mGahSbbBCmdoOsYZ0= Received: by 10.204.225.71 with SMTP id ir7mr3287364bkb.124.1327327464693; Mon, 23 Jan 2012 06:04:24 -0800 (PST) Received: from Groseille.malikania.fr (197.21.102.84.rev.sfr.net. [84.102.21.197]) by mx.google.com with ESMTPS id ek9sm28569299bkb.10.2012.01.23.06.04.22 (version=SSLv3 cipher=OTHER); Mon, 23 Jan 2012 06:04:23 -0800 (PST) Message-ID: <4F1D68E6.4030900@gmail.com> Date: Mon, 23 Jan 2012 15:04:22 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120114 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: multimedia remote probed as ugen 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, 23 Jan 2012 14:28:38 -0000 Hi there, I have a not very USB compliant remote controller for PC, it's an auvisio VRC 1000. It has a support for mouse and keyboard as well, only multimedia keys should be used as human interface device (uhid then). But since I've upgraded to 9.0, the remote is probed as ugen and I can't extract anything from it : ugen4.2: at usbus4 ukbd1: on usbus4 kbd3 at ukbd1 ums1: on usbus4 ums1: 5 buttons and [XYZ] coordinates ID=1 root@Groseille ~ # usbhidctl -f /dev/ugen4.2 -r usbhidctl: USB_GET_REPORT_DESC What can I do? Is it possible to add a quirk to detect this as an uhid or anything else? Cheers, -- David Demelier From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 23 17:36:19 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EFC1106566B for ; Mon, 23 Jan 2012 17:36:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 9FD748FC0A for ; Mon, 23 Jan 2012 17:36:18 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 230888555; Mon, 23 Jan 2012 18:36:15 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Mon, 23 Jan 2012 18:34:11 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4F1D68E6.4030900@gmail.com> In-Reply-To: <4F1D68E6.4030900@gmail.com> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201201231834.11474.hselasky@c2i.net> Cc: Subject: Re: multimedia remote probed as ugen 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, 23 Jan 2012 17:36:19 -0000 On Monday 23 January 2012 15:04:22 David Demelier wrote: > Hi there, > > I have a not very USB compliant remote controller for PC, it's an > auvisio VRC 1000. It has a support for mouse and keyboard as well, only > multimedia keys should be used as human interface device (uhid then). > > But since I've upgraded to 9.0, the remote is probed as ugen and I can't > extract anything from it : > > ugen4.2: at usbus4 > ukbd1: > on usbus4 > kbd3 at ukbd1 > ums1: > on usbus4 > ums1: 5 buttons and [XYZ] coordinates ID=1 > > root@Groseille ~ # usbhidctl -f /dev/ugen4.2 -r > usbhidctl: USB_GET_REPORT_DESC > > What can I do? Is it possible to add a quirk to detect this as an uhid > or anything else? > > Cheers, Hi, There are some IGNORE quirks which you can use to free your device from ukbd at least: usbconfig dump_quirk_names | grep IGNORE Try: usbconfig -d 4.2 add_quirk UQ_KBD_IGNORE Then replug your device! The change does not persist after reboot. See /sys/dev/usb/quirk/usb_quirk.c --HPS From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 23 18:05:49 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F7BF1065675; Mon, 23 Jan 2012 18:05:49 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from sirius.xvoid.org (sirius.xvoid.org [IPv6:2001:470:28:4ba:20c:29ff:fe62:9a22]) by mx1.freebsd.org (Postfix) with ESMTP id DDEC88FC0C; Mon, 23 Jan 2012 18:05:48 +0000 (UTC) Received: from sirius.xvoid.org (yuri@sirius.xvoid.org [IPv6:::1]) by sirius.xvoid.org (8.14.5/8.14.5) with ESMTP id q0NI5lqc014930; Mon, 23 Jan 2012 22:05:47 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by sirius.xvoid.org (8.14.5/8.14.5/Submit) id q0NI5lTX014929; Mon, 23 Jan 2012 22:05:47 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: sirius.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Mon, 23 Jan 2012 22:05:47 +0400 From: Yuri Pankov To: Alexander Motin Message-ID: <20120123180547.GB13410@sirius.xvoid.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <20120112130404.GD1429@procyon.xvoid.org> <4F16ED05.4060604@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F16ED05.4060604@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 23 Jan 2012 18:05:49 -0000 On Wed, Jan 18, 2012 at 06:02:13PM +0200, Alexander Motin wrote: > On 01/12/12 15:04, Yuri Pankov wrote: > > On Thu, Jan 12, 2012 at 02:57:52PM +0200, Alexander Motin wrote: > >> On 01/12/12 14:18, Yuri Pankov wrote: > >>> On Wed, Jan 11, 2012 at 09:33:17PM +0200, Alexander Motin wrote: > >>>> I would like request for testing of my work on further HDA sound driver > >>>> improvement. > >>> [...] > >>>> Patch can be found here: > >>>> http://people.freebsd.org/~mav/hda.rewrite.patch > >>>> > >>>> Patch was generated for 10-CURRENT, but should apply to fresh 9-STABLE > >>>> and 8-STABLE branches also. > >>> > >>> Patch applied cleanly to r230008 using `svn patch`. > >>> > >>> hdacc0: at cad 0 on hdac0 > >>> hdaa0: at nid 1 on hdacc0 > >>> pcm0: at nid 5 on hdaa0 > >>> hdacc1: at cad 1 on hdac0 > >>> hdaa1: at nid 1 on hdacc1 > >>> pcm1: at nid 5 on hdaa1 > >>> hdacc2: at cad 2 on hdac0 > >>> hdaa2: at nid 1 on hdacc2 > >>> pcm2: at nid 5 on hdaa2 > >>> hdacc3: at cad 3 on hdac0 > >>> hdaa3: at nid 1 on hdacc3 > >>> pcm3: at nid 5 on hdaa3 > >>> hdacc4: at cad 0 on hdac1 > >>> hdaa4: at nid 1 on hdacc4 > >>> pcm4: at nid 13 and 11 on hdaa4 > >>> pcm5: at nid 15 and 24 on hdaa4 > >>> pcm6: at nid 30 on hdaa4 > >>> > >>> pcm4 (builtin speakers) and pcm5 (headphones) seem to work fine, however > >> > >> Thank you. > >> > >>> I'm not getting anything out of pcm0-pcm3 (connected to a TV via HDMI), > >>> mplayer just pauses at the beggining, trying to cat anything to > >>> /dev/dsp{0-3}.0 gives: > >>> > >>> pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead > >>> > >>> It was the same with the old driver and I'm not sure if it's (most > >>> likely) my misconfiguration or a driver problem. > >> > >> It sounds more like a driver problem. HDMI audio is still not very well > >> discovered area, and, according to ALSA reading, NVidia HDMI is also not > >> very standard. Probably I'll finally have to buy something to > >> experiment. What card do you have? > > > > It's a laptop with "nVidia Corporation GT216 [GeForce GT 230M]" (as > > identified by x11/nvidia-driver). > > I've reproduced it on NVidia GT210. It seems there is some problem with > MSI generation. Switching to legacy PCI interrupts fixes problem for me. > Linux HDA driver disables MSI for all NVidia controllers. > > Try to add hint.hdac.0.msi=0 into the /boot/loader.conf. Sorry for delay. Indeed, setting hint.hdac.0.msi=0 helped. Thanks, Yuri From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 10:45:09 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 007BC1065673; Tue, 24 Jan 2012 10:45:09 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1BF8FC1D; Tue, 24 Jan 2012 10:45:07 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so4106839wgb.31 for ; Tue, 24 Jan 2012 02:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=Y2t5s+Xdg3qTnBWJrkd39UmgpjN0ifByVewLmKL0gXk=; b=L8gqqctdkr0LCVNtB77djE8k+w7x9kllwaf9KQDs/XV7TOhQOlqy19NxoqrJdAGQ0C fpOLX/4v8nofMLUadt+iY9HYs8f1DsezhJwVKIbZliMBCJMV44wfFvPsieBx6DE+szaP X8g+g5c/z4opJ2hnKmuZc3+YE/TRPSocEx+LU= Received: by 10.180.73.72 with SMTP id j8mr19637661wiv.2.1327400523172; Tue, 24 Jan 2012 02:22:03 -0800 (PST) MIME-Version: 1.0 Sender: villa.alberto@gmail.com Received: by 10.227.11.210 with HTTP; Tue, 24 Jan 2012 02:21:43 -0800 (PST) In-Reply-To: <201201151834.q0FIYF05077693@spica.xvoid.org> References: <201201151834.q0FIYF05077693@spica.xvoid.org> From: Alberto Villa Date: Tue, 24 Jan 2012 11:21:43 +0100 X-Google-Sender-Auth: rrXWuOrWKfIOGMEIkoY0JfcEXU4 Message-ID: To: Yuri Pankov Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD-gnats-submit@freebsd.org, multimedia@freebsd.org Subject: Re: [PATCH] multimedia/mp4v2: Fix build with clang 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, 24 Jan 2012 10:45:09 -0000 Will anyone work on this or may I assing it myself? I know, I'm not in multimedia@, but I'm in kde@ and I'd like it to make progress with Clang (and this is blocking it). -- Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 12:36:41 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 155761065672; Tue, 24 Jan 2012 12:36:41 +0000 (UTC) (envelope-from makc@issp.ac.ru) Received: from mail.issp.ac.ru (mail.issp.ac.ru [77.236.34.3]) by mx1.freebsd.org (Postfix) with ESMTP id 626788FC1D; Tue, 24 Jan 2012 12:36:39 +0000 (UTC) Received: from mercury.ph.man.ac.uk [130.88.75.175:27797] (HELO/EHLO mercury.ph.man.ac.uk, authenticated with LOGIN) by mail.issp.ac.ru with ESMTP/inet id q0OCPmvp085829 (using TLSv1/SSLv3, with cipher DHE-RSA-AES256-SHA (256 bits), verified NO) Tue, 24 Jan 2012 15:25:49 +0300 (MSK) From: Max Brazhnikov To: freebsd-multimedia@freebsd.org Date: Tue, 24 Jan 2012 12:24:50 +0000 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RC1; KDE/4.7.3; amd64; ; ) References: <201201151834.q0FIYF05077693@spica.xvoid.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201201241224.50830.makc@issp.ac.ru> Cc: Yuri Pankov , FreeBSD-gnats-submit@freebsd.org Subject: Re: [PATCH] multimedia/mp4v2: Fix build with clang 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, 24 Jan 2012 12:36:41 -0000 On Tue, 24 Jan 2012 11:21:43 +0100, Alberto Villa wrote: > Will anyone work on this or may I assing it myself? I know, I'm not in > multimedia@, but I'm in kde@ and I'd like it to make progress with > Clang (and this is blocking it). grab PR and consider yourself in multimedia@ :) Max From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 12:57:33 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B89A106564A; Tue, 24 Jan 2012 12:57:33 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qw0-f47.google.com (mail-qw0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 13A538FC14; Tue, 24 Jan 2012 12:57:32 +0000 (UTC) Received: by qadz30 with SMTP id z30so145571qad.13 for ; Tue, 24 Jan 2012 04:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XJhrAzQpbhpe+BwH7QcATOuKdchpqOqTFf68wzvxiqs=; b=ahHrCqSgP3HRYe1tb0vG/lYh9h9S/7wuMmXwhUZLbjdDRsOv3ZwBxkYQFqdJBYvqY3 w/odU6BN2zIRbh6VCFo7vd6SrGQ6NAu+Q77FUpDmVxX6X/Fyo8muDfdfHf1UXVPoAQWD gKr4aSyosel/vaMrW7BGPHBoivBdyNCEYJEDI= MIME-Version: 1.0 Received: by 10.224.197.5 with SMTP id ei5mr14659263qab.73.1327409852205; Tue, 24 Jan 2012 04:57:32 -0800 (PST) Received: by 10.229.124.11 with HTTP; Tue, 24 Jan 2012 04:57:02 -0800 (PST) In-Reply-To: <4F1ACBA8.6000203@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> Date: Tue, 24 Jan 2012 13:57:02 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 12:57:33 -0000 2012/1/21 Alexander Motin > > From that description I can conclude that you are passing through > compressed DTS-HD and TrueHD streams to the receiver. What are the bitrates > of streams you are playing? It looks like your receiver doesn't receives > all data. If I understand right, to transfer with compressed bitrates above > 6.144Mbps special High Bit Rate mode should be activated in CODEC, when > data stream occupies all 8 HDMI channels instead of 2. I haven't > implemented this feature yet as my receiver doesn't support such HD formats. > i dont think bitrate is over 6.144Mbps. for TrueHD files, mediainfo reports: Format profile : TrueHD / Core Mode extension : CM (complete main) Codec ID : 131 Bit rate mode : Variable / Constant Bit rate : Unknown / 640 Kbps Maximum bit rate : 2 868 Kbps / 640 Kbps Channel(s) : 6 channels and for DTS-HDMA, mediainfo can't calculate it, but from description, all tested file have bitrate below 3689 kbps > I'll try to make a patch for it a bit later and send you to try. i'll be happy to try it. Until that time, is it possible to make your xbmc to decode those HD > streams into different number of uncompressed LPCM channels to play it that > way? yes, it's just an option. It would be interesting to test 6.0, 6.1, 7.0 and 7.1 LPCM configurations > with your receiver. Or at least normal definition 7.1 playback would be > interesting to test (you can just set vchanformat to s16le:7.1 or s32le:7.1 > and play anything). > > i sucessfully tried 6.1 and 7.1 LPCM in 16 bits. just a small channel order issue (center and a surround back inversion) which can be solved easily. i'll add 32bits support in XBMC later for my test but from what you say, it'll not work because 8 channels / 48khz / 16 bits = 6.144 Mbit/s. > What do you mean that you can't set more then 2 channels? I've never tried > to set ac3 format with more then 2 channels, but s16le:7.1 and s32le:7.1 > should work fine. At least s16le:5.1 and s32le:5.1 are working perfectly > for me. For HDA 24bit samples stored in memory as 32bit, so setting s24le > format only cause extra 24->32bit conversion. > > > i never show things like PCMDIR_...: Stream setup.... in my messages, so >> may be i use oss wrongly. >> > > They are printed only when hw.snd.verbose set to 4. > > ok thanks for the tips. From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 12:57:34 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 071AE106566C for ; Tue, 24 Jan 2012 12:57:34 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 88D4E8FC16 for ; Tue, 24 Jan 2012 12:57:33 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so4558792wib.13 for ; Tue, 24 Jan 2012 04:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=BTrhXH2LeQZB7GTOUaC5tejj8CmiZKAC+z77x756VkU=; b=aZHYALvVyydHP9PHBae26A2UTPpBOs3immDU24lW0VhUBRWDl/gD04MuXbte/M6K8Z wQZtsFJdOXMFMps+2PYEj+VSKcjqe8AgoQx7w5EDlvWrlVGW6Lzpv1o94xKiiT7jnbk2 dIFJ5qSqrae9g3OH7BmhKmV+H31QRLoV3CcxM= Received: by 10.180.100.234 with SMTP id fb10mr3258610wib.5.1327408238221; Tue, 24 Jan 2012 04:30:38 -0800 (PST) MIME-Version: 1.0 Sender: villa.alberto@gmail.com Received: by 10.227.11.210 with HTTP; Tue, 24 Jan 2012 04:30:17 -0800 (PST) In-Reply-To: <201201241224.50830.makc@issp.ac.ru> References: <201201151834.q0FIYF05077693@spica.xvoid.org> <201201241224.50830.makc@issp.ac.ru> From: Alberto Villa Date: Tue, 24 Jan 2012 13:30:17 +0100 X-Google-Sender-Auth: ij8UxeQG1WGODVL_ed_CJUkU4xU Message-ID: To: Max Brazhnikov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-multimedia@freebsd.org, Yuri Pankov , FreeBSD-gnats-submit@freebsd.org Subject: Re: [PATCH] multimedia/mp4v2: Fix build with clang 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, 24 Jan 2012 12:57:34 -0000 On Tue, Jan 24, 2012 at 1:24 PM, Max Brazhnikov wrote: > grab PR and consider yourself in multimedia@ :) Yay! :) -- Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 12:57:54 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89C2E1065672; Tue, 24 Jan 2012 12:57:54 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 19BBE8FC1D; Tue, 24 Jan 2012 12:57:53 +0000 (UTC) Received: by qcse1 with SMTP id e1so2872825qcs.13 for ; Tue, 24 Jan 2012 04:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+HPOupBZfFXVHXVbjB98ET9QD5uYurQj1Z7VwCP2ROA=; b=YwGa5wH4zA25OnejzRYWlDyTwi0kKuLEZ32f4K0tcPaHMNnJ6KK2qC9cNlq4kBZBLU XNSPIbZENExs7fRJMs5+4AlzR2aLiNH0pJgyCaiRdB5TjTMU8mlGltND2p50D4pfwsat xl3tKe/pnqUGAeNT07vM28WuxENNnVBqDbffY= MIME-Version: 1.0 Received: by 10.224.214.201 with SMTP id hb9mr14453771qab.86.1327409843380; Tue, 24 Jan 2012 04:57:23 -0800 (PST) Received: by 10.229.124.11 with HTTP; Tue, 24 Jan 2012 04:57:02 -0800 (PST) In-Reply-To: <4F1ACBA8.6000203@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> Date: Tue, 24 Jan 2012 13:57:02 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 12:57:54 -0000 2012/1/21 Alexander Motin > > From that description I can conclude that you are passing through > compressed DTS-HD and TrueHD streams to the receiver. What are the bitrates > of streams you are playing? It looks like your receiver doesn't receives > all data. If I understand right, to transfer with compressed bitrates above > 6.144Mbps special High Bit Rate mode should be activated in CODEC, when > data stream occupies all 8 HDMI channels instead of 2. I haven't > implemented this feature yet as my receiver doesn't support such HD formats. > i dont think bitrate is over 6.144Mbps. for TrueHD files, mediainfo reports: Format profile : TrueHD / Core Mode extension : CM (complete main) Codec ID : 131 Bit rate mode : Variable / Constant Bit rate : Unknown / 640 Kbps Maximum bit rate : 2 868 Kbps / 640 Kbps Channel(s) : 6 channels and for DTS-HDMA, mediainfo can't calculate it, but from description, all tested file have bitrate below 3689 kbps > I'll try to make a patch for it a bit later and send you to try. i'll be happy to try it. Until that time, is it possible to make your xbmc to decode those HD > streams into different number of uncompressed LPCM channels to play it that > way? yes, it's just an option. It would be interesting to test 6.0, 6.1, 7.0 and 7.1 LPCM configurations > with your receiver. Or at least normal definition 7.1 playback would be > interesting to test (you can just set vchanformat to s16le:7.1 or s32le:7.1 > and play anything). > > i sucessfully tried 6.1 and 7.1 LPCM in 16 bits. just a small channel order issue (center and a surround back inversion) which can be solved easily. i'll add 32bits support in XBMC later for my test but from what you say, it'll not work because 8 channels / 48khz / 16 bits = 6.144 Mbit/s. > What do you mean that you can't set more then 2 channels? I've never tried > to set ac3 format with more then 2 channels, but s16le:7.1 and s32le:7.1 > should work fine. At least s16le:5.1 and s32le:5.1 are working perfectly > for me. For HDA 24bit samples stored in memory as 32bit, so setting s24le > format only cause extra 24->32bit conversion. > > > i never show things like PCMDIR_...: Stream setup.... in my messages, so >> may be i use oss wrongly. >> > > They are printed only when hw.snd.verbose set to 4. > > ok thanks for the tips. From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 13:33:01 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2A05106566B; Tue, 24 Jan 2012 13:33:00 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 49D898FC0C; Tue, 24 Jan 2012 13:32:59 +0000 (UTC) Received: by eaai10 with SMTP id i10so1741497eaa.13 for ; Tue, 24 Jan 2012 05:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=x5OwAXmjcm0/4YIbB8u/6ikZYaoLLU5fvJGu0SW9RIY=; b=ZGsmrAqpjoY7p/eCxvl6MwgytyQhaPPQZND4z/d7URH01URjrsFsudfhXYCb4DRF1f /NH9gtluIEFVvPH1hievGynupCNr2l8Sl0UGSHtUR/IYiVCzyNMrIZiyHp2d5TIaMIKX gXLfOiE7/U5kVUPt4HHgXlU1qjXX8D4LsDPlo= Received: by 10.213.4.16 with SMTP id 16mr2370547ebp.93.1327411978980; Tue, 24 Jan 2012 05:32:58 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id e12sm67683312eea.5.2012.01.24.05.32.55 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 05:32:56 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1EB305.9000105@FreeBSD.org> Date: Tue, 24 Jan 2012 15:32:53 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Micka=EBl_Maillot?= References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 13:33:01 -0000 On 01/24/12 14:57, Mickaėl Maillot wrote: > 2012/1/21 Alexander Motin > > From that description I can conclude that you are passing through > compressed DTS-HD and TrueHD streams to the receiver. What are the > bitrates of streams you are playing? It looks like your receiver > doesn't receives all data. If I understand right, to transfer with > compressed bitrates above 6.144Mbps special High Bit Rate mode > should be activated in CODEC, when data stream occupies all 8 HDMI > channels instead of 2. I haven't implemented this feature yet as my > receiver doesn't support such HD formats. > > > i dont think bitrate is over 6.144Mbps. > for TrueHD files, mediainfo reports: > > Format profile : TrueHD / Core > Mode extension : CM (complete main) > Codec ID : 131 > Bit rate mode : Variable / Constant > Bit rate : Unknown / 640 Kbps > Maximum bit rate : 2 868 Kbps / 640 Kbps > Channel(s) : 6 channels > > and for DTS-HDMA, mediainfo can't calculate it, but from description, > all tested file have bitrate below 3689 kbps Then make sure that your player properly sets "sampling rate" for the playback. Data transferred as "16bit stereo", but depending on bit rate may have 48000, 96000 or 192000Hz sampling rate (up to 1.5Mbps, 3Mbps and 6Mbps respectively). For higher bit rates stream transferred as 8-channel (High Bit Rate mode) with same set of frequencies (but now up to 12, 24 and 49Mbps). > I'll try to make a patch for it a bit later and send you to try. > > i'll be happy to try it. > > Until that time, is it possible to make your xbmc to decode those HD > streams into different number of uncompressed LPCM channels to play > it that way? > > > yes, it's just an option. > > It would be interesting to test 6.0, 6.1, 7.0 and 7.1 LPCM > configurations with your receiver. Or at least normal definition 7.1 > playback would be interesting to test (you can just set vchanformat > to s16le:7.1 or s32le:7.1 and play anything). > > i sucessfully tried 6.1 and 7.1 LPCM in 16 bits. > just a small channel order issue (center and a surround back inversion) > which can be solved easily. In what number of channels which channels are swapped specifically? I've compared mapping I am setting in driver with data I have and found no problem. What channel order for 7.1 uses xbmc? sound(4) uses: Left, Right, Rear Left, Rear Right, Center, LFE, Side Left, Side Right. I've never could check what mplayer thinks about it because I have no such such media. Can you give me some example? > i'll add 32bits support in XBMC later for my test but from what you say, > it'll not work because 8 channels / 48khz / 16 bits = 6.144 Mbit/s. 6Mbps limitation is only for data, as they use only two channels by default. Audio stream has no such limit. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 14:32:48 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E7D61065670; Tue, 24 Jan 2012 14:32:48 +0000 (UTC) (envelope-from avilla@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 34ADE8FC14; Tue, 24 Jan 2012 14:32:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0OEWmfI052629; Tue, 24 Jan 2012 14:32:48 GMT (envelope-from avilla@freefall.freebsd.org) Received: (from avilla@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0OEWmt3052625; Tue, 24 Jan 2012 14:32:48 GMT (envelope-from avilla) Date: Tue, 24 Jan 2012 14:32:48 GMT Message-Id: <201201241432.q0OEWmt3052625@freefall.freebsd.org> To: yuri.pankov@gmail.com, avilla@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: avilla@FreeBSD.org Cc: Subject: Re: ports/164180: [PATCH] multimedia/mp4v2: Fix build with clang 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, 24 Jan 2012 14:32:48 -0000 Synopsis: [PATCH] multimedia/mp4v2: Fix build with clang State-Changed-From-To: open->closed State-Changed-By: avilla State-Changed-When: Tue Jan 24 14:32:47 UTC 2012 State-Changed-Why: Committed. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=164180 From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 14:40:10 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 863A1106566B for ; Tue, 24 Jan 2012 14:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 74A3E8FC0C for ; Tue, 24 Jan 2012 14:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0OEeAHa053306 for ; Tue, 24 Jan 2012 14:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0OEeAJm053305; Tue, 24 Jan 2012 14:40:10 GMT (envelope-from gnats) Date: Tue, 24 Jan 2012 14:40:10 GMT Message-Id: <201201241440.q0OEeAJm053305@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/164180: commit references a PR X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2012 14:40:10 -0000 The following reply was made to PR ports/164180; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/164180: commit references a PR Date: Tue, 24 Jan 2012 14:32:38 +0000 (UTC) avilla 2012-01-24 14:32:24 UTC FreeBSD ports repository Added files: multimedia/mp4v2/files patch-src__bmff__typebmff.cpp patch-src__itmf__type.cpp Log: - Fix build with Clang. PR: 164180 Submitted by: Yuri Pankov Revision Changes Path 1.1 +35 -0 ports/multimedia/mp4v2/files/patch-src__bmff__typebmff.cpp (new) 1.1 +80 -0 ports/multimedia/mp4v2/files/patch-src__itmf__type.cpp (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 16:33:09 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24EA7106566C; Tue, 24 Jan 2012 16:33:09 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 770278FC08; Tue, 24 Jan 2012 16:33:08 +0000 (UTC) Received: by eekb47 with SMTP id b47so1793020eek.13 for ; Tue, 24 Jan 2012 08:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kI9oJaupldR0+Ml0HLWAqcgIwj6U+sDaWhhdasLFEeQ=; b=UI7MGptmisrB7LRiTNio4fTv8E55hAhTleb3d52ZwJOfPryaay8m4CHSeO0AsO6Mmw U7kbpwDnK8iDF8EHm/DLctqx1F9BxYZmJR38ssdrzaWL//v4FXbtM0+cgB18TvY78+ai XpqIzXpQm2qBfAkfys9EAVY/7sd7PW479+JX4= Received: by 10.14.123.10 with SMTP id u10mr4813035eeh.71.1327422786275; Tue, 24 Jan 2012 08:33:06 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id c16sm69557813eei.1.2012.01.24.08.33.02 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 08:33:02 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1EDD3D.6070800@FreeBSD.org> Date: Tue, 24 Jan 2012 18:33:01 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Micka=EBl_Maillot?= References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> In-Reply-To: <4F1EB305.9000105@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 16:33:09 -0000 On 01/24/12 15:32, Alexander Motin wrote: > On 01/24/12 14:57, Mickaėl Maillot wrote: >> 2012/1/21 Alexander Motin > >> From that description I can conclude that you are passing through >> compressed DTS-HD and TrueHD streams to the receiver. What are the >> bitrates of streams you are playing? It looks like your receiver >> doesn't receives all data. If I understand right, to transfer with >> compressed bitrates above 6.144Mbps special High Bit Rate mode >> should be activated in CODEC, when data stream occupies all 8 HDMI >> channels instead of 2. I haven't implemented this feature yet as my >> receiver doesn't support such HD formats. >> >> >> i dont think bitrate is over 6.144Mbps. >> for TrueHD files, mediainfo reports: >> >> Format profile : TrueHD / Core >> Mode extension : CM (complete main) >> Codec ID : 131 >> Bit rate mode : Variable / Constant >> Bit rate : Unknown / 640 Kbps >> Maximum bit rate : 2 868 Kbps / 640 Kbps >> Channel(s) : 6 channels >> >> and for DTS-HDMA, mediainfo can't calculate it, but from description, >> all tested file have bitrate below 3689 kbps > > Then make sure that your player properly sets "sampling rate" for the > playback. Data transferred as "16bit stereo", but depending on bit rate > may have 48000, 96000 or 192000Hz sampling rate (up to 1.5Mbps, 3Mbps > and 6Mbps respectively). For higher bit rates stream transferred as > 8-channel (High Bit Rate mode) with same set of frequencies (but now up > to 12, 24 and 49Mbps). > >> I'll try to make a patch for it a bit later and send you to try. >> >> i'll be happy to try it. Here is it: http://people.freebsd.org/~mav/hda.HBR.patch It should activate HBR mode if you try to play stream with AC3 format and 8 channels (>6Mbps). >> Until that time, is it possible to make your xbmc to decode those HD >> streams into different number of uncompressed LPCM channels to play >> it that way? >> >> >> yes, it's just an option. >> >> It would be interesting to test 6.0, 6.1, 7.0 and 7.1 LPCM >> configurations with your receiver. Or at least normal definition 7.1 >> playback would be interesting to test (you can just set vchanformat >> to s16le:7.1 or s32le:7.1 and play anything). >> >> i sucessfully tried 6.1 and 7.1 LPCM in 16 bits. >> just a small channel order issue (center and a surround back inversion) >> which can be solved easily. > > In what number of channels which channels are swapped specifically? I've > compared mapping I am setting in driver with data I have and found no > problem. What channel order for 7.1 uses xbmc? sound(4) uses: Left, > Right, Rear Left, Rear Right, Center, LFE, Side Left, Side Right. I've > never could check what mplayer thinks about it because I have no such > such media. Can you give me some example? > >> i'll add 32bits support in XBMC later for my test but from what you say, >> it'll not work because 8 channels / 48khz / 16 bits = 6.144 Mbit/s. > > 6Mbps limitation is only for data, as they use only two channels by > default. Audio stream has no such limit. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 20:22:40 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 641791065674 for ; Tue, 24 Jan 2012 20:22:40 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id EFF4A8FC0A for ; Tue, 24 Jan 2012 20:22:39 +0000 (UTC) Received: by eekb47 with SMTP id b47so1874165eek.13 for ; Tue, 24 Jan 2012 12:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=9XyH5s19xV/9Y9RNONg6o/x7y415qaDHah98M40DnLg=; b=g/eCi6emHDALLkL22fsBPgyeaUt7EN1awJu6i0/HMte8BxFbwsk0XkvvxYTrj1gm5B yZ7HqIPI5izC/n0lokDikzi4fzY3dIbwJrnEs3wzDql3NOZjMIO4MhzC9BbdSTDHIgPF AXUzkh7/0NZNPIkCc+sfQW/1NnzX508f2456A= Received: by 10.14.17.101 with SMTP id i77mr4980537eei.30.1327436558299; Tue, 24 Jan 2012 12:22:38 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id b49sm71885342eec.9.2012.01.24.12.22.36 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 12:22:37 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1F1309.3090300@FreeBSD.org> Date: Tue, 24 Jan 2012 22:22:33 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [RFC] Soft sound buffer size smaller then hard buffer size 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, 24 Jan 2012 20:22:40 -0000 Hi. I was reported about some sound cards that have fixed 64K buffer with 2K or 8K block sizes. Experimenting with the sound(4) code I've noticed that while it automatically tuning buffer sizes, it almost never sets soft buffer size less then hard buffer size and it always tries to keep all playback buffers full. On the mentioned cards that makes sound(4) set both soft and hard buffers to 64K and results in playback latency at 44100/16/2 of about 800ms! To improve that situation, I've made a patch that allows to set soft buffer size down to just two blocks of the hard buffer and to not write more then that size ahead to the hardware buffer. As result of that change I was able to reduce full practically measured record-playback loop delay in those conditions down to only about 115ms with theoretical playback latency of only about 50ms! Patch works fine for both vchans and direct cases. In both cases sound(4) tries to follow hw.snd.latency_profile and hw.snd.latency values and application-requested buffer size as much as limitation of two hardware blocks allows. The patch can be found here: http://people.freebsd.org/~mav/sound.latency.patch Can somebody review this and tell me whether is this correct? Thank you! -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 22:13:14 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57D12106566B; Tue, 24 Jan 2012 22:13:14 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id D47C78FC14; Tue, 24 Jan 2012 22:13:13 +0000 (UTC) Received: by qaea17 with SMTP id a17so2974968qae.13 for ; Tue, 24 Jan 2012 14:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=89u+nAO6cNL/QKEtOzket1RIojAkPeFXUt4QweEvQ1U=; b=AUiQMrn9srRY2RgMd5qxlpS3gJWqttSwuqc9qo4Ncaac67F/66kQrOz230pi+2FDML /E/Eko4h8bp6+RF+N/SEueozXr3QgmRfJSveS/MfqIcUWj52iFxXPxHiJNbojBnnKTc0 /za6PZ4b1tjcOluMvggfwEEugz/WwDyHUWn0w= MIME-Version: 1.0 Received: by 10.224.197.5 with SMTP id ei5mr17800652qab.73.1327443193066; Tue, 24 Jan 2012 14:13:13 -0800 (PST) Received: by 10.229.124.11 with HTTP; Tue, 24 Jan 2012 14:13:12 -0800 (PST) In-Reply-To: <4F1EDD3D.6070800@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> Date: Tue, 24 Jan 2012 23:13:12 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 22:13:14 -0000 2012/1/24 Alexander Motin > On 01/24/12 15:32, Alexander Motin wrote: > >> On 01/24/12 14:57, Micka=EBl Maillot wrote: >> >>> 2012/1/21 Alexander Motin > >>> From that description I can conclude that you are passing through >>> compressed DTS-HD and TrueHD streams to the receiver. What are the >>> bitrates of streams you are playing? It looks like your receiver >>> doesn't receives all data. If I understand right, to transfer with >>> compressed bitrates above 6.144Mbps special High Bit Rate mode >>> should be activated in CODEC, when data stream occupies all 8 HDMI >>> channels instead of 2. I haven't implemented this feature yet as my >>> receiver doesn't support such HD formats. >>> >>> >>> i dont think bitrate is over 6.144Mbps. >>> for TrueHD files, mediainfo reports: >>> >>> Format profile : TrueHD / Core >>> Mode extension : CM (complete main) >>> Codec ID : 131 >>> Bit rate mode : Variable / Constant >>> Bit rate : Unknown / 640 Kbps >>> Maximum bit rate : 2 868 Kbps / 640 Kbps >>> Channel(s) : 6 channels >>> >>> and for DTS-HDMA, mediainfo can't calculate it, but from description, >>> all tested file have bitrate below 3689 kbps >>> >> >> Then make sure that your player properly sets "sampling rate" for the >> playback. Data transferred as "16bit stereo", but depending on bit rate >> may have 48000, 96000 or 192000Hz sampling rate (up to 1.5Mbps, 3Mbps >> and 6Mbps respectively). For higher bit rates stream transferred as >> 8-channel (High Bit Rate mode) with same set of frequencies (but now up >> to 12, 24 and 49Mbps). >> >> I'll try to make a patch for it a bit later and send you to try. >>> >>> i'll be happy to try it. >>> >> > Here is it: http://people.freebsd.org/~**mav/hda.HBR.patch > It should activate HBR mode if you try to play stream with AC3 format and > 8 channels (>6Mbps). > > no change with the patch because when i SNDCTL_DSP_SETFMT to AFMT_AC3, SNDCTL_DSP_CHANNELS always return 2 channels even if i set SNDCTL_DSP_SPEED to 192000. and i think it's why "if ((ch->fmt & AFMT_AC3) && (cchn =3D=3D 8))" can't b= e true. i checked my /v/l/messages and saw PCMDIR_PLAY ....chan_count=3D0x01. i can set 8 channels without problems with AFMT_S32_LE format and sound works: kernel: hdac1: 36864Kbps of 92160Kbps bandwidth used kernel: pcm4: PCMDIR_PLAY: Stream setup fmt=3D02801000 (7.1) speed=3D192000 kernel: pcm4: PCMDIR_PLAY: Stream setup nid=3D4: fmt=3D0x1837, dfmt=3D0x000= 1, chan=3D0x0010, chan_count=3D0x07, stripe=3D1 > > Until that time, is it possible to make your xbmc to decode those HD >>> streams into different number of uncompressed LPCM channels to play >>> it that way? >>> >>> >>> yes, it's just an option. >>> >>> It would be interesting to test 6.0, 6.1, 7.0 and 7.1 LPCM >>> configurations with your receiver. Or at least normal definition 7.1 >>> playback would be interesting to test (you can just set vchanformat >>> to s16le:7.1 or s32le:7.1 and play anything). >>> >>> i sucessfully tried 6.1 and 7.1 LPCM in 16 bits. >>> just a small channel order issue (center and a surround back inversion) >>> which can be solved easily. >>> >> >> In what number of channels which channels are swapped specifically? I've >> compared mapping I am setting in driver with data I have and found no >> problem. What channel order for 7.1 uses xbmc? sound(4) uses: Left, >> Right, Rear Left, Rear Right, Center, LFE, Side Left, Side Right. I've >> never could check what mplayer thinks about it because I have no such >> such media. Can you give me some example? >> >> ok mapping is good, i think the swap is in XBMC, i'll check later with xbmc's audio dev. > i'll add 32bits support in XBMC later for my test but from what you say, >>> it'll not work because 8 channels / 48khz / 16 bits =3D 6.144 Mbit/s. >>> >> >> 6Mbps limitation is only for data, as they use only two channels by >> default. Audio stream has no such limit. >> > > yep, it works ! From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 22:33:52 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7C64106566C; Tue, 24 Jan 2012 22:33:52 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1B5E98FC08; Tue, 24 Jan 2012 22:33:51 +0000 (UTC) Received: by eaai10 with SMTP id i10so1932639eaa.13 for ; Tue, 24 Jan 2012 14:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=no2lUFbPzOMNwwd0DDNuhNb4nFa0FhpCT06LkyLTQlQ=; b=EqE5hiygcxTkEsxVmLqiugiOQM3Kc/iSji6MklddaKpyoa0XjLqvI+BHp0YNR2rAed LdtszkE/aE4JL97f6NeTg4UrvpXAoATCkekt7yv/bktImkFc3U/RGS4dxyq6Hh66OIL9 9lNFnSOqAWLOOlxAJxJbOexgNp135HWC5pARs= Received: by 10.213.15.20 with SMTP id i20mr2169485eba.6.1327444430954; Tue, 24 Jan 2012 14:33:50 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id y12sm73254964eeb.11.2012.01.24.14.33.47 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 14:33:48 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1F31CA.5000507@FreeBSD.org> Date: Wed, 25 Jan 2012 00:33:46 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Micka=EBl_Maillot?= References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 22:33:52 -0000 On 01/25/12 00:13, Mickaėl Maillot wrote: > 2012/1/24 Alexander Motin > > Here is it: http://people.freebsd.org/~__mav/hda.HBR.patch > > It should activate HBR mode if you try to play stream with AC3 > format and 8 channels (>6Mbps). > > no change with the patch because when i SNDCTL_DSP_SETFMT to AFMT_AC3, > SNDCTL_DSP_CHANNELS always return 2 channels even if i > set SNDCTL_DSP_SPEED to 192000. > and i think it's why "if ((ch->fmt & AFMT_AC3) && (cchn == 8))" can't be > true. > i checked my /v/l/messages and saw PCMDIR_PLAY ....chan_count=0x01. Number of channels should be set to 8 by application when it expects bit rate above 6Mbps. Sample rate, as I've described, just give more fine control. Increasing sample rate does not automatically increase channels. They are orthogonal: Rate 48 96 192 48 96 192 Channels 2 2 2 8 8 8 ---------------------------------------------------------- Mbps 1.5 3 6 12 24 49 What I've forgot is to allow 8ch format. :) Add the patch below. Hope sound(4) has no other limitations for it. --- hdaa.c (revision 230511) +++ hdaa.c (working copy) @@ -4979,6 +4979,8 @@ } if (HDA_PARAM_SUPP_STREAM_FORMATS_AC3(fmtcap)) { ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 2, 0); + if (channels >= 8) + ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 0); } ch->fmtlist[i] = 0; i = 0; But in your case I think it should be enough to just increase sample rate to 96 or 192KHz. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 22:46:56 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38C57106564A; Tue, 24 Jan 2012 22:46:56 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9175C8FC13; Tue, 24 Jan 2012 22:46:55 +0000 (UTC) Received: by eekb47 with SMTP id b47so1917562eek.13 for ; Tue, 24 Jan 2012 14:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ePDA7XU/bZX1iHWW/72HSWNPh6tw68GqCL+k1gpkmh8=; b=SCiCA/qGKOahIkCu4tJ7zxvXvr5tlgS3vxvPRdukTDGY8tPuD7/KI4PxybYJVCKFJv jnSRxF1Zc00bpKg6Lz/6xU2lY35nJ0VT35LSEVaTEOSH89dcyP88R4aUVBy24tV2nnFC wS1nmsa0BBM4SO9fIDUSIpqyZmzjHziKONVpw= Received: by 10.14.14.165 with SMTP id d37mr5266164eed.91.1327445214476; Tue, 24 Jan 2012 14:46:54 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id r2sm73415610eef.7.2012.01.24.14.46.52 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 14:46:53 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1F34DB.9040405@FreeBSD.org> Date: Wed, 25 Jan 2012 00:46:51 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Micka=EBl_Maillot?= References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> In-Reply-To: <4F1F31CA.5000507@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 22:46:56 -0000 On 01/25/12 00:33, Alexander Motin wrote: > On 01/25/12 00:13, Mickaėl Maillot wrote: >> 2012/1/24 Alexander Motin > >> Here is it: http://people.freebsd.org/~__mav/hda.HBR.patch >> >> It should activate HBR mode if you try to play stream with AC3 >> format and 8 channels (>6Mbps). >> >> no change with the patch because when i SNDCTL_DSP_SETFMT to AFMT_AC3, >> SNDCTL_DSP_CHANNELS always return 2 channels even if i >> set SNDCTL_DSP_SPEED to 192000. >> and i think it's why "if ((ch->fmt & AFMT_AC3) && (cchn == 8))" can't be >> true. >> i checked my /v/l/messages and saw PCMDIR_PLAY ....chan_count=0x01. > > Number of channels should be set to 8 by application when it expects bit > rate above 6Mbps. Sample rate, as I've described, just give more fine > control. Increasing sample rate does not automatically increase > channels. They are orthogonal: > Rate 48 96 192 48 96 192 > Channels 2 2 2 8 8 8 > ---------------------------------------------------------- > Mbps 1.5 3 6 12 24 49 > > What I've forgot is to allow 8ch format. :) Add the patch below. Hope > sound(4) has no other limitations for it. Hmm. Looks like there is some limitation. You may grep kernel for AFMT_PASSTHROUGH and find two "XXX force ..." comments and code, including forcing 2 channels for AC3. Luckily for not part for frequency is commented out. Further we may try to comment or modify part about number of channels. > --- hdaa.c (revision 230511) > +++ hdaa.c (working copy) > @@ -4979,6 +4979,8 @@ > } > if (HDA_PARAM_SUPP_STREAM_FORMATS_AC3(fmtcap)) { > ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 2, 0); > + if (channels >= 8) > + ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 0); > } > ch->fmtlist[i] = 0; > i = 0; > > But in your case I think it should be enough to just increase sample > rate to 96 or 192KHz. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 23:32:47 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E7E106564A; Tue, 24 Jan 2012 23:32:47 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CBEA8FC0A; Tue, 24 Jan 2012 23:32:46 +0000 (UTC) Received: by qaea17 with SMTP id a17so3016589qae.13 for ; Tue, 24 Jan 2012 15:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lnSQzcDliAr9bE6bRCN45Z3gXsBGzCKwL2XPaUSSC6Q=; b=UNw31NE5aOFk2/1cyOJLSfehiBl1kdomHjUbi3PZkqAWTQxsYJ93U9xWDufA6tmq0I BB7E5xf/NHkvnrugvqQoMSSLlPjNXsITzregk+DTOHzRHJvSd40AZYHHn66HMwtW8wRe x/52CJknjNk/5WwTiFHSAxdlFCHovtFTZuQd8= MIME-Version: 1.0 Received: by 10.224.188.209 with SMTP id db17mr12223540qab.60.1327447966390; Tue, 24 Jan 2012 15:32:46 -0800 (PST) Received: by 10.229.124.11 with HTTP; Tue, 24 Jan 2012 15:32:46 -0800 (PST) In-Reply-To: <4F1F34DB.9040405@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> Date: Wed, 25 Jan 2012 00:32:46 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 23:32:47 -0000 2012/1/24 Alexander Motin > On 01/25/12 00:33, Alexander Motin wrote: > >> On 01/25/12 00:13, Micka=EBl Maillot wrote: >> >>> 2012/1/24 Alexander Motin > >>> Here is it: http://people.freebsd.org/~__**mav/hda.HBR.patch >>> >>> > >>> It should activate HBR mode if you try to play stream with AC3 >>> format and 8 channels (>6Mbps). >>> >>> no change with the patch because when i SNDCTL_DSP_SETFMT to AFMT_AC3, >>> SNDCTL_DSP_CHANNELS always return 2 channels even if i >>> set SNDCTL_DSP_SPEED to 192000. >>> and i think it's why "if ((ch->fmt & AFMT_AC3) && (cchn =3D=3D 8))" can= 't be >>> true. >>> i checked my /v/l/messages and saw PCMDIR_PLAY ....chan_count=3D0x01. >>> >> >> Number of channels should be set to 8 by application when it expects bit >> rate above 6Mbps. Sample rate, as I've described, just give more fine >> control. Increasing sample rate does not automatically increase >> channels. They are orthogonal: >> Rate 48 96 192 48 96 192 >> Channels 2 2 2 8 8 8 >> ------------------------------**---------------------------- >> Mbps 1.5 3 6 12 24 49 >> >> ok so set 8 channels is just to allow more bandwidth. i just looked at alsa hdmi code (because i never find oss code that can play hd audio), they set 192k and 8 channels for every DTS HD / TRUEHD / E-AC3 file, so i was thinking to do the same. > What I've forgot is to allow 8ch format. :) Add the patch below. Hope >> sound(4) has no other limitations for it. >> > > Hmm. Looks like there is some limitation. You may grep kernel for > AFMT_PASSTHROUGH and find two "XXX force ..." comments and code, includin= g > forcing 2 channels for AC3. Luckily for not part for frequency is comment= ed > out. Further we may try to comment or modify part about number of channel= s. > > spotted and commented > > --- hdaa.c (revision 230511) >> +++ hdaa.c (working copy) >> @@ -4979,6 +4979,8 @@ >> } >> if (HDA_PARAM_SUPP_STREAM_**FORMATS_AC3(fmtcap)) { >> ch->fmtlist[i++] =3D SND_FORMAT(AFMT_AC3, 2, 0); >> + if (channels >=3D 8) >> + ch->fmtlist[i++] =3D SND_FORMAT(AFMT_AC3, 8, 0); >> } >> ch->fmtlist[i] =3D 0; >> i =3D 0; >> >> But in your case I think it should be enough to just increase sample >> rate to 96 or 192KHz. >> > > so if my problem persist after settings 8 channels, i'll blame xbmc oss part. From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 24 23:39:41 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 885231065700; Tue, 24 Jan 2012 23:39:41 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id D3EB68FC0C; Tue, 24 Jan 2012 23:39:40 +0000 (UTC) Received: by eekb47 with SMTP id b47so1928545eek.13 for ; Tue, 24 Jan 2012 15:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=edaWTatxkPd8ym0AdHazZfhKcAhW7i5w7bG14Ow4jZk=; b=VbWRvk1dTbs4/I2eO+eazhMZM6qirTqDIhv535uS8DxoFkjYUWLMTSY/j/jqcvdUjO 51xgKTN0NJPFypsg94W2Eu9odIrpn6gbjfkUksFMVKu7gg9P0EnYTPj5Blw0RJ+f7HoH uCZ/tQ3oFu/q5xlJ+8CXirhHVABH50L/4N6Ak= Received: by 10.14.95.9 with SMTP id o9mr5297780eef.125.1327448379624; Tue, 24 Jan 2012 15:39:39 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id e12sm73932370eea.5.2012.01.24.15.39.36 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 15:39:38 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1F412D.5040009@FreeBSD.org> Date: Wed, 25 Jan 2012 01:39:25 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?TWlja2HDq2wgTWFpbGxvdA==?= References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 24 Jan 2012 23:39:41 -0000 On 25.01.2012 01:32, MickaĆ«l Maillot wrote: > 2012/1/24 Alexander Motin > > Number of channels should be set to 8 by application when it > expects bit > rate above 6Mbps. Sample rate, as I've described, just give more > fine > control. Increasing sample rate does not automatically increase > channels. They are orthogonal: > Rate 48 96 192 48 96 192 > Channels 2 2 2 8 8 8 > ------------------------------__---------------------------- > Mbps 1.5 3 6 12 24 49 > > > ok so set 8 channels is just to allow more bandwidth. > i just looked at alsa hdmi code (because i never find oss code that can > play hd audio), > they set 192k and 8 channels for every DTS HD / TRUEHD / E-AC3 file, so > i was thinking to do the same. HBR mode (8 channels) is not always supported by hardware and not defined by HDMI 1.1 spec (not sure about 1.2). So I think if possible, it would be nice to differentiate them. > What I've forgot is to allow 8ch format. :) Add the patch below. > Hope > sound(4) has no other limitations for it. > > Hmm. Looks like there is some limitation. You may grep kernel for > AFMT_PASSTHROUGH and find two "XXX force ..." comments and code, > including forcing 2 channels for AC3. Luckily for not part for > frequency is commented out. Further we may try to comment or modify > part about number of channels. > > spotted and commented > > --- hdaa.c (revision 230511) > +++ hdaa.c (working copy) > @@ -4979,6 +4979,8 @@ > } > if (HDA_PARAM_SUPP_STREAM___FORMATS_AC3(fmtcap)) { > ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 2, 0); > + if (channels >= 8) > + ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 0); > } > ch->fmtlist[i] = 0; > i = 0; > > But in your case I think it should be enough to just increase sample > rate to 96 or 192KHz. > > so if my problem persist after settings 8 channels, i'll blame xbmc oss > part. Can't wait to know result. :) -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 25 04:47:52 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 993E7106566C; Wed, 25 Jan 2012 04:47:52 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id E98468FC08; Wed, 25 Jan 2012 04:47:51 +0000 (UTC) Received: by eekb47 with SMTP id b47so1991414eek.13 for ; Tue, 24 Jan 2012 20:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PbeBLgsPMdBC4UTeMSYpwz2z4LA+/2gnwXNrFxcRo0g=; b=g3ztLb4A15VS15J+gIg/CHWm1giHZXS12Wx4dIRlJhKl3ZFDWxPH5ffe984GettISs icN0vOiJS5gyMRfTuIMiPt+Lhdu5pQ0HFf9xYKL3xTIK0uZUSf+SLOzSsr+ddZkTptaI hssobByU3j28hq0IYzNdEogNQBb5mt2SM4bWU= MIME-Version: 1.0 Received: by 10.14.2.66 with SMTP id 42mr5464906eee.44.1327465344243; Tue, 24 Jan 2012 20:22:24 -0800 (PST) Received: by 10.14.12.70 with HTTP; Tue, 24 Jan 2012 20:22:24 -0800 (PST) In-Reply-To: <4F1F412D.5040009@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> Date: Tue, 24 Jan 2012 22:22:24 -0600 Message-ID: From: Zhihao Yuan To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 25 Jan 2012 04:47:52 -0000 On Tue, Jan 24, 2012 at 5:39 PM, Alexander Motin wrote: > On 25.01.2012 01:32, Micka=C3=ABl Maillot wrote: >> >> 2012/1/24 Alexander Motin > >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Number of channels should be set to 8 by appl= ication when it >> =C2=A0 =C2=A0 =C2=A0 =C2=A0expects bit >> =C2=A0 =C2=A0 =C2=A0 =C2=A0rate above 6Mbps. Sample rate, as I've descri= bed, just give more >> =C2=A0 =C2=A0 =C2=A0 =C2=A0fine >> =C2=A0 =C2=A0 =C2=A0 =C2=A0control. Increasing sample rate does not auto= matically increase >> =C2=A0 =C2=A0 =C2=A0 =C2=A0channels. They are orthogonal: >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Rate 48 96 192 48 96 192 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Channels 2 2 2 8 8 8 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0------------------------------__-------------= --------------- >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Mbps 1.5 3 6 12 24 49 >> >> >> ok so set 8 channels is just to allow more bandwidth. >> i just looked at alsa hdmi code (because i never find oss code that can >> play hd audio), >> they set 192k and 8 channels for every DTS HD / TRUEHD / E-AC3 file, so >> i was thinking to do the same. > > > HBR mode (8 channels) is not always supported by hardware and not defined= by > HDMI 1.1 spec (not sure about 1.2). So I think if possible, it would be n= ice > to differentiate them. > >> =C2=A0 =C2=A0 =C2=A0 =C2=A0What I've forgot is to allow 8ch format. :) A= dd the patch below. >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Hope >> =C2=A0 =C2=A0 =C2=A0 =C2=A0sound(4) has no other limitations for it. >> >> =C2=A0 =C2=A0Hmm. Looks like there is some limitation. You may grep kern= el for >> =C2=A0 =C2=A0AFMT_PASSTHROUGH and find two "XXX force ..." comments and = code, >> =C2=A0 =C2=A0including forcing 2 channels for AC3. Luckily for not part = for >> =C2=A0 =C2=A0frequency is commented out. Further we may try to comment o= r modify >> =C2=A0 =C2=A0part about number of channels. >> >> spotted and commented >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0--- hdaa.c (revision 230511) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0+++ hdaa.c (working copy) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0@@ -4979,6 +4979,8 @@ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> =C2=A0 =C2=A0 =C2=A0 =C2=A0if (HDA_PARAM_SUPP_STREAM___FORMATS_AC3(fmtca= p)) { >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0ch->fmtlist[i++] =3D SND_FORMAT(AFMT_AC3, 2, = 0); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0+ if (channels >=3D 8) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0+ ch->fmtlist[i++] =3D SND_FORMAT(AFMT_AC3, 8= , 0); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> =C2=A0 =C2=A0 =C2=A0 =C2=A0ch->fmtlist[i] =3D 0; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0i =3D 0; >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0But in your case I think it should be enough = to just increase >> sample >> =C2=A0 =C2=A0 =C2=A0 =C2=A0rate to 96 or 192KHz. >> >> so if my problem persist after settings 8 channels, i'll blame xbmc oss >> part. > > > Can't wait to know result. :) > > -- > Alexander Motin > > _______________________________________________ > 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" Oops, device_delete_children is not available on 8_RELENG. --=20 Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/ From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 25 07:42:20 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9C67106564A; Wed, 25 Jan 2012 07:42:20 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 636C28FC15; Wed, 25 Jan 2012 07:42:20 +0000 (UTC) Received: by qaea17 with SMTP id a17so3208495qae.13 for ; Tue, 24 Jan 2012 23:42:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WH9vkFAPIHXzMh0EBc6+FEoRsLIcEEkOMeqdPrTNmAk=; b=tBdLcLE6H7Gxa0LnVIzIC+eg9fxMANXphKMn0GImrKBH1AlHMM5iCdJfd7txaHPi4X qGiSCLJ7tKVbTXCLnwzUQdEQYLfPLTL7/OolDaUsDUhlTARXpcW2ceiRW+hG5V3bG5yW W5G72nsTJURnLr4Pe9kPRFmV9CP6pyDVzvETs= MIME-Version: 1.0 Received: by 10.224.187.14 with SMTP id cu14mr17395281qab.99.1327477339733; Tue, 24 Jan 2012 23:42:19 -0800 (PST) Received: by 10.229.124.11 with HTTP; Tue, 24 Jan 2012 23:42:19 -0800 (PST) In-Reply-To: <4F1F412D.5040009@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> Date: Wed, 25 Jan 2012 08:42:19 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 25 Jan 2012 07:42:20 -0000 2012/1/25 Alexander Motin > > What I've forgot is to allow 8ch format. :) Add the patch below. >> Hope >> sound(4) has no other limitations for it. >> >> Hmm. Looks like there is some limitation. You may grep kernel for >> AFMT_PASSTHROUGH and find two "XXX force ..." comments and code, >> including forcing 2 channels for AC3. Luckily for not part for >> frequency is commented out. Further we may try to comment or modify >> part about number of channels. >> >> spotted and commented >> >> so if my problem persist after settings 8 channels, i'll blame xbmc oss >> part. >> > > Can't wait to know result. :) > > -- > Alexander Motin > ok so unfortunately it's does not work :( first: with vchan disable, i cant set format to AFMT_AC3, ioctl always return -1 in /v/l/messages: Jan 25 08:09:18 htpc kernel: pcm4: chn_setformat(): Format change 0x00100400 failed, falling back to 0x00100008 so may be my change in sys/dev/sound/pcm/channel.c is not good ? i just commented: /* XXX force stereo */ if (format & AFMT_PASSTHROUGH) format = SND_FORMAT(format, AFMT_PASSTHROUGH_CHANNEL, AFMT_PASSTHROUGH_EXTCHANNEL); next with vchan: i can set ac3 to 2 channels and 8 channels. when i try to play DTS HDMA or TRUEHD, i set ac3, 8 channels, 192k and no sound ! before i had: dtshdma: some part of sound (like all data cant be send) and truehd: some crapy bipbip now everything seems to be ok for the player, procstat -f write counter grows up, but no sound from my receiver: no channel input, nothing showed, like nothing is send to him. no error in xbmc.log or in messages: Jan 25 08:15:35 htpc kernel: pcm4: chn_start(): VCHAN PARENT starting! (PCMDIR_PLAY/running) (ready=8192 force=1 i=1 j=0 intrtimeout=2 latency=2ms) Jan 25 08:15:35 htpc kernel: hdac1: 24576Kbps of 92160Kbps bandwidth used Jan 25 08:15:35 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup fmt=02800400 (7.1) speed=192000 Jan 25 08:15:35 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup nid=4: fmt=0x1817, dfmt=0x0021, chan=0x0010, chan_count=0x07, stripe=1 Jan 25 08:15:35 htpc kernel: pcm4: chn_trigger() pcm4:play:dsp4.p0: calling go=0x00000001 , prev=0xffffffff Jan 25 08:15:35 htpc kernel: pcm4: chn_trigger() pcm4:virtual:dsp4.vp0: calling go=0x00000001 , prev=0xffffffff From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 25 12:16:51 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 709181065675; Wed, 25 Jan 2012 12:16:51 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id BA3308FC15; Wed, 25 Jan 2012 12:16:50 +0000 (UTC) Received: by eaai10 with SMTP id i10so2160427eaa.13 for ; Wed, 25 Jan 2012 04:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=pHS05hAeqeIyrhZ6zv4vD3snzXmacjocG9t0TctsUwY=; b=BrcUW12UxByCd4S9IHO/xQFswTVyQ38Cv/NGpD2tB/N4u34Q0vrolYJgzVjugzRjuk Qd8rIb/2P/TxfB40oAO7vRxpTcvzwvll6WHp8mQhspl53uQ4iZPhMTUQD2k9R9PNQAak OkVZp/f5VV+fU9rcqvdil1AXVVUaZYwmQMD28= Received: by 10.213.106.7 with SMTP id v7mr3054036ebo.50.1327493809756; Wed, 25 Jan 2012 04:16:49 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id r2sm964932eef.7.2012.01.25.04.16.47 (version=SSLv3 cipher=OTHER); Wed, 25 Jan 2012 04:16:48 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1FF2AD.9020003@FreeBSD.org> Date: Wed, 25 Jan 2012 14:16:45 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Micka=EBl_Maillot?= References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 25 Jan 2012 12:16:51 -0000 On 01/25/12 09:42, Mickaėl Maillot wrote: > 2012/1/25 Alexander Motin > > > > What I've forgot is to allow 8ch format. :) Add the > patch below. > Hope > sound(4) has no other limitations for it. > > Hmm. Looks like there is some limitation. You may grep > kernel for > AFMT_PASSTHROUGH and find two "XXX force ..." comments and code, > including forcing 2 channels for AC3. Luckily for not part for > frequency is commented out. Further we may try to comment or > modify > part about number of channels. > > spotted and commented > > so if my problem persist after settings 8 channels, i'll blame > xbmc oss > part. > > > ok so unfortunately it's does not work :( > first: with vchan disable, i cant set format to AFMT_AC3, ioctl always > return -1 > in /v/l/messages: > Jan 25 08:09:18 htpc kernel: pcm4: chn_setformat(): Format change > 0x00100400 failed, falling back to 0x00100008 > so may be my change in sys/dev/sound/pcm/channel.c is not good ? i just > commented: > /* XXX force stereo */ > if (format & AFMT_PASSTHROUGH) > format = SND_FORMAT(format, AFMT_PASSTHROUGH_CHANNEL, > AFMT_PASSTHROUGH_EXTCHANNEL); Commenting it appeared not good, as at least mplayer doesn't sets channels for AC3. That makes sound(4) use default 1 channel for AC3, that is definitely not supported. I believe this should be better: http://svn.freebsd.org/changeset/base/230537 Also, as soon as sound(4) interprets 8 channel as 7.1 by default, I've changed previous patch a bit to allow both "8.0" and "7.1" AC3 formats: http://svn.freebsd.org/changeset/base/230513 For me this at least doesn't break normal AC3 operation and when I hacked mplayer to set 8 channels, I can see predictable codec configuration and time in mplayer predictably running 4 times faster. Unluckily mplayer seems doesn't support TrueHD passthrough to ckeck closer -- it always does decoding. > next with vchan: i can set ac3 to 2 channels and 8 channels. > when i try to play DTS HDMA or TRUEHD, i set ac3, 8 channels, 192k > and no sound ! before i had: dtshdma: some part of sound (like all data > cant be send) and truehd: some crapy bipbip > now everything seems to be ok for the player, procstat -f write counter > grows up, but no sound from my receiver: no channel input, nothing > showed, like nothing is send to him. > no error in xbmc.log or in messages: > Jan 25 08:15:35 htpc kernel: pcm4: chn_start(): VCHAN PARENT starting! > (PCMDIR_PLAY/running) (ready=8192 force=1 i=1 j=0 intrtimeout=2 latency=2ms) > Jan 25 08:15:35 htpc kernel: hdac1: 24576Kbps of 92160Kbps bandwidth used > Jan 25 08:15:35 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup > fmt=02800400 (7.1) speed=192000 > Jan 25 08:15:35 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup nid=4: > fmt=0x1817, dfmt=0x0021, chan=0x0010, chan_count=0x07, stripe=1 > Jan 25 08:15:35 htpc kernel: pcm4: chn_trigger() pcm4:play:dsp4.p0: > calling go=0x00000001 , prev=0xffffffff > Jan 25 08:15:35 htpc kernel: pcm4: chn_trigger() pcm4:virtual:dsp4.vp0: > calling go=0x00000001 , prev=0xffffffff I've tried with both vchans on and off and found no difference. In both cases cases I had vchanformat set to "s16le:2.0", as vchan should just pass any ac3 through without conversion and set format is not important. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 25 19:44:12 2012 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EB52106566C; Wed, 25 Jan 2012 19:44:12 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 46E9B8FC13; Wed, 25 Jan 2012 19:44:10 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA13019; Wed, 25 Jan 2012 21:34:00 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Rq8bY-0006rB-5D; Wed, 25 Jan 2012 21:34:00 +0200 Message-ID: <4F205927.4050306@FreeBSD.org> Date: Wed, 25 Jan 2012 21:33:59 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Hiroki Sato X-Enigmail-Version: undefined Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: multimedia@FreeBSD.org Subject: multimedia/rtmpdump: bad librtmp.pc ? 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, 25 Jan 2012 19:44:12 -0000 $ pkg-config --libs librtmp Cflags field occurs twice in '/usr/local/libdata/pkgconfig/librtmp.pc' $ cat /usr/local/libdata/pkgconfig/librtmp.pc prefix=/usr/local exec_prefix=${prefix} libdir=/usr/local/lib incdir=${prefix}/include Name: librtmp Description: RTMP implementation Version: v2.4 Requires: URL: http://rtmpdump.mplayerhq.hu Libs: -L${libdir} -L/usr/local/lib -lrtmp -lz -lssl -lcrypto Cflags: -I${incdir} -I/usr/local/include Cflags: -I${incdir} -- Andriy Gapon From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 26 03:51:38 2012 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB0D91065672; Thu, 26 Jan 2012 03:51:38 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 12D518FC13; Thu, 26 Jan 2012 03:51:37 +0000 (UTC) Received: from alph.allbsd.org ([IPv6:2001:2f0:104:e010:862b:2bff:febc:8956]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id q0Q3pMV3043376; Thu, 26 Jan 2012 12:51:32 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id q0Q3pLbj021296; Thu, 26 Jan 2012 12:51:21 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 26 Jan 2012 12:51:19 +0900 (JST) Message-Id: <20120126.125119.1399390509638364145.hrs@allbsd.org> To: avg@FreeBSD.org From: Hiroki Sato In-Reply-To: <4F205927.4050306@FreeBSD.org> References: <4F205927.4050306@FreeBSD.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.4 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Thu_Jan_26_12_51_19_2012_573)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Thu, 26 Jan 2012 12:51:33 +0900 (JST) X-Spam-Status: No, score=-104.6 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, RDNS_NONE, SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: multimedia@FreeBSD.org Subject: Re: multimedia/rtmpdump: bad librtmp.pc ? 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, 26 Jan 2012 03:51:38 -0000 ----Security_Multipart(Thu_Jan_26_12_51_19_2012_573)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Andriy Gapon wrote in <4F205927.4050306@FreeBSD.org>: av> av> $ pkg-config --libs librtmp av> Cflags field occurs twice in '/usr/local/libdata/pkgconfig/librtmp.pc' av> av> $ cat /usr/local/libdata/pkgconfig/librtmp.pc av> prefix=/usr/local av> exec_prefix=${prefix} av> libdir=/usr/local/lib av> incdir=${prefix}/include av> av> Name: librtmp av> Description: RTMP implementation av> Version: v2.4 av> Requires: av> URL: http://rtmpdump.mplayerhq.hu av> Libs: -L${libdir} -L/usr/local/lib -lrtmp -lz -lssl -lcrypto av> Cflags: -I${incdir} -I/usr/local/include av> Cflags: -I${incdir} Oh, sorry, I didn't notice it was broken. I just committed a fix. -- Hiroki ----Security_Multipart(Thu_Jan_26_12_51_19_2012_573)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk8gzbcACgkQTyzT2CeTzy1QDACeNf7QnGtD5WI4gblKk0u0uHDW 2nYAmgJcattli/vHNLWOfLmajQ7gctKS =vd21 -----END PGP SIGNATURE----- ----Security_Multipart(Thu_Jan_26_12_51_19_2012_573)---- From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 26 12:41:51 2012 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C730106564A; Thu, 26 Jan 2012 12:41:51 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 6E4FC8FC15; Thu, 26 Jan 2012 12:41:49 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA27728; Thu, 26 Jan 2012 14:41:48 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <4F214A0C.4000209@FreeBSD.org> Date: Thu, 26 Jan 2012 14:41:48 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120111 Thunderbird/9.0 MIME-Version: 1.0 To: Hiroki Sato References: <4F205927.4050306@FreeBSD.org> <20120126.125119.1399390509638364145.hrs@allbsd.org> In-Reply-To: <20120126.125119.1399390509638364145.hrs@allbsd.org> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: multimedia@FreeBSD.org Subject: Re: multimedia/rtmpdump: bad librtmp.pc ? 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, 26 Jan 2012 12:41:51 -0000 on 26/01/2012 05:51 Hiroki Sato said the following: > Andriy Gapon wrote > in <4F205927.4050306@FreeBSD.org>: > > av> > av> $ pkg-config --libs librtmp > av> Cflags field occurs twice in '/usr/local/libdata/pkgconfig/librtmp.pc' > av> > av> $ cat /usr/local/libdata/pkgconfig/librtmp.pc > av> prefix=/usr/local > av> exec_prefix=${prefix} > av> libdir=/usr/local/lib > av> incdir=${prefix}/include > av> > av> Name: librtmp > av> Description: RTMP implementation > av> Version: v2.4 > av> Requires: > av> URL: http://rtmpdump.mplayerhq.hu > av> Libs: -L${libdir} -L/usr/local/lib -lrtmp -lz -lssl -lcrypto > av> Cflags: -I${incdir} -I/usr/local/include > av> Cflags: -I${incdir} > > Oh, sorry, I didn't notice it was broken. I just committed a fix. Thank you! -- Andriy Gapon From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 27 02:11:13 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D377106566B for ; Fri, 27 Jan 2012 02:11:13 +0000 (UTC) (envelope-from mmacfarlyn@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4D05B8FC15 for ; Fri, 27 Jan 2012 02:11:12 +0000 (UTC) Received: by vcmm1 with SMTP id m1so1437377vcm.13 for ; Thu, 26 Jan 2012 18:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:date:to:message-id:content-type:mime-version; bh=/S/W9f+GUKU82fsk1cho6P3qZoe+PJgg7j2Fvy7TxvA=; b=jNJz4UxBk4jrWzib/0F6pRTpS0g4LqodwWic3ZScIfHMy497ilLQO2sRdy4MjnX1no /M2N0SBPN71MVPLVSy7DILoIxK6kYG/Jo6yUEtZ7ervLawkV4LJeYwCHxYRQAn+aea2d +JXFsLdFn4d8P3fmOxrOKxPxuyOPaHIcEB4L4= Received: by 10.220.155.142 with SMTP id s14mr2651431vcw.20.1327628932863; Thu, 26 Jan 2012 17:48:52 -0800 (PST) Received: from localhost ([76.3.15.61]) by mx.google.com with ESMTPS id iv10sm5820613vdb.18.2012.01.26.17.48.48 (version=SSLv3 cipher=OTHER); Thu, 26 Jan 2012 17:48:52 -0800 (PST) From: Mmacfarlyn Date: Thu, 26 Jan 2012 20:51:35 -0500 To: freebsd-multimedia@freebsd.org Message-ID: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> Content-Type: multipart/mixed; boundary="----Y2J2CLRWC222FP1YPQTQ8RY5085P6N" MIME-Version: 1.0 Subject: FreeBSD and jackd 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, 27 Jan 2012 02:11:13 -0000 ------Y2J2CLRWC222FP1YPQTQ8RY5085P6N Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 aGFzIGFueW9uZSB5ZXQgdG8gcnVuIGludG8gdGhpcyBpc3N1ZT8KIAo6NTU1Oi0+dW5hbWUgLWEK RnJlZUJTRCBkaXNncmFjZSA4LjItUkVMRUFTRSBGcmVlQlNEIDguMi1SRUxFQVNFICMwOiBTdW4g QXVnIDIxIDE0OjE5OjMwIEVEVCAyMDEKMSAgICAgcm9vdEBkaXNncmFjZTovdXNyL29iai91c3Iv c3JjL3N5cy9kaXNncmFjZSAgaTM4Ngo6NTU2Oi0+amFja2QgLWQgYWxzYQpqYWNrZCAwLjEyMS4z CkNvcHlyaWdodCAyMDAxLTIwMDkgUGF1bCBEYXZpcywgU3RlcGhhbmUgTGV0eiwgSmFjayBPJ1F1 aW5uLCBUb3JiZW4gSG9obiBhbmQgb3RoCmVycy4KamFja2QgY29tZXMgd2l0aCBBQlNPTFVURUxZ IE5PIFdBUlJBTlRZClRoaXMgaXMgZnJlZSBzb2Z0d2FyZSwgYW5kIHlvdSBhcmUgd2VsY29tZSB0 byByZWRpc3RyaWJ1dGUgaXQKdW5kZXIgY2VydGFpbiBjb25kaXRpb25zOyBzZWUgdGhlIGZpbGUg Q09QWUlORyBmb3IgZGV0YWlscwogCmNvdWxkIG5vdCBvcGVuIGRyaXZlciAuc28gJy91c3IvbG9j YWwvbGliL2phY2svamFja19hbHNhX21pZGkuc28nOiAvdXNyL2xvY2FsL2xpCmIvamFjay9qYWNr X2Fsc2FfbWlkaS5zbzogVW5kZWZpbmVkIHN5bWJvbCAiY2xvY2tfbmFub3NsZWVwIgogCmNvdWxk IG5vdCBvcGVuIGRyaXZlciAuc28gJy91c3IvbG9jYWwvbGliL2phY2svamFja19hbHNhLnNvJzog L3Vzci9sb2NhbC9saWIvamFjCmsvamFja19hbHNhLnNvOiBVbmRlZmluZWQgc3ltYm9sICJjbG9j a19uYW5vc2xlZXAiCiAKamFja2Q6IHVua25vd24gZHJpdmVyICdhbHNhJwoKRG9lcyBGcmVlQlNE IG5vdCBzdXBwb3J0IEFMU0E/ ------Y2J2CLRWC222FP1YPQTQ8RY5085P6N-- From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 27 05:56:07 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90F0E106564A for ; Fri, 27 Jan 2012 05:56:07 +0000 (UTC) (envelope-from brenda@disgrace.xeonweb.net) Received: from disgrace.xeonweb.net (unknown [IPv6:2001:470:4:19f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 325508FC16 for ; Fri, 27 Jan 2012 05:56:06 +0000 (UTC) Received: from disgrace.xeonweb.net (localhost [127.0.0.1]) by disgrace.xeonweb.net (8.14.4/8.14.4) with ESMTP id q0R0ED5Z039955 for ; Thu, 26 Jan 2012 19:14:14 -0500 (EST) (envelope-from brenda@disgrace.xeonweb.net) Received: (from root@localhost) by disgrace.xeonweb.net (8.14.4/8.14.4/Submit) id q0R0E8rU039954 for freebsd-multimedia@freebsd.org; Thu, 26 Jan 2012 19:14:08 -0500 (EST) (envelope-from brenda) Date: Thu, 26 Jan 2012 19:14:08 -0500 From: Charlie Root To: freebsd-multimedia@freebsd.org Message-ID: <20120127001408.GA39920@disgrace.xeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-xeonweb-MailScanner-Information: Please contact the ISP for more information X-xeonweb-MailScanner-ID: q0R0ED5Z039955 X-xeonweb-MailScanner: Found to be clean X-xeonweb-MailScanner-From: brenda@disgrace.xeonweb.net X-Spam-Status: No Subject: FreeBSD 8 and jackd 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, 27 Jan 2012 05:56:07 -0000 has anyone yet to run into this issue? :555:->uname -a FreeBSD disgrace 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Aug 21 14:19:30 EDT 2011 root@disgrace:/usr/obj/usr/src/sys/disgrace i386 :556:->jackd -d alsa jackd 0.121.3 Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details could not open driver .so '/usr/local/lib/jack/jack_alsa_midi.so': /usr/local/lib/jack/jack_alsa_midi.so: Undefined symbol "clock_nanosleep" could not open driver .so '/usr/local/lib/jack/jack_alsa.so': /usr/local/lib/jack/jack_alsa.so: Undefined symbol "clock_nanosleep" jackd: unknown driver 'alsa' if so, what is the fix, Does BSD not support ALSA? -- This message has been scanned for viruses and dangerous content by xeonweb, and is believed to be clean. From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 27 05:56:08 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64BA9106566B for ; Fri, 27 Jan 2012 05:56:08 +0000 (UTC) (envelope-from shocked@disgrace.xeonweb.net) Received: from disgrace.xeonweb.net (unknown [IPv6:2001:470:4:19f::2]) by mx1.freebsd.org (Postfix) with ESMTP id F2F118FC17 for ; Fri, 27 Jan 2012 05:56:07 +0000 (UTC) Received: from disgrace.xeonweb.net (localhost [127.0.0.1]) by disgrace.xeonweb.net (8.14.4/8.14.4) with ESMTP id q0R0FZQg039968 for ; Thu, 26 Jan 2012 19:15:35 -0500 (EST) (envelope-from shocked@disgrace.xeonweb.net) Received: (from shocked@localhost) by disgrace.xeonweb.net (8.14.4/8.14.4/Submit) id q0R0FU3G039967 for freebsd-multimedia@freebsd.org; Thu, 26 Jan 2012 19:15:30 -0500 (EST) (envelope-from shocked) Date: Thu, 26 Jan 2012 19:15:30 -0500 From: shocked To: freebsd-multimedia@freebsd.org Message-ID: <20120127001530.GA39960@disgrace.xeonweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-xeonweb-MailScanner-Information: Please contact the ISP for more information X-xeonweb-MailScanner-ID: q0R0FZQg039968 X-xeonweb-MailScanner: Found to be clean X-xeonweb-MailScanner-From: shocked@disgrace.xeonweb.net X-Spam-Status: No Subject: FreeBSD 8 and Jackd 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, 27 Jan 2012 05:56:08 -0000 has anyone yet run into this issue: :555:->uname -a FreeBSD disgrace 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Aug 21 14:19:30 EDT 2011 root@disgrace:/usr/obj/usr/src/sys/disgrace i386 brenda@disgrace (/usr/ports/multimedia/phonon):556:->jackd -d alsa jackd 0.121.3 Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details could not open driver .so '/usr/local/lib/jack/jack_alsa_midi.so': /usr/local/lib/jack/jack_alsa_midi.so: Undefined symbol "clock_nanosleep" could not open driver .so '/usr/local/lib/jack/jack_alsa.so': /usr/local/lib/jack/jack_alsa.so: Undefined symbol "clock_nanosleep" jackd: unknown driver 'alsa' does FreeBSD not support ALSA? -- This message has been scanned for viruses and dangerous content by xeonweb, and is believed to be clean. From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 27 09:16:42 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 179C91065673 for ; Fri, 27 Jan 2012 09:16:42 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9298FC0A for ; Fri, 27 Jan 2012 09:16:41 +0000 (UTC) Received: by eekb47 with SMTP id b47so562182eek.13 for ; Fri, 27 Jan 2012 01:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=g0FlAwgrcinmFYTjeqxHkNwHPYKqedB+JaK1j22Lyss=; b=qlTHde1iG0I7/ASoKvCKzGO6Rq6cylndA8oIZ1JyePnDamF1jMcvMBSX5wxugPCMR6 x49fTeZ5m6QPecNK4TO7rcokDqiFbjZHDoc4GFlUWoFUi7hEyY4AjFj6QbgbGjklY94T 7FCmugcnlFQrpeDLSN38ncrINue+c5fslNEpk= Received: by 10.14.99.71 with SMTP id w47mr1846088eef.78.1327654391214; Fri, 27 Jan 2012 00:53:11 -0800 (PST) Received: from green.tandem.local (136-218-200-46.pool.ukrtel.net. [46.200.218.136]) by mx.google.com with ESMTPS id x4sm26629503eeb.4.2012.01.27.00.53.09 (version=SSLv3 cipher=OTHER); Fri, 27 Jan 2012 00:53:10 -0800 (PST) Message-ID: <4F2265F3.5000201@gmail.com> Date: Fri, 27 Jan 2012 10:53:07 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0.1) Gecko/20120110 Firefox/9.0.1 SeaMonkey/2.6.1 MIME-Version: 1.0 To: Mmacfarlyn References: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> In-Reply-To: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: FreeBSD and jackd 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, 27 Jan 2012 09:16:42 -0000 Mmacfarlyn wrote: > has anyone yet to run into this issue? > > :555:->uname -a > FreeBSD disgrace 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Aug 21 14:19:30 EDT 201 > 1 root@disgrace:/usr/obj/usr/src/sys/disgrace i386 > :556:->jackd -d alsa > jackd 0.121.3 > Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and oth > ers. > jackd comes with ABSOLUTELY NO WARRANTY > This is free software, and you are welcome to redistribute it > under certain conditions; see the file COPYING for details > > could not open driver .so '/usr/local/lib/jack/jack_alsa_midi.so': /usr/local/li > b/jack/jack_alsa_midi.so: Undefined symbol "clock_nanosleep" So you have correct library but with different symbols. Go install sysutils/bsdadminscripts and ask pkg_libchk what ports you should rebuild. > > could not open driver .so '/usr/local/lib/jack/jack_alsa.so': /usr/local/lib/jac > k/jack_alsa.so: Undefined symbol "clock_nanosleep" > > jackd: unknown driver 'alsa' > > Does FreeBSD not support ALSA? Or should it? FreeBSD has it's own sound stack. http://wiki.freebsd.org/Sound is a nice page about that. FreeBSD supports ALSA through audio/alsa-lib port. -- Sphinx of black quartz judge my vow. From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 27 10:03:54 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 350D11065670 for ; Fri, 27 Jan 2012 10:03:54 +0000 (UTC) (envelope-from arved@FreeBSD.org) Received: from mail01.rise-w.com (mail01.rise-w.com [88.116.105.226]) by mx1.freebsd.org (Postfix) with ESMTP id DE5108FC08 for ; Fri, 27 Jan 2012 10:03:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail01.rise-w.com (Postfix) with ESMTP id 2772240E08E; Fri, 27 Jan 2012 10:46:09 +0100 (CET) Received: from [192.168.1.106] (unknown [193.187.215.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.rise-world.com (Postfix) with ESMTPSA id 6C5E640E085; Fri, 27 Jan 2012 10:46:08 +0100 (CET) Message-ID: <4F227260.7000403@FreeBSD.org> Date: Fri, 27 Jan 2012 10:46:08 +0100 From: =?UTF-8?B?VGlsbWFuIEtlc2tpbsO2eg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> <4F2265F3.5000201@gmail.com> In-Reply-To: <4F2265F3.5000201@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Mmacfarlyn Subject: Re: FreeBSD and jackd 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, 27 Jan 2012 10:03:54 -0000 * Volodymyr Kostyrko [Fri, 27 Jan 2012 10:53:07 +0200]: > Mmacfarlyn wrote: >> has anyone yet to run into this issue? >> >> :555:->uname -a >> FreeBSD disgrace 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Aug 21 >> 14:19:30 EDT 201 >> 1 root@disgrace:/usr/obj/usr/src/sys/disgrace i386 >> :556:->jackd -d alsa >> jackd 0.121.3 >> Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben >> Hohn and oth >> ers. >> jackd comes with ABSOLUTELY NO WARRANTY >> This is free software, and you are welcome to redistribute it >> under certain conditions; see the file COPYING for details >> >> could not open driver .so '/usr/local/lib/jack/jack_alsa_midi.so': >> /usr/local/li >> b/jack/jack_alsa_midi.so: Undefined symbol "clock_nanosleep" IIRC FreeBSD does not have clock_nanosleep. This looks like a bug in the port. > > So you have correct library but with different symbols. Go install > sysutils/bsdadminscripts and ask pkg_libchk what ports you should rebuild. > >> >> could not open driver .so '/usr/local/lib/jack/jack_alsa.so': >> /usr/local/lib/jac >> k/jack_alsa.so: Undefined symbol "clock_nanosleep" >> >> jackd: unknown driver 'alsa' >> >> Does FreeBSD not support ALSA? > > Or should it? FreeBSD has it's own sound stack. > http://wiki.freebsd.org/Sound is a nice page about that. FreeBSD > supports ALSA through audio/alsa-lib port. Did you build the port with the ALSA option on or off? Did you try the portaudio or oss drivers? From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 02:58:36 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F174106566C; Sat, 28 Jan 2012 02:58:36 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 07D3B8FC12; Sat, 28 Jan 2012 02:58:35 +0000 (UTC) Received: by qcse14 with SMTP id e14so1771276qcs.13 for ; Fri, 27 Jan 2012 18:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lr4DeR1i6i0okWBjUaqG4IMBC3Lgk7hJuy91C3WgOk0=; b=Jv85IaN2z0bPCtfS94dCLi1OkbdrP54d2BW4662IcB6IYo81RRtEskPalQH0g3ypVq EytY63EARPxFUpJNL6v7lW379syknwjKKwl91/06xcXkgpkOW5nXE8aumnkJmDzWYRHu /4bmRNX1qfC2TFWSDoS4dFHQcNBaIAEHlnYgo= MIME-Version: 1.0 Received: by 10.224.218.4 with SMTP id ho4mr11746087qab.77.1327719515224; Fri, 27 Jan 2012 18:58:35 -0800 (PST) Received: by 10.229.222.206 with HTTP; Fri, 27 Jan 2012 18:58:35 -0800 (PST) In-Reply-To: <4F1FF2AD.9020003@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> <4F1FF2AD.9020003@FreeBSD.org> Date: Sat, 28 Jan 2012 03:58:35 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 28 Jan 2012 02:58:36 -0000 2012/1/25 Alexander Motin > > Commenting it appeared not good, as at least mplayer doesn't sets channels > for AC3. That makes sound(4) use default 1 channel for AC3, that is > definitely not supported. I believe this should be better: > http://svn.freebsd.org/**changeset/base/230537 > > Also, as soon as sound(4) interprets 8 channel as 7.1 by default, I've > changed previous patch a bit to allow both "8.0" and "7.1" AC3 formats: > http://svn.freebsd.org/**changeset/base/230513 > > thank, i can set 8 channels without vchan now. > For me this at least doesn't break normal AC3 operation and when I hacked > mplayer to set 8 channels, I can see predictable codec configuration and > time in mplayer predictably running 4 times faster. Unluckily mplayer seems > doesn't support TrueHD passthrough to ckeck closer -- it always does > decoding. > > ok i think i found the problem: in http://svn.freebsd.org/changeset/base/230511 cchn is equal to 7 for me if i set SNDCTL_DSP_CHANNELS to 8. and it's why HBR bit is not set. it's confirmed in my /v/l/messages where chan_count=0x7: Jan 28 03:23:53 htpc kernel: hdac1: 24576Kbps of 92160Kbps bandwidth used Jan 28 03:23:53 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup fmt=02800400 (7.1) speed=192000 Jan 28 03:23:53 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup nid=4: fmt=0x1817, dfmt=0x0021, chan=0x0010, chan_count=0x07, stripe=1 From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 09:26:19 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47298106566B; Sat, 28 Jan 2012 09:26:19 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 907968FC08; Sat, 28 Jan 2012 09:26:18 +0000 (UTC) Received: by eekb47 with SMTP id b47so947443eek.13 for ; Sat, 28 Jan 2012 01:26:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=gpygIsMT1f1/cqooz74kHWcteU7Q20JdT0LMy3RLWF8=; b=lnYZVhdIkgxLRfRn1AIsF+zLeOUqVaAjT1yBhXGyZmRZULvRytT8Z0xWyuW64SPF+U NxPKmzUsZgVDT/+fbgZEjzO5jFBA2Wxns6vZ8kUg7KHAlyJoJQ5sPfGNM42abplmcfXG EB4e4GQKAyigwf1JIGVuPQDYJlDB3B3NVd8VQ= Received: by 10.213.25.139 with SMTP id z11mr1646563ebb.80.1327742776757; Sat, 28 Jan 2012 01:26:16 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id n17sm41017499eei.3.2012.01.28.01.26.14 (version=SSLv3 cipher=OTHER); Sat, 28 Jan 2012 01:26:14 -0800 (PST) Sender: Alexander Motin Message-ID: <4F23BF2B.9050100@FreeBSD.org> Date: Sat, 28 Jan 2012 11:26:03 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?TWlja2HDq2wgTWFpbGxvdA==?= References: <4F0DE3FD.2020203@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> <4F1FF2AD.9020003@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 28 Jan 2012 09:26:19 -0000 On 28.01.2012 04:58, MickaĆ«l Maillot wrote: > 2012/1/25 Alexander Motin > > > > Commenting it appeared not good, as at least mplayer doesn't sets > channels for AC3. That makes sound(4) use default 1 channel for AC3, > that is definitely not supported. I believe this should be better: > http://svn.freebsd.org/__changeset/base/230537 > > > Also, as soon as sound(4) interprets 8 channel as 7.1 by default, > I've changed previous patch a bit to allow both "8.0" and "7.1" AC3 > formats: > http://svn.freebsd.org/__changeset/base/230513 > > > > thank, i can set 8 channels without vchan now. > > For me this at least doesn't break normal AC3 operation and when I > hacked mplayer to set 8 channels, I can see predictable codec > configuration and time in mplayer predictably running 4 times > faster. Unluckily mplayer seems doesn't support TrueHD passthrough > to ckeck closer -- it always does decoding. > > > ok i think i found the problem: in > http://svn.freebsd.org/changeset/base/230511 > cchn is equal to 7 for me if i set SNDCTL_DSP_CHANNELS to 8. > and it's why HBR bit is not set. > > it's confirmed in my /v/l/messages where chan_count=0x7: > Jan 28 03:23:53 htpc kernel: hdac1: 24576Kbps of 92160Kbps bandwidth used > Jan 28 03:23:53 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup > fmt=02800400 (7.1) speed=192000 > Jan 28 03:23:53 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup nid=4: > fmt=0x1817, dfmt=0x0021, chan=0x0010, chan_count=0x07, stripe=1 You are right. Fixed: http://svn.freebsd.org/changeset/base/230641 Thank you! -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 10:22:37 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 269181065674; Sat, 28 Jan 2012 10:22:37 +0000 (UTC) (envelope-from br@rtclab.com) Received: from mx.bsdpad.com (mx.bsdpad.com [46.4.68.80]) by mx1.freebsd.org (Postfix) with ESMTP id DA3E88FC0A; Sat, 28 Jan 2012 10:22:36 +0000 (UTC) Received: from mx.bsdpad.com ([46.4.68.80] helo=rtclab.com) by mx.bsdpad.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1Rr5QZ-000ASJ-DU; Sat, 28 Jan 2012 14:22:35 +0400 Received: (from br@localhost) by rtclab.com (8.14.5/8.14.5/Submit) id q0SAMZQQ040194; Sat, 28 Jan 2012 10:22:35 GMT (envelope-from br) Date: Sat, 28 Jan 2012 14:22:35 +0400 From: Ruslan Bukin To: Alexander Motin Message-ID: <20120128102235.GA39995@jail.io> References: <4F1ADDC8.90104@FreeBSD.org> <20120122163828.GA18783@jail.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120122163828.GA18783@jail.io> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@FreeBSD.org Subject: Re: multi-mono-channel sound card 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, 28 Jan 2012 10:22:37 -0000 On Sun, Jan 22, 2012 at 08:38:28PM +0400, Ruslan Bukin wrote: > On Sat, Jan 21, 2012 at 05:46:16PM +0200, Alexander Motin wrote: > > On 01/21/12 16:12, Ruslan Bukin wrote: > > >My multichannel sound card (RME HDSPe AIO) is support > > >SND_FORMAT(AFMT_S32_LE, 1, 0) only. > > > > > >I call pcm_addchan(..), which triggers chan_init(..,*snd_dbuf,..) > > >Addr of snd_dbuf I write to card in slot N. > > >In result I have /dev/dsp0.pN devices (one device per each mono channel) > > > > > >Works perfectly, sounds great, but in mono mode. > > > > > >I'm interested, what is the right way to implement > > >stereo pair of channels per one device file like in OSS? > > > > pcm_addchan() registers set of equal playback/record channels that > > are supposed to be mixed into the same signal. It is hardware > > equivalent of vchans. It has nothing common with multiple speakers. > > > > Multichannel audio is always multiplexed and AFAIk there is no > > demultiplexing in sound(4). Sound(4) can upmix/downmix channels, > > change their order, format, rate, but not demultiplex. > > > > I see only two ways: > > - implement demultiplexing in driver -- that is not easy, but I > > believe it should be possible; > > - export each input/output connector as separate PCM device and let > > some user level software to do demultiplexing -- that is easy and > > that is what snd_emu10kx does. snd_emu10kx(4) recommends to use > > pulseaudio for demultiplexing. > > Thanks. I have implemented demultiplexing. Works great. > I will release the driver soon. > Not great, actually. Demultiplexing need some time, but seems that PCMTRIG_EMLDMAWR event trigger is not the moment where we have it. If I just copy buffer (memcpy) on PCMTRIG_EMLDMAWR no problem at all, card generates 12k IRQ/s. but simple demultiplex (for loop) on each IRQ reduce speed to 6-10k IRQ/s and causes producing high-pitched sound goes from some chip on card or may be motherboard (its difficult to identify source) it happens only on small period sizes, like 32 samples (choices are 32,64,..4096). samples - IRQ/s 32 - 12k 64 - 6k 128 - 3k 256 - 1.5k 512 - 0.6k 1024 - 0.3k 2048 - 0.15k 4096 - 0.08k card bufsize is 64k bytes (16k samples) so we have only 1/12k = 0.0000833s to demultiplex, but it is not possible, right? -Ruslan From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 11:37:04 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A0351065670 for ; Sat, 28 Jan 2012 11:37:04 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id B0FBF8FC08 for ; Sat, 28 Jan 2012 11:37:03 +0000 (UTC) Received: by eekb47 with SMTP id b47so978304eek.13 for ; Sat, 28 Jan 2012 03:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kOdAKWSuI2iU4LB4ssL1WS1AvJDa31ZRa+swJvecqWs=; b=NwvDtgFDGEo7rj9ZlFVnRor6dwulxwGv9sUVvREXk5ZYc8jExyKkyHcHGUD089RHm4 GGX6duH5ISNsAM5XKJAgmAQSfvmn9bqnwkVYphYRJLz1vNz236W/1/TCa7z/PnYC+by+ roFTprFCID4g5ZlkPvlHGL5wpL56i2600SJ+Y= Received: by 10.14.51.198 with SMTP id b46mr3348828eec.111.1327750622517; Sat, 28 Jan 2012 03:37:02 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id s16sm42453256eef.2.2012.01.28.03.37.00 (version=SSLv3 cipher=OTHER); Sat, 28 Jan 2012 03:37:01 -0800 (PST) Sender: Alexander Motin Message-ID: <4F23DDD2.7000804@FreeBSD.org> Date: Sat, 28 Jan 2012 13:36:50 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: Ruslan Bukin References: <4F1ADDC8.90104@FreeBSD.org> <20120122163828.GA18783@jail.io> <20120128102235.GA39995@jail.io> In-Reply-To: <20120128102235.GA39995@jail.io> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: multi-mono-channel sound card 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, 28 Jan 2012 11:37:04 -0000 On 28.01.2012 12:22, Ruslan Bukin wrote: > On Sun, Jan 22, 2012 at 08:38:28PM +0400, Ruslan Bukin wrote: >> On Sat, Jan 21, 2012 at 05:46:16PM +0200, Alexander Motin wrote: >>> On 01/21/12 16:12, Ruslan Bukin wrote: >>>> My multichannel sound card (RME HDSPe AIO) is support >>>> SND_FORMAT(AFMT_S32_LE, 1, 0) only. >>>> >>>> I call pcm_addchan(..), which triggers chan_init(..,*snd_dbuf,..) >>>> Addr of snd_dbuf I write to card in slot N. >>>> In result I have /dev/dsp0.pN devices (one device per each mono channel) >>>> >>>> Works perfectly, sounds great, but in mono mode. >>>> >>>> I'm interested, what is the right way to implement >>>> stereo pair of channels per one device file like in OSS? >>> >>> pcm_addchan() registers set of equal playback/record channels that >>> are supposed to be mixed into the same signal. It is hardware >>> equivalent of vchans. It has nothing common with multiple speakers. >>> >>> Multichannel audio is always multiplexed and AFAIk there is no >>> demultiplexing in sound(4). Sound(4) can upmix/downmix channels, >>> change their order, format, rate, but not demultiplex. >>> >>> I see only two ways: >>> - implement demultiplexing in driver -- that is not easy, but I >>> believe it should be possible; >>> - export each input/output connector as separate PCM device and let >>> some user level software to do demultiplexing -- that is easy and >>> that is what snd_emu10kx does. snd_emu10kx(4) recommends to use >>> pulseaudio for demultiplexing. >> >> Thanks. I have implemented demultiplexing. Works great. >> I will release the driver soon. >> > > Not great, actually. Demultiplexing need some time, > but seems that PCMTRIG_EMLDMAWR event trigger is not the > moment where we have it. > > If I just copy buffer (memcpy) on PCMTRIG_EMLDMAWR no problem at all, > card generates 12k IRQ/s. > > but simple demultiplex (for loop) on each IRQ reduce speed to 6-10k IRQ/s > and causes producing high-pitched sound goes from some chip > on card or may be motherboard (its difficult to identify source) It can be CPU power converter, when power consumption jumps up and down when CPU is woken up by interrupt. > it happens only on small period sizes, like 32 samples > (choices are 32,64,..4096). > > samples - IRQ/s > 32 - 12k > 64 - 6k > 128 - 3k > 256 - 1.5k > 512 - 0.6k > 1024 - 0.3k > 2048 - 0.15k > 4096 - 0.08k > > card bufsize is 64k bytes (16k samples) Interrupt rate depends on what fragment size you are setting on the card. The smaller fragment size is, the lower I/O latency, but higher interrupt rate. sound(4) has mechanism to set fragment size depending on current format to control latency, but you can change it if your card has some limitations. > so we have only 1/12k = 0.0000833s to demultiplex, > but it is not possible, right? Yes, you have 1/12ks to do it in worst case, but you only need to handle data for 1/12k of second from the last tick. So this should be not so difficult. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 11:39:09 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9B96106564A; Sat, 28 Jan 2012 11:39:09 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3C1D38FC0A; Sat, 28 Jan 2012 11:39:08 +0000 (UTC) Received: by qcse14 with SMTP id e14so1964513qcs.13 for ; Sat, 28 Jan 2012 03:39:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Rcazzc4iaY4/700YxglS5sNP0+pSFBL8jzmWHxbeZUQ=; b=NxS/TEUhIDrPO7hoQoUzcqKrGFjp6wAAxbxT7IAAMzU+aYV1NdwOhvihy/2BRuyoTH U83/TOzmriiYVHRsTayJWCNdbymgIxYiT/MKBsSa54/g6KN/2OgadIDx9ybhLeyWt8+O Hpq2b9ik8BiHNPC3awEeC45MLGFuX9w/CxT74= MIME-Version: 1.0 Received: by 10.229.135.135 with SMTP id n7mr3962888qct.31.1327750748031; Sat, 28 Jan 2012 03:39:08 -0800 (PST) Received: by 10.229.222.206 with HTTP; Sat, 28 Jan 2012 03:39:07 -0800 (PST) In-Reply-To: <4F23BF2B.9050100@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> <4F1FF2AD.9020003@FreeBSD.org> <4F23BF2B.9050100@FreeBSD.org> Date: Sat, 28 Jan 2012 12:39:07 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 28 Jan 2012 11:39:09 -0000 2012/1/28 Alexander Motin > > You are right. Fixed: http://svn.freebsd.org/**changeset/base/230641 > > Thank you! > > -- > Alexander Motin > And i can play DTS-HDMA en Dolby TrueHD ! thanks for all your work :) From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 11:45:21 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E928E106564A; Sat, 28 Jan 2012 11:45:21 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1C18FC17; Sat, 28 Jan 2012 11:45:20 +0000 (UTC) Received: by eaaa14 with SMTP id a14so976164eaa.13 for ; Sat, 28 Jan 2012 03:45:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=U0+eKPSSjHuvUq0QhyRvIQrwpByGNGTEV9kvBKI+BkA=; b=dRJqCixT4BeGdONssRuYyU4TLh4Y5vhjIiuyYOM9oP936wZpAz2LxfwpWFsY7q01Gc T1Rt6iucj52ERkxYJNdVp0vTUAmMwIT23XPkNeydYVQH6ZPhReSwEDPjyvkSF9GMza1v aP75gvvoBG3s3QmRBe3YM0QD2OS3aNVgD04yM= Received: by 10.213.25.73 with SMTP id y9mr1188968ebb.34.1327751120275; Sat, 28 Jan 2012 03:45:20 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id t11sm15576953eea.10.2012.01.28.03.45.18 (version=SSLv3 cipher=OTHER); Sat, 28 Jan 2012 03:45:19 -0800 (PST) Sender: Alexander Motin Message-ID: <4F23DFC3.7040809@FreeBSD.org> Date: Sat, 28 Jan 2012 13:45:07 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?TWlja2HDq2wgTWFpbGxvdA==?= References: <4F0DE3FD.2020203@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> <4F1FF2AD.9020003@FreeBSD.org> <4F23BF2B.9050100@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 28 Jan 2012 11:45:22 -0000 On 28.01.2012 13:39, MickaĆ«l Maillot wrote: > 2012/1/28 Alexander Motin > > You are right. Fixed: http://svn.freebsd.org/__changeset/base/230641 > > > And i can play DTS-HDMA en Dolby TrueHD ! thanks for all your work :) Hooray! We did it! :) Thank you very much for testing it! -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 16:36:03 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89E531065678; Sat, 28 Jan 2012 16:36:03 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo103.cox.net (eastrmfepo103.cox.net [68.230.241.215]) by mx1.freebsd.org (Postfix) with ESMTP id 1400E8FC16; Sat, 28 Jan 2012 16:36:02 +0000 (UTC) Received: from eastrmimpo110.cox.net ([68.230.241.223]) by eastrmfepo103.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120128163557.SAAQ28068.eastrmfepo103.cox.net@eastrmimpo110.cox.net>; Sat, 28 Jan 2012 11:35:57 -0500 Received: from serene.no-ip.org ([98.164.86.55]) by eastrmimpo110.cox.net with bizsmtp id T4bw1i00F1BeFqy024bxz3; Sat, 28 Jan 2012 11:35:57 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020201.4F2423ED.0046,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=UJAwRnj6VfZxP3vT7W4vAg8D8vrJMSfrMxq2TR8CUCY= c=1 sm=1 a=G8Uczd0VNMoA:10 a=8nJEP1OIZ-IA:10 a=fdHYxQQoAueMHNSmXppgDg==:17 a=6I5d2MoRAAAA:8 a=kviXuzpPAAAA:8 a=5gBp2vQ_Q12kbLno5NsA:9 a=YFD0oe1uRf7BYjVMvygA:7 a=wPNLvfGTeEIA:10 a=SV7veod9ZcQA:10 a=4vB-4DCPJfMA:10 a=fdHYxQQoAueMHNSmXppgDg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q0SGZuEp001656; Sat, 28 Jan 2012 10:35:56 -0600 (CST) (envelope-from conrads@cox.net) Date: Sat, 28 Jan 2012 10:35:51 -0600 From: "Conrad J. Sabatier" To: Tilman =?ISO-8859-1?Q?Keskin=F6z?= Message-ID: <20120128103551.557b8334@cox.net> In-Reply-To: <4F227260.7000403@FreeBSD.org> References: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> <4F2265F3.5000201@gmail.com> <4F227260.7000403@FreeBSD.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-multimedia@freebsd.org, Mmacfarlyn , Volodymyr Kostyrko Subject: Re: FreeBSD and jackd 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, 28 Jan 2012 16:36:03 -0000 On Fri, 27 Jan 2012 10:46:08 +0100 Tilman Keskin=F6z wrote: > * Volodymyr Kostyrko [Fri, 27 Jan 2012 10:53:07 +0200]: > > Mmacfarlyn wrote: > >> has anyone yet to run into this issue? > >> > >> :555:->uname -a > >> FreeBSD disgrace 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Aug 21 > >> 14:19:30 EDT 201 > >> 1 root@disgrace:/usr/obj/usr/src/sys/disgrace i386 > >> :556:->jackd -d alsa > >> jackd 0.121.3 > >> Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben > >> Hohn and oth > >> ers. > >> jackd comes with ABSOLUTELY NO WARRANTY > >> This is free software, and you are welcome to redistribute it > >> under certain conditions; see the file COPYING for details > >> > >> could not open driver .so '/usr/local/lib/jack/jack_alsa_midi.so': > >> /usr/local/li > >> b/jack/jack_alsa_midi.so: Undefined symbol "clock_nanosleep" >=20 > IIRC FreeBSD does not have clock_nanosleep. >=20 > This looks like a bug in the port. >=20 > >=20 > > So you have correct library but with different symbols. Go install > > sysutils/bsdadminscripts and ask pkg_libchk what ports you should > > rebuild. > >=20 > >> > >> could not open driver .so '/usr/local/lib/jack/jack_alsa.so': > >> /usr/local/lib/jac > >> k/jack_alsa.so: Undefined symbol "clock_nanosleep" > >> > >> jackd: unknown driver 'alsa' > >> > >> Does FreeBSD not support ALSA? > >=20 > > Or should it? FreeBSD has it's own sound stack. > > http://wiki.freebsd.org/Sound is a nice page about that. FreeBSD > > supports ALSA through audio/alsa-lib port. >=20 > Did you build the port with the ALSA option on or off? >=20 > Did you try the portaudio or oss drivers? Jackd *will* start if you use the OSS backend ("jackd [other options] -d oss"). Just ignore any warnings about ALSA; they're irrelevant if you're using OSS. For some reason, though, lately, I can't get Rosegarden to start anymore, even though jackd is starting up and opening the listening socket just as it should. I've trussed Rosegarden, and it seems to be exiting after failing to connect to lircd, which never used to be a requirement. After failing the connect, it segfaults and that's all she wrote! Anyone know what's up with *that*? --=20 Conrad J. Sabatier conrads@cox.net From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 17:21:26 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2164810657B0; Sat, 28 Jan 2012 17:21:26 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (diana.db.net [66.113.102.10]) by mx1.freebsd.org (Postfix) with ESMTP id 02FFE8FC0C; Sat, 28 Jan 2012 17:21:25 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id 7C0C92283B; Sat, 28 Jan 2012 09:56:02 -0700 (MST) Received: by night.db.net (Postfix, from userid 1000) id A40455C5A; Sat, 28 Jan 2012 12:02:08 -0500 (EST) Date: Sat, 28 Jan 2012 12:02:08 -0500 From: Diane Bruce To: "Conrad J. Sabatier" Message-ID: <20120128170208.GA41884@night.db.net> References: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> <4F2265F3.5000201@gmail.com> <4F227260.7000403@FreeBSD.org> <20120128103551.557b8334@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120128103551.557b8334@cox.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-multimedia@freebsd.org, Mmacfarlyn , Volodymyr Kostyrko Subject: Re: FreeBSD and jackd 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, 28 Jan 2012 17:21:26 -0000 On Sat, Jan 28, 2012 at 10:35:51AM -0600, Conrad J. Sabatier wrote: > On Fri, 27 Jan 2012 10:46:08 +0100 > Tilman Keskin?z wrote: > > > * Volodymyr Kostyrko [Fri, 27 Jan 2012 10:53:07 +0200]: > > > Mmacfarlyn wrote: ... > -d oss"). Just ignore any warnings about ALSA; they're irrelevant if > you're using OSS. > > For some reason, though, lately, I can't get Rosegarden to start > anymore, even though jackd is starting up and opening the listening > socket just as it should. I've trussed Rosegarden, and it seems to be > exiting after failing to connect to lircd, which never used to be a > requirement. After failing the connect, it segfaults and that's all > she wrote! What is probably happening is Rosegarden is trying to set real time priority on a thread, which we cannot do as non root. > > Anyone know what's up with *that*? > I've been digging into the port lately but for a hamradio related port 'lysdr'. Try jackd -r -d oss & The -r sets non realtime priority. jackd will start up, Rosegarden should connect to that. Please let me know. > -- > Conrad J. Sabatier > conrads@cox.net - Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db Why leave money to our children if we don't leave them the Earth? From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 21:01:13 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B55F106566B; Sat, 28 Jan 2012 21:01:13 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo202.cox.net (eastrmfepo202.cox.net [68.230.241.217]) by mx1.freebsd.org (Postfix) with ESMTP id C68348FC08; Sat, 28 Jan 2012 21:01:12 +0000 (UTC) Received: from eastrmimpo305.cox.net ([68.230.241.237]) by eastrmfepo202.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120128210106.SXUL2803.eastrmfepo202.cox.net@eastrmimpo305.cox.net>; Sat, 28 Jan 2012 16:01:06 -0500 Received: from serene.no-ip.org ([98.164.86.55]) by eastrmimpo305.cox.net with bizsmtp id T90w1i00Y1BeFqy02910L8; Sat, 28 Jan 2012 16:01:06 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020206.4F246212.0056,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=7YxdblQhh6tVU6ZVMrnfXyGefIif2LYgDHDYNRNiwDM= c=1 sm=1 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=fdHYxQQoAueMHNSmXppgDg==:17 a=PDjUHgQ1AAAA:8 a=6I5d2MoRAAAA:8 a=kviXuzpPAAAA:8 a=6YFytjNW4JPD7_0v6w4A:9 a=sKmzG4dnBjCmujhR9JYA:7 a=CjuIK1q_8ugA:10 a=zCHh0HzcxBQA:10 a=SV7veod9ZcQA:10 a=4vB-4DCPJfMA:10 a=fdHYxQQoAueMHNSmXppgDg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q0SL0mBP001633; Sat, 28 Jan 2012 15:00:52 -0600 (CST) (envelope-from conrads@cox.net) Date: Sat, 28 Jan 2012 15:00:43 -0600 From: "Conrad J. Sabatier" To: Diane Bruce Message-ID: <20120128150043.222533a6@cox.net> In-Reply-To: <20120128170208.GA41884@night.db.net> References: <2tirv4ovquwfysie51mckesq.1327629095952@email.android.com> <4F2265F3.5000201@gmail.com> <4F227260.7000403@FreeBSD.org> <20120128103551.557b8334@cox.net> <20120128170208.GA41884@night.db.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Mmacfarlyn , Volodymyr Kostyrko Subject: Re: FreeBSD and jackd 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, 28 Jan 2012 21:01:13 -0000 On Sat, 28 Jan 2012 12:02:08 -0500 Diane Bruce wrote: > On Sat, Jan 28, 2012 at 10:35:51AM -0600, Conrad J. Sabatier wrote: > > On Fri, 27 Jan 2012 10:46:08 +0100 > > Tilman Keskin?z wrote: > > > > > * Volodymyr Kostyrko [Fri, 27 Jan 2012 10:53:07 +0200]: > > > > Mmacfarlyn wrote: > ... > > -d oss"). Just ignore any warnings about ALSA; they're irrelevant > > if you're using OSS. > > > > For some reason, though, lately, I can't get Rosegarden to start > > anymore, even though jackd is starting up and opening the listening > > socket just as it should. I've trussed Rosegarden, and it seems to > > be exiting after failing to connect to lircd, which never used to > > be a requirement. After failing the connect, it segfaults and > > that's all she wrote! > > What is probably happening is Rosegarden is trying to set real time > priority on a thread, which we cannot do as non root. > > > > > Anyone know what's up with *that*? > > > > I've been digging into the port lately but for a hamradio related port > 'lysdr'. > > Try > > jackd -r -d oss & > > The -r sets non realtime priority. jackd will start up, Rosegarden > should connect to that. > > Please let me know. No, I've already tried disabling realtime. Doesn't make any difference. As I mentioned earlier, this problem, I think, doesn't even really have anything to do with jackd. Rosegarden is looking to connect to an lircd and, not finding one, it then crashes rudely and abruptly before the main window even opens. All I get is the splash screen, then it dies. Very disconcerting, since I *really* like this program and was using it a lot before this started happening (I'm an amateur composer/arranger/musician. I can't seem to track down the cause, other than this lircd issue, which is baffling, because Rosegarden always worked just fine before without that. Thanks for any other advice you may have to offer. Appreciate your interest in helping. Conrad -- Conrad J. Sabatier conrads@cox.net