Re: [Alsa-user] configuring ALSA driver to avoid invertion
On Tue, 3 Oct 2006, Andrew Gaydenko wrote: I use ICE1724 ALSA driver for Terratec Aureon 7.1 Space card. Almost all is fine, big thanks to developers! Nevertheless, I have noticed both default (line out) and plug:spdif devices'es outputs are inverted. Is it possible to configure additional inversion and, as a result, to get normal output signal? I'm not sure it is the the driver bug - probably, it is manufacturer's bug :-) Is not your problem related to signess? Did you tried to use 'U32_LE' format? Jaroslav - Jaroslav Kysela [EMAIL PROTECTED] Linux Kernel Sound Maintainer ALSA Project, SUSE Labs - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Jaroslav, I use (with JACK) 'hw:0,0' for analog output and 'hw:0,1' for SPDIF one. Andrew === On Thursday 05 October 2006 15:39, you wrote: === On Tue, 3 Oct 2006, Andrew Gaydenko wrote: I use ICE1724 ALSA driver for Terratec Aureon 7.1 Space card. Almost all is fine, big thanks to developers! Nevertheless, I have noticed both default (line out) and plug:spdif devices'es outputs are inverted. Is it possible to configure additional inversion and, as a result, to get normal output signal? I'm not sure it is the the driver bug - probably, it is manufacturer's bug :-) Is not your problem related to signess? Did you tried to use 'U32_LE' format? Jaroslav - Jaroslav Kysela [EMAIL PROTECTED] Linux Kernel Sound Maintainer ALSA Project, SUSE Labs - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
On Thu, 5 Oct 2006, Andrew Gaydenko wrote: Jaroslav, I use (with JACK) 'hw:0,0' for analog output and 'hw:0,1' for SPDIF one. Could you try a more lowlevel tool like aplay with a raw file? You may try the python script bellow (modify values as you want to measure level for different samples). Note that hw: devices are signed for ICE1724, so zero is in the middle of range, minimum value is 0x8000 and maximum 0x7f00. import struct import os FILE=file.raw SAMPLE=0x12345600 FORMAT=S32_LE fp = open(FILE, w+) x = struct.pack(I, SAMPLE) for i in range(0, 10): fp.write(x) fp.close() os.system(aplay -D hw:0,0 -f %s -c 2 -r 48000 %s % (FORMAT, FILE)) os.remove(FILE) Jaroslav - Jaroslav Kysela [EMAIL PROTECTED] - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Jaroslav, Have tried the script. With given sample a speaker cone moves from a listener rather toward one. As 0x12345600 hasn't 0x8000 bit set, I suggest a cone must move toward a listener. Well, to avoid any mysticism I simply measured DAC output with multimeter :-) The output is negative, of course. Andrew === On Thursday 05 October 2006 16:32, you wrote: === On Thu, 5 Oct 2006, Andrew Gaydenko wrote: Jaroslav, I use (with JACK) 'hw:0,0' for analog output and 'hw:0,1' for SPDIF one. Could you try a more lowlevel tool like aplay with a raw file? You may try the python script bellow (modify values as you want to measure level for different samples). Note that hw: devices are signed for ICE1724, so zero is in the middle of range, minimum value is 0x8000 and maximum 0x7f00. import struct import os FILE=file.raw SAMPLE=0x12345600 FORMAT=S32_LE fp = open(FILE, w+) x = struct.pack(I, SAMPLE) for i in range(0, 10): fp.write(x) fp.close() os.system(aplay -D hw:0,0 -f %s -c 2 -r 48000 %s % (FORMAT, FILE)) os.remove(FILE) Jaroslav - Jaroslav Kysela [EMAIL PROTECTED] - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Sorry, have fogot to mention I have checked both hw:0,0 and hw:0,1 devices with the same result (using non-inverting external DAC at last case). Andrew -- Forwarded Message -- Jaroslav, Have tried the script. With given sample a speaker cone moves from a listener rather toward one. As 0x12345600 hasn't 0x8000 bit set, I suggest a cone must move toward a listener. Well, to avoid any mysticism I simply measured DAC output with multimeter :-) The output is negative, of course. Andrew - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
On Thu, 5 Oct 2006, Andrew Gaydenko wrote: Jaroslav, Have tried the script. With given sample a speaker cone moves from a listener rather toward one. As 0x12345600 hasn't 0x8000 bit set, I suggest a cone must move toward a listener. Well, to avoid any mysticism I simply measured DAC output with multimeter :-) The output is negative, of course. Okay, what about route plugin: pcm.routetest { type route slave.pcm hw:0,0; ttable { 0 { 0 -1.0 } 1 { 1 -1.0 } } } Replace -D hw:0,0 with -D routetest. Jaroslav - Jaroslav Kysela [EMAIL PROTECTED] Linux Kernel Sound Maintainer ALSA Project, SUSE Labs - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Jaroslav, Inversion works. BTW, I have tried 'inv' LADSPA plugin (as ALSA device) - it works too. (Is it sufficient to perform futher tests with hw:0,1 only?) Andrew === On Thursday 05 October 2006 17:58, you wrote: === Okay, what about route plugin: pcm.routetest { type route slave.pcm hw:0,0; ttable { 0 { 0 -1.0 } 1 { 1 -1.0 } } } Replace -D hw:0,0 with -D routetest. Jaroslav - Jaroslav Kysela [EMAIL PROTECTED] Linux Kernel Sound Maintainer ALSA Project, SUSE Labs - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
On 03/10/06, Andrew Gaydenko [EMAIL PROTECTED] wrote: I use ICE1724 ALSA driver for Terratec Aureon 7.1 Space card. Almost all is fine, big thanks to developers! Nevertheless, I have noticed both default (line out) and plug:spdif devices'es outputs are inverted. Is it possible to configure additional inversion and, as a result, to get normal output signal? I'm not sure it is the the driver bug - probably, it is manufacturer's bug :-) Andrew This should be fixable in the driver. Most DACs have options for inverting the output signal. We just need the output from lspci -vnn | grep 0401 And also which DAC is involved. - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
James, Thanks! I'm happy you have found a minute to devote to the problem :-) 'lspci -vnn | grep 0401' output is: 02:02.0 0401: 1412:1724 (rev 01) As for a DAC in use, I didn't understand the question reason: the problem exists for *both* line and spdif outputs. At any case, I must answer :-) Card's DAC is a part of Wolfson's WM8770 codec, an external DAC is self-maded and based on AD1853 with non-inverting analog part. Andrew === On Wednesday 04 October 2006 20:29, you wrote: === This should be fixable in the driver. Most DACs have options for inverting the output signal. We just need the output from lspci -vnn | grep 0401 And also which DAC is involved. - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
On Tue, 2006-10-03 at 06:41 +0400, Andrew Gaydenko wrote: Sergei, You are right, as binary signal value increases analog output value decreases. As for reference, I'm an audio DIY-er, almost all signal chain is made by my hand :-) LADSPA is a more high level. ALSA driver configuring is much more appreciated. I don't think it's possible without a LADSPA plugin. ALSA driver does not touch the audio samples. It just sets up DMA between the card and the PC. Andrew === On Tuesday 03 October 2006 06:29, you wrote: === But what do you use as reference ? Or, you mean, as binary signal value increases analog output value decreases ? If so, AFAIR there is LADSPA inverting plugin, or it can be easily written. But, anyway, why do you care ? That is, are there analog outputs which are not inverted, and you need to use the with line out, so you need all of them to be in the same polarity ? --Sergei. - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] configuring ALSA driver to avoid invertion
I use ICE1724 ALSA driver for Terratec Aureon 7.1 Space card. Almost all is fine, big thanks to developers! Nevertheless, I have noticed both default (line out) and plug:spdif devices'es outputs are inverted. Is it possible to configure additional inversion and, as a result, to get normal output signal? I'm not sure it is the the driver bug - probably, it is manufacturer's bug :-) Andrew - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
On Tue, 3 Oct 2006, Andrew Gaydenko wrote: I use ICE1724 ALSA driver for Terratec Aureon 7.1 Space card. Almost all is fine, big thanks to developers! Nevertheless, I have noticed both default (line out) and plug:spdif devices'es outputs are inverted. Is it possible to configure additional inversion and, as a result, to get normal output signal? What do you mean by inverted? I'm not sure it is the the driver bug - probably, it is manufacturer's bug :-) Andrew - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user -- William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 PhysicsAstronomy | Advanced Research | Fax: +1(604)822-5324 UBC, Vancouver,BC | Program in Cosmology | [EMAIL PROTECTED] Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/ - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Bill, Inverted means ... inverted :-) In another words, signal is multiplied by -1. Andrew === On Tuesday 03 October 2006 06:12, you wrote: === What do you mean by inverted? - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
On Tue, 3 Oct 2006 06:22:17 +0400 Andrew Gaydenko [EMAIL PROTECTED] wrote: Bill, Inverted means ... inverted :-) In another words, signal is multiplied by -1. Andrew === On Tuesday 03 October 2006 06:12, you wrote: === What do you mean by inverted? - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user But what do you use as reference ? Or, you mean, as binary signal value increases analog output value decreases ? If so, AFAIR there is LADSPA inverting plugin, or it can be easily written. But, anyway, why do you care ? That is, are there analog outputs which are not inverted, and you need to use the with line out, so you need all of them to be in the same polarity ? --Sergei. -- Visit my http://appsfromscratch.berlios.de/ open source project. - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Bill, I'll be happy to avoid an audiophile dispute :-) The problem is technical, I use a sound card for measurement purposes. Andrew === On Tuesday 03 October 2006 06:23, you wrote: === But this is inaudible, or you could just wire your speakers backwards. How do you know that the signal is inverted? - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] configuring ALSA driver to avoid invertion
Sergei, You are right, as binary signal value increases analog output value decreases. As for reference, I'm an audio DIY-er, almost all signal chain is made by my hand :-) LADSPA is a more high level. ALSA driver configuring is much more appreciated. Andrew === On Tuesday 03 October 2006 06:29, you wrote: === But what do you use as reference ? Or, you mean, as binary signal value increases analog output value decreases ? If so, AFAIR there is LADSPA inverting plugin, or it can be easily written. But, anyway, why do you care ? That is, are there analog outputs which are not inverted, and you need to use the with line out, so you need all of them to be in the same polarity ? --Sergei. - 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=join.phpp=sourceforgeCID=DEVDEV ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user