From owner-freebsd-current@FreeBSD.ORG Wed Jan 25 07:42:20 2012 Return-Path: Delivered-To: freebsd-current@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-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current 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