Re: [RFT] Major snd_hda rewrite

2012-04-05 Thread Alexander Motin
On 06.04.2012 00:20, Jaroslav Suchanek wrote: On Mon, 2012-01-23 at 22:05 +0400, Yuri Pankov wrote: 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 P

Re: [RFT] Major snd_hda rewrite

2012-04-05 Thread Jaroslav Suchanek
On Mon, 2012-01-23 at 22:05 +0400, Yuri Pankov wrote: > 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

Re: [RFT] Major snd_hda rewrite

2012-01-28 Thread Alexander Motin
On 28.01.2012 13:39, Mickaël Maillot wrote: 2012/1/28 Alexander Motin mailto:m...@freebsd.org>> 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 :) Hoor

Re: [RFT] Major snd_hda rewrite

2012-01-28 Thread Mickaël Maillot
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 :) ___

Re: [RFT] Major snd_hda rewrite

2012-01-28 Thread Alexander Motin
On 28.01.2012 04:58, Mickaël Maillot wrote: 2012/1/25 Alexander Motin mailto:m...@freebsd.org>> 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 sho

Re: [RFT] Major snd_hda rewrite

2012-01-27 Thread Mickaël Maillot
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

Re: [RFT] Major snd_hda rewrite

2012-01-25 Thread Alexander Motin
On 01/25/12 09:42, Mickaël Maillot wrote: 2012/1/25 Alexander Motin mailto:m...@freebsd.org>> 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 ther

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
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 ..."

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Zhihao Yuan
On Tue, Jan 24, 2012 at 5:39 PM, Alexander Motin wrote: > On 25.01.2012 01:32, Mickaël Maillot wrote: >> >> 2012/1/24 Alexander Motin mailto:m...@freebsd.org>> >>        Number of channels should be set to 8 by application when it >>        expects bit >>        rate above 6Mbps. Sample rate, as I

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Alexander Motin
On 25.01.2012 01:32, Mickaël Maillot wrote: 2012/1/24 Alexander Motin mailto:m...@freebsd.org>> 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. Increasin

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
2012/1/24 Alexander Motin > On 01/25/12 00:33, Alexander Motin wrote: > >> On 01/25/12 00:13, Mickaël Maillot wrote: >> >>> 2012/1/24 Alexander Motin mailto:m...@freebsd.org>> >>> Here is it: >>> http://people.freebsd.org/~__**mav/hda.HBR.patch >>>

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Alexander Motin
On 01/25/12 00:33, Alexander Motin wrote: On 01/25/12 00:13, Mickaël Maillot wrote: 2012/1/24 Alexander Motin mailto:m...@freebsd.org>> Here is it: http://people.freebsd.org/~__mav/hda.HBR.patch It should activate HBR mode if you try to play stream

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Alexander Motin
On 01/25/12 00:13, Mickaël Maillot wrote: 2012/1/24 Alexander Motin mailto:m...@freebsd.org>> 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 chann

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
2012/1/24 Alexander Motin > On 01/24/12 15:32, Alexander Motin wrote: > >> On 01/24/12 14:57, Mickaël Maillot wrote: >> >>> 2012/1/21 Alexander Motin mailto:m...@freebsd.org>> >>> From that description I can conclude that you are passing through >>> compressed DTS-HD and TrueHD streams to the rec

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Alexander Motin
On 01/24/12 15:32, Alexander Motin wrote: On 01/24/12 14:57, Mickaël Maillot wrote: 2012/1/21 Alexander Motin mailto:m...@freebsd.org>> 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

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Alexander Motin
On 01/24/12 14:57, Mickaël Maillot wrote: 2012/1/21 Alexander Motin mailto:m...@freebsd.org>> 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 r

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
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 w

Re: [RFT] Major snd_hda rewrite

2012-01-23 Thread Yuri Pankov
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 wo

Re: [RFT] Major snd_hda rewrite

2012-01-21 Thread Alexander Motin
On 01/21/12 18:48, Alexander Motin wrote: On 01/21/12 18:24, Dominic Fandrey wrote: On 11/01/2012 20:33, Alexander Motin wrote: I would like request for testing of my work on further HDA sound driver improvement. ... Comments and tests results are welcome! I've been testing the first version

Re: [RFT] Major snd_hda rewrite

2012-01-21 Thread Alexander Motin
On 01/21/12 18:24, Dominic Fandrey wrote: Hello, On 11/01/2012 20:33, Alexander Motin wrote: I would like request for testing of my work on further HDA sound driver improvement. ... Comments and tests results are welcome! I've been testing the first version of your patch on an HP 6510b, sinc

Re: [RFT] Major snd_hda rewrite

2012-01-21 Thread Dominic Fandrey
Hello, On 11/01/2012 20:33, Alexander Motin wrote: I would like request for testing of my work on further HDA sound driver improvement. ... Comments and tests results are welcome! I've been testing the first version of your patch on an HP 6510b, since the 12th of January. hdac0@pci0:0:27:0:

Re: [RFT] Major snd_hda rewrite

2012-01-21 Thread Alexander Motin
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

Re: [RFT] Major snd_hda rewrite

2012-01-21 Thread Alexander Motin
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 descrip

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Mickaël Maillot
2012/1/19 Alexander Motin > On 01/19/12 00:04, Mickaël Maillot wrote: > >> 2012/1/18 Alexander Motin mailto:m...@freebsd.org>> >> >> >>On 01/16/12 13:26, Mickaël Maillot wrote: >> >>it could be realy nice to have nvidia hdmi support first 2 >>channels and >>next 8 chan

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Alexander Motin
On 01/19/12 00:04, Mickaël Maillot wrote: 2012/1/18 Alexander Motin mailto:m...@freebsd.org>> On 01/16/12 13:26, Mickaël Maillot wrote: it could be realy nice to have nvidia hdmi support first 2 channels and next 8 channels. i have an ION2 platform and i'm op

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Mickaël Maillot
2012/1/18 Alexander Motin > On 01/16/12 13:26, Mickaël Maillot wrote: > >> it could be realy nice to have nvidia hdmi support first 2 channels and >> next 8 channels. >> i have an ION2 platform and i'm open to test everything. >> > > I've just committed > (http://svn.freebsd.org/**changeset/base

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Alexander Motin
On 01/16/12 13:26, Mickaël Maillot wrote: it could be realy nice to have nvidia hdmi support first 2 channels and next 8 channels. i have an ION2 platform and i'm open to test everything. I've just committed (http://svn.freebsd.org/changeset/base/230312) to head patch (http://people.freebsd.or

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Alexander Motin
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. [.

Re: [RFT] Major snd_hda rewrite

2012-01-16 Thread Mickaël Maillot
2012/1/12 Alexander Motin > 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.fr

Re: [RFT] Major snd_hda rewrite

2012-01-15 Thread Yuri Pankov
On Mon, Jan 16, 2012 at 02:08:47AM +0200, Alexander Motin wrote: > On 01/15/12 22:50, Yuri Pankov wrote: > > On Thu, Jan 12, 2012 at 05:04:04PM +0400, 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,

Re: [RFT] Major snd_hda rewrite

2012-01-15 Thread Alexander Motin
On 01/15/12 22:50, Yuri Pankov wrote: On Thu, Jan 12, 2012 at 05:04:04PM +0400, 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 t

Re: [RFT] Major snd_hda rewrite

2012-01-15 Thread Yuri Pankov
On Thu, Jan 12, 2012 at 05:04:04PM +0400, 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 furt

Re: [RFT] Major snd_hda rewrite

2012-01-15 Thread Alexander Motin
On 01/11/12 21:33, 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 bra

Re: [RFT] Major snd_hda rewrite

2012-01-15 Thread Slawa Olhovchenkov
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. Can you add (or document, if exist) functionality of recording audio playing? ___ freebsd-current

Re: [RFT] Major snd_hda rewrite

2012-01-15 Thread Andriy Gapon
on 15/01/2012 00:17 Doug Barton said the following: > On 01/14/2012 13:25, Steve Kargl wrote: >> Remove dvd insert music cd in drive, 'cdcontrol play'. The >> drive is reading the cd and 'cdcontrol status' indicates >> that it is playing. No sound. > > The way that this was explained to me (and

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 01/15/12 03:06, Jan Beich wrote: Alexander Motin writes: I would like request for testing of my work on further HDA sound driver improvement. [...] - Codec pins and GPIO signals configuration was exported via set of writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Jan Beich
Alexander Motin writes: > I would like request for testing of my work on further HDA sound > driver improvement. [...] > - Codec pins and GPIO signals configuration was exported via set of > writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger > driver reconfiguration in run-ti

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Steve Kargl
On Sun, Jan 15, 2012 at 12:31:51AM +0200, Alexander Motin wrote: > Audio from DVDs always played by software after reading if from the disk > as usual data. Audio CDs instead could be played either by the CD drive > itself via analog audio connection or by software using digital audio > extracti

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 15.01.2012 00:10, Steve Kargl wrote: On Sat, Jan 14, 2012 at 11:39:43PM +0200, Alexander Motin wrote: On 14.01.2012 23:25, Steve Kargl wrote: On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: That is probably because of $FreeBSD$ macro resolution. Here is version with presen

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Doug Barton
On 01/14/2012 13:25, Steve Kargl wrote: > Remove dvd insert music cd in drive, 'cdcontrol play'. The > drive is reading the cd and 'cdcontrol status' indicates > that it is playing. No sound. The way that this was explained to me (and I'm certainly no expert) is that in the ATA-CAM world the onl

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Steve Kargl
On Sat, Jan 14, 2012 at 11:39:43PM +0200, Alexander Motin wrote: > On 14.01.2012 23:25, Steve Kargl wrote: > >On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: > >> > >>That is probably because of $FreeBSD$ macro resolution. Here is version > >>with present value from 10-CURRENT SVN

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 14.01.2012 23:25, Steve Kargl wrote: On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: That is probably because of $FreeBSD$ macro resolution. Here is version with present value from 10-CURRENT SVN (sources from CVS or STABLE will need that patch line modified respectively) an

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Steve Kargl
On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: > > That is probably because of $FreeBSD$ macro resolution. Here is version > with present value from 10-CURRENT SVN (sources from CVS or STABLE will > need that patch line modified respectively) and some minor additional > improv

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Mickaël Maillot
2012/1/11 Alexander Motin > Hi. > > I would like request for testing of my work on further HDA sound driver > improvement. > > List of changes done this time: > - Huge old hdac driver was split into three independent pieces: HDA > controller driver (hdac), HDA CODEC driver (hdacc) and HDA sudio

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Best
On Sat Jan 14 12, Alexander Motin wrote: > On 01/14/12 15:48, Alexander Best wrote: > >On Thu Jan 12 12, Rainer Hurling wrote: > >>On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: > >>>On 01/12/12 12:52, Gary Jennejohn wrote: > On Wed, 11 Jan 2012 21:33:17 +0200 > Alexander Motin wrote:

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 01/14/12 15:48, Alexander Best wrote: On Thu Jan 12 12, Rainer Hurling wrote: On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: On 01/12/12 12:52, Gary Jennejohn wrote: On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motin wrote: I would like request for testing of my work on further HDA s

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Best
On Thu Jan 12 12, Rainer Hurling wrote: > On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: > >On 01/12/12 12:52, Gary Jennejohn wrote: > >>On Wed, 11 Jan 2012 21:33:17 +0200 > >>Alexander Motin wrote: > >>>I would like request for testing of my work on further HDA sound driver > >>>improvement.

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 14.01.2012 04:10, Michael Schnell wrote: On Thu, 12 Jan 2012, 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

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Yuri Pankov
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 fo

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Alexander Motin
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 1

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Rainer Hurling
On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: On 01/12/12 12:52, Gary Jennejohn wrote: On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motin wrote: I would like request for testing of my work on further HDA sound driver improvement. [big snip] Patch can be found here: http://people.freeb

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Yuri Pankov
On Wed, Jan 11, 2012 at 09:33:17PM +0200, Alexander Motin wrote: > Hi. > > 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

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Alexander Motin
On 01/12/12 12:52, Gary Jennejohn wrote: On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motin wrote: I would like request for testing of my work on further HDA sound driver improvement. [big snip] Patch can be found here: http://people.freebsd.org/~mav/hda.rewrite.patch Patch was generated f

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Mickaël Maillot
2012/1/11 Alexander Motin > Hi. > > I would like request for testing of my work on further HDA sound driver > improvement. > > List of changes done this time: > - Huge old hdac driver was split into three independent pieces: HDA > controller driver (hdac), HDA CODEC driver (hdacc) and HDA sudio

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Alexander Motin
On 01/12/12 12:45, Mickaël Maillot wrote: DisplayPort 8ch : does it mean that we now support 8 channel PCM over DisplayPort and HDMI ? i need this feature for DTS-HDMA and TrueHD with XBMC. I've never tried that because of quite old receiver. I just hope it may work. If you have respective har

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Gary Jennejohn
On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motin wrote: > I would like request for testing of my work on further HDA sound driver > improvement. > [big snip] > That is how it may look now in dmesg: > > hdac0: mem > 0xf7ef4000-0xf7ef7fff irq 22 at device 27.0 on pci0 > hdacc0: at cad 0 o

[RFT] Major snd_hda rewrite

2012-01-11 Thread Alexander Motin
Hi. I would like request for testing of my work on further HDA sound driver improvement. List of changes done this time: - Huge old hdac driver was split into three independent pieces: HDA controller driver (hdac), HDA CODEC driver (hdacc) and HDA sudio function driver (hdaa). All drivers a