From: "Michal Piotrowski" Subject: Re: mm snapshot broken-out-2007-03-05-02-22.tar.gz uploaded Date: Thu, 8 Mar 2007 16:46:25 +0100 Message-ID: <6bffcb0e0703080746x5edee450l8ef86960d5c7b04@mail.gmail.com> References: <200703051024.l25AOIF3015951@shell0.pdx.osdl.net> <45EC2DEB.1050108@googlemail.com> <45EEA3C4.7000501@googlemail.com> <20070307104746.f08a2e84.akpm@linux-foundation.org> <6bffcb0e0703071141j42309702w793e4a76b1b23bfa@mail.gmail.com> <20070307115024.756c848f.akpm@linux-foundation.org> <45EF3B2C.9060801@googlemail.com> <45F02EE2.6040606@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Return-path: Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by alsa0.perex.cz (Postfix) with ESMTP id E8C6E24383 for ; Thu, 8 Mar 2007 16:46:33 +0100 (CET) Received: by ug-out-1314.google.com with SMTP id j3so946102ugf for ; Thu, 08 Mar 2007 07:46:32 -0800 (PST) In-Reply-To: <45F02EE2.6040606@googlemail.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Michal Piotrowski , linux-kernel@vger.kernel.org, Andrew Morton , Adrian Bunk , Linus Torvalds , Jaroslav Kysela List-Id: alsa-devel@alsa-project.org On 08/03/07, Michal Piotrowski wrote: > Takashi Iwai napisa=B3(a): > > At Wed, 07 Mar 2007 23:22:36 +0100, > > Michal Piotrowski wrote: > >> Hi Takashi, > >> > >> Takashi Iwai napisa=B3(a): > >>> At Wed, 7 Mar 2007 11:50:24 -0800, > >>> Andrew Morton wrote: > >>>> On Wed, 7 Mar 2007 20:41:30 +0100 "Michal Piotrowski" wrote: > >>>> > >>>>>>> 831466f4ad2b5fe23dff77edbe6a7c244435e973 is first bad commit > >>>>>>> commit 831466f4ad2b5fe23dff77edbe6a7c244435e973 > >>>>>>> Author: Randy Cushman > >>>>>>> Date: Tue Dec 19 18:42:16 2006 +0100 > >>>>>>> > >>>>>>> [ALSA] ac97 - fix microphone and line_in selection logic > >>>>>>> > >>>>>>> This patch fixes the Microphone and LINE_IN select logic for > >>>>>>> Analog Devices surround codecs with shared jacks. The existi= ng > >>>>>>> code can never utilize the shared jacks for Microphone and LI= NE_IN > >>>>>>> due to the reversed jack selection logic. The patched code > >>>>>>> correctly selects the shared jack for input if the 'Channel M= ode' > >>>>>>> selector does not specify that the jack is to be used for out= put. > >>>>>>> Specifically, in '2ch' mode the Center/LFE jack is used for > >>>>>>> microphone input and the Surround jack is used for LINE_IN, > >>>>>>> in '4ch' mode the Center/LFE jack is used for microphone input > >>>>>>> and the Surround jack is used for output, and in '6ch' mode > >>>>>>> both jacks are used for output. > >>>>>>> > >>>>>>> Signed-off-by: Randy Cushman > >>>>>>> Signed-off-by: Takashi Iwai > >>>>>>> Signed-off-by: Jaroslav Kysela > >>>>>>> > >>>>>> Is 2.6.21-rc3 similarly broken? > >>>>> Yes. > >>>>> > >>>> OK. Can you please confirm that applying the below fixes 2.6.21-rc3? > >>>> > >>>> If so, I'll queue it up for application in a week or two if there is= no > >>>> progress on this. > >>> [sorry for the late interrupt - I'm just back from a vacation] > >>> > >>> Could you postpone reverting for a while? > >>> I guess this possible regression is limited only to a certain type of > >>> ac97 codec chip. The patch applied there was a fix for many codec > >>> chips. > >>> > >>> Which codec chip are you using specifically? Please check > >>> /proc/asound/card0/codec97#0/* file(s). > >> 0-0/0: Analog Devices AD1985 > > > > OK, that's good to know. > > > >> control.43 { > >> comment.access 'read write' > >> comment.type BOOLEAN > >> comment.count 1 > >> iface MIXER > >> name 'Spread Front to Surround and Center/LFE' > >> value true > >> } > > > > So, you're playing two-channel samples and get no output from surround > > and CLFE? > > Yes. > > > Or, does it happen if you play a real 5.1 channel file? > > (for example, try speaker-test -c6) > > It doesn't work for me on both kernels. > > > > > Also, it'd be helpful if you compare > > /proc/asound/card0/codec97#0/ac97#0-0+regs file before and after the > > patch. This reveals which register bits differ actually. > > a2.txt is form 2.6.21-rc3 witchout 831466f4ad2b5fe23dff77edbe6a7c244435e9= 73 > > diff -uprN a2.txt /proc/asound/card0/codec97#0/ac97#0-0+regs > --- a2.txt 2007-03-08 16:36:47.000000000 +0100 > +++ /proc/asound/card0/codec97#0/ac97#0-0+regs 2007-03-08 16:36:49.44708= 3597 +0100 > @@ -56,8 +56,8 @@ > 0:6e =3D 0000 > 0:70 =3D 0000 > 0:72 =3D 0004 > -0:74 =3D 1001 > -0:76 =3D 64a4 > +0:74 =3D 1201 > +0:76 =3D 7ca4 > 0:78 =3D 000c > 0:7a =3D 0000 > 0:7c =3D 4144 > > > 2.6.21-rc3 witchout 831466f4ad2b5fe23dff77edbe6a7c244435e973 > > speaker-test -c6 > > speaker-test 1.0.13 > > Playback device is default > Stream parameters are 48000Hz, S16_LE, 6 channels > Using 16 octaves of pink noise > Rate set to 48000Hz (requested 48000Hz) > Buffer size range from 2048 to 16384 > Period size range from 1024 to 1024 > Using max buffer size 16384 > Periods =3D 4 > was set period_size =3D 1024 > was set buffer_size =3D 16384 > 0 - Front Left > 4 - Center > 1 - Front Right > 3 - Rear Right > 2 - Rear Left > 5 - LFE > > 0, 1 works > 4, 3, 2, 5 doesn't work > > /proc/asound/card0/codec97#0/ac97#0-0 > > 0-0/0: Analog Devices AD1985 > > PCI Subsys Vendor: 0x1043 > PCI Subsys Device: 0x80f3 > > Revision : 0x03 > Compat. Class : 0x00 > Subsys. Vendor ID: 0xffff > Subsys. ID : 0xffff > > Capabilities : -headphone out- > DAC resolution : 20-bit > ADC resolution : 16-bit > 3D enhancement : No 3D Stereo Enhancement > > Current setup > Mic gain : +20dB [+20dB] > POP path : pre 3D > Sim. stereo : off > 3D enhancement : off > Loudness : off > Mono output : MIX > Mic select : Mic1 > ADC/DAC loopback : off > Double rate slots: 10/11 > Extended ID : codec=3D0 rev=3D0 AMAP LDAC SDAC CDAC DSA=3D0 SPDIF DR= A VRA > Extended status : SPCV LDAC SDAC CDAC SPDIF=3D10/11 VRA > PCM front DAC : 48000Hz > PCM Surr DAC : 48000Hz > PCM LFE DAC : 48000Hz > PCM ADC : 48000Hz > SPDIF Control : Consumer PCM Category=3D0x2 Generation=3D1 Rate=3D48kHz > > Gain Inverted Buffer delay Location > Master Out : 0.0 dBV - 16/fs Rear I/O Panel > AUX Out : 0.0 dBV - 16/fs Rear I/O Panel > Center/LFE Out : 0.0 dBV - 16/fs Rear I/O Panel > Mic 1 : 0.0 dBV - 16/fs Rear I/O Panel > Mic 2 : 0.0 dBV - 16/fs Rear I/O Panel > Line In : 0.0 dBV - 16/fs Rear I/O Panel > > > > AD18XX configuration > Unchained : 0x1000,0x0000,0x0000 > Chained : 0x0000,0x0000,0x0000 > > > /proc/asound/card0/codec97#0/ac97#0-0+regs > > 0:00 =3D 0090 > 0:02 =3D 0303 > 0:04 =3D 0303 > 0:06 =3D 0003 > 0:08 =3D 0000 > 0:0a =3D 801e > 0:0c =3D 0002 > 0:0e =3D 0042 > 0:10 =3D 9f9f > 0:12 =3D 0303 > 0:14 =3D 0000 > 0:16 =3D 0101 > 0:18 =3D 0303 > 0:1a =3D 0101 > 0:1c =3D 0000 > 0:1e =3D 0000 > 0:20 =3D 0000 > 0:22 =3D 0000 > 0:24 =3D 0000 > 0:26 =3D 000f > 0:28 =3D 03c7 > 0:2a =3D 05f1 > 0:2c =3D bb80 > 0:2e =3D bb80 > 0:30 =3D bb80 > 0:32 =3D bb80 > 0:34 =3D 0000 > 0:36 =3D 9f03 > 0:38 =3D 0303 > 0:3a =3D 2824 > 0:3c =3D 0000 > 0:3e =3D 0000 > 0:40 =3D 0000 > 0:42 =3D 0000 > 0:44 =3D 0000 > 0:46 =3D 0000 > 0:48 =3D 0000 > 0:4a =3D 0000 > 0:4c =3D 0000 > 0:4e =3D 0000 > 0:50 =3D 0000 > 0:52 =3D 0000 > 0:54 =3D 0000 > 0:56 =3D 0000 > 0:58 =3D 0000 > 0:5a =3D 0000 > 0:5c =3D 0000 > 0:5e =3D 0000 > 0:60 =3D 8080 > 0:62 =3D 0000 > 0:64 =3D 0000 > 0:66 =3D 0000 > 0:68 =3D 0000 > 0:6a =3D 0000 > 0:6c =3D 0000 > 0:6e =3D 0000 > 0:70 =3D 0000 > 0:72 =3D 0004 > 0:74 =3D 1001 > 0:76 =3D 64a4 > 0:78 =3D 000c > 0:7a =3D 0000 > 0:7c =3D 4144 > 0:7e =3D 5375 > > 2.6.21-rc3 > > speaker-test -c6 > > speaker-test 1.0.13 > > Playback device is default > Stream parameters are 48000Hz, S16_LE, 6 channels > Using 16 octaves of pink noise > Rate set to 48000Hz (requested 48000Hz) > Buffer size range from 2048 to 16384 > Period size range from 1024 to 1024 > Using max buffer size 16384 > Periods =3D 4 > was set period_size =3D 1024 > was set buffer_size =3D 16384 > 0 - Front Left > 4 - Center > 1 - Front Right > 3 - Rear Right > 2 - Rear Left > 5 - LFE > > 0, 1 works > 4, 3, 2, 5 doesn't work > > /proc/asound/card0/codec97#0/ac97#0-0 > > 0-0/0: Analog Devices AD1985 > > PCI Subsys Vendor: 0x1043 > PCI Subsys Device: 0x80f3 > > Revision : 0x03 > Compat. Class : 0x00 > Subsys. Vendor ID: 0xffff > Subsys. ID : 0xffff > > Capabilities : -headphone out- > DAC resolution : 20-bit > ADC resolution : 16-bit > 3D enhancement : No 3D Stereo Enhancement > > Current setup > Mic gain : +20dB [+20dB] > POP path : pre 3D > Sim. stereo : off > 3D enhancement : off > Loudness : off > Mono output : MIX > Mic select : Mic1 > ADC/DAC loopback : off > Double rate slots: 10/11 > Extended ID : codec=3D0 rev=3D0 AMAP LDAC SDAC CDAC DSA=3D0 SPDIF DR= A VRA > Extended status : SPCV LDAC SDAC CDAC SPDIF=3D10/11 VRA > PCM front DAC : 48000Hz > PCM Surr DAC : 48000Hz > PCM LFE DAC : 48000Hz > PCM ADC : 48000Hz > SPDIF Control : Consumer PCM Category=3D0x2 Generation=3D1 Rate=3D48kHz > > Gain Inverted Buffer delay Location > Master Out : 0.0 dBV - 16/fs Rear I/O Panel > AUX Out : 0.0 dBV - 16/fs Rear I/O Panel > Center/LFE Out : 0.0 dBV - 16/fs Rear I/O Panel > Mic 1 : 0.0 dBV - 16/fs Rear I/O Panel > Mic 2 : 0.0 dBV - 16/fs Rear I/O Panel > Line In : 0.0 dBV - 16/fs Rear I/O Panel > > > > AD18XX configuration > Unchained : 0x1000,0x0000,0x0000 > Chained : 0x0000,0x0000,0x0000 > > > /proc/asound/card0/codec97#0/ac97#0-0+regs > > 0:00 =3D 0090 > 0:02 =3D 0303 > 0:04 =3D 0303 > 0:06 =3D 0003 > 0:08 =3D 0000 > 0:0a =3D 801e > 0:0c =3D 0002 > 0:0e =3D 0042 > 0:10 =3D 9f9f > 0:12 =3D 0303 > 0:14 =3D 0000 > 0:16 =3D 0101 > 0:18 =3D 0303 > 0:1a =3D 0101 > 0:1c =3D 0000 > 0:1e =3D 0000 > 0:20 =3D 0000 > 0:22 =3D 0000 > 0:24 =3D 0000 > 0:26 =3D 000f > 0:28 =3D 03c7 > 0:2a =3D 05f1 > 0:2c =3D bb80 > 0:2e =3D bb80 > 0:30 =3D bb80 > 0:32 =3D bb80 > 0:34 =3D 0000 > 0:36 =3D 9f03 > 0:38 =3D 0303 > 0:3a =3D 2824 > 0:3c =3D 0000 > 0:3e =3D 0000 > 0:40 =3D 0000 > 0:42 =3D 0000 > 0:44 =3D 0000 > 0:46 =3D 0000 > 0:48 =3D 0000 > 0:4a =3D 0000 > 0:4c =3D 0000 > 0:4e =3D 0000 > 0:50 =3D 0000 > 0:52 =3D 0000 > 0:54 =3D 0000 > 0:56 =3D 0000 > 0:58 =3D 0000 > 0:5a =3D 0000 > 0:5c =3D 0000 > 0:5e =3D 0000 > 0:60 =3D 8080 > 0:62 =3D 0000 > 0:64 =3D 0000 > 0:66 =3D 0000 > 0:68 =3D 0000 > 0:6a =3D 0000 > 0:6c =3D 0000 > 0:6e =3D 0000 > 0:70 =3D 0000 > 0:72 =3D 0004 > 0:74 =3D 1201 > 0:76 =3D 7ca4 > 0:78 =3D 000c > 0:7a =3D 0000 > 0:7c =3D 4144 > 0:7e =3D 5375 > > > > > > > > thanks, > > > > Takashi > > > s/witchout/without ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDEV