From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 21 14:51: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 D6BB91065729; Sat, 21 Jan 2012 14:51:01 +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 87B588FC0A; Sat, 21 Jan 2012 14:51:00 +0000 (UTC) Received: by eaai10 with SMTP id i10so630489eaa.13 for ; Sat, 21 Jan 2012 06:50: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=xFOZpk4d6jvqJwEeEOQqx4XlCctayxBo/KISLd47ETY=; b=p1c4/+rsifuSO7dNo08rUkOMWQ1qc35KtH0RF4NnXGxPAGSahICwFkwt5j7mB3PrgH mVGDqhIizDTkdJUVuZgdEg1zOi0imS98nsPvYGov+JTFSmIUG58pHGlvKJ+HFiqLwFUV KhSlWXxZi5iq9BJZfVUp/gz77cH2Jf2WZ461A= Received: by 10.213.32.9 with SMTP id a9mr447386ebd.144.1327157459034; Sat, 21 Jan 2012 06:50:59 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id t59sm26436883eeh.10.2012.01.21.06.50.56 (version=SSLv3 cipher=OTHER); Sat, 21 Jan 2012 06:50:57 -0800 (PST) Sender: Alexander Motin Message-ID: <4F1AD0CF.8080002@FreeBSD.org> Date: Sat, 21 Jan 2012 16:50:55 +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: <4F1ACBA8.6000203@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: Sat, 21 Jan 2012 14:51:03 -0000 On 01/21/12 16:28, Alexander Motin wrote: > On 01/21/12 15:17, Mickaël Maillot wrote: >> So i tried DTS-HDMA and Dolby TrueHD without success. >> when i play DTS-HDMA, my receiver display DTS-HR and seams to play dts >> core with lots of interruptions. >> and when i play TrueHD, my receiver display TrueHD but doesn't play >> anything. > > 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'll try to make a patch for it a bit later and send you to try. 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? > 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 mean "play anything uncompressed". >> and sysctl show: >> dev.pcm.4.play.vchanmode: passthrough >> dev.pcm.4.play.vchanrate: 192000 >> dev.pcm.4.play.vchanformat: ac3:2.0 >> >> i tried without vchan with same results. >> >> i can't set more than 2 channels for my hdmi output (dsp4), i want to >> set 8 channels like alsa does. > > 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. > >> you can find the source code of xbmc used to play losseless file here: >> https://github.com/Fneufneu/xbmc/blob/freebsdAE/xbmc/cores/AudioEngine/Sinks/AESinkOSS.cpp >> >> >> and my dmesg: http://fneufn.eu/freebsd/dmesg.verb.htpc.20120121.txt > -- Alexander Motin