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 11, 2012 at

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

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 m...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

2012-01-28 Thread Mickaël Maillot
2012/1/28 Alexander Motin m...@freebsd.org You are right. Fixed: http://svn.freebsd.org/**changeset/base/230641http://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 13:39, Mickaël Maillot wrote: 2012/1/28 Alexander Motin m...@freebsd.org mailto:m...@freebsd.org You are right. Fixed: http://svn.freebsd.org/__changeset/base/230641 http://svn.freebsd.org/changeset/base/230641 And i can play DTS-HDMA en Dolby TrueHD ! thanks for all your

Re: [RFT] Major snd_hda rewrite

2012-01-27 Thread Mickaël Maillot
2012/1/25 Alexander Motin 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 should be better:

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 m...@freebsd.org 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.

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
2012/1/21 Alexander Motin 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 receiver doesn't receives all data. If I understand right,

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 m...@freebsd.org 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

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 m...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

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

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 m...@freebsd.org mailto:m...@freebsd.org Here is it: http://people.freebsd.org/~__mav/hda.HBR.patch http://people.freebsd.org/~mav/hda.HBR.patch It should activate HBR mode if you try to play stream with AC3

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 m...@freebsd.org mailto:m...@freebsd.org Here is it: http://people.freebsd.org/~__mav/hda.HBR.patch http://people.freebsd.org/~mav/hda.HBR.patch It should activate HBR mode if you try

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
2012/1/24 Alexander Motin m...@freebsd.org On 01/25/12 00:33, Alexander Motin wrote: On 01/25/12 00:13, Mickaël Maillot wrote: 2012/1/24 Alexander Motin m...@freebsd.org mailto:m...@freebsd.org Here is it:

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 m...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

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

Re: [RFT] Major snd_hda rewrite

2012-01-24 Thread Mickaël Maillot
2012/1/25 Alexander Motin 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 there is some limitation. You may grep kernel for AFMT_PASSTHROUGH and find two XXX force

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 would like

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

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

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.

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,

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

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-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

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Mickaël Maillot
2012/1/18 Alexander Motin 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 open to test everything. I've just committed

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 m...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

2012-01-18 Thread Mickaël Maillot
2012/1/19 Alexander Motin m...@freebsd.org On 01/19/12 00:04, Mickaël Maillot wrote: 2012/1/18 Alexander Motin m...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

2012-01-16 Thread Mickaël Maillot
2012/1/12 Alexander Motin m...@freebsd.org 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:

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 I'm

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? ___

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

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 further HDA

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

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, Jan 11, 2012

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-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 Motinm...@freebsd.org 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 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 Motinm...@freebsd.org wrote: I would like request for testing of my work

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 Motinm...@freebsd.org wrote: I

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Mickaël Maillot
2012/1/11 Alexander Motin m...@freebsd.org 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

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

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)

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 (sources

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 only

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

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 extraction

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Jan Beich
Alexander Motin m...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 01/15/12 03:06, Jan Beich wrote: Alexander Motinm...@freebsd.org 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

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Gary Jennejohn
On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motin m...@freebsd.org 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: Intel 5 Series/3400 Series HDA Controller mem 0xf7ef4000-0xf7ef7fff

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

Re: [RFT] Major snd_hda rewrite

2012-01-12 Thread Mickaël Maillot
2012/1/11 Alexander Motin m...@freebsd.org 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

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 Motinm...@freebsd.org 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

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 apply

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 Motinm...@freebsd.org wrote: I would like request for testing of my work on further HDA sound driver improvement. [big snip] Patch can be found here:

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

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 found here:

[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