Re: [Alsa-devel] Mono to stereo ?

2003-03-28 Thread Giuliano Pochini

On 28-Mar-2003 Paul Davis wrote:
one channel only.
[...]

...but, if you are doing mono playback, your sound driver has to setup
your soundcard to playback on both channels the same mono channel. The
Vortex
driver (still not in the main branch) for example splits the mono signal
on its internal
mixer into 2 identical signals which are feed one into each CODEC channels.

 that's a driver author's design decision. if the hw PCM device is
 opened with a single channel, it would be equally valid to play on one
 channel only. if the h/w can't handle that, it should not
 advertise itself to be capable of mono operation. IMHO.

I choosed to send the sound to one channel only, so the apps can
use all 8 mono channels.
Since most cards can do mono to stereo in hardware, I would be nice to
add a capability flag for that. Using that features you halve memory
usage for buffers and irq frequency.


Bye.



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] ALSA OSS MIDI emulation: input problems

2003-03-28 Thread Takashi Iwai
At Fri, 28 Mar 2003 08:58:47 +1030 (CST),
Jonathan Woithe wrote:
 
 Ok.  Last night I investigated ev-time.tick.  Admittedly this was under
 0.90rc8b.  It transpires that ev-time.tick is *always* zero when the event
 is a NOTEON/NOTEOF, and therefore gives no timing information what-so-ever. 
 Thus the above patch does *not* fix the problem, at least under 0.90rc8b.

0.9.0rc8b is way too old.  there have been changes for sequencer oss
emulation since that.  please try the cvs version.


Takashi


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] Mono to stereo ?

2003-03-28 Thread Takashi Iwai
At Thu, 27 Mar 2003 23:14:22 -0400,
Manuel Jander wrote:
 
 Hi,
 
 Paul Davis wrote:
 
 When an application opens a mono substream, the sound has to
 be sent to one channel only or must the low level driver
 transparently convert it to stereo ?
 
 
 
 one channel only.
 
 in ALSA, low level drivers do not do any kind of format
 conversion. that is accomplished (if necessary) by code running in
 user-space, typically part of alsa-lib. the low level driver simply
 advertises the capabilities of the hardware, provides ways to use
 those capabilities, and lets the midlevel code and alsa-lib do the rest.
   
 
 
 ...but, if you are doing mono playback, your sound driver has to setup
 your soundcard to playback on both channels the same mono channel. The 
 Vortex
 driver (still not in the main branch) for example splits the mono signal 
 on its internal
 mixer into 2 identical signals which are feed one into each CODEC channels.

no, please don't do that.
in the ALSA, instead of the lowlevel driver, alsa-lib (and
oss-emulation module) will do this job.

the driver is supposed to inform exactly what it supports.
in this case, both channels_min and channels_max will be 2.
the difference of configuration will be absorbed by the plug-in of 
alsa-lib and oss-emulation module.


ciao,

Takashi


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] audigy2 strange behaviour

2003-03-28 Thread alsa

Hi!


I've got that audigy2.
after Alsa installation, launching mixer etc. I've get no sound from the
card (first output). when switching  Audigy Analog/Digital Output Jack
card produces sound artifacts from the sound (plauing wav file with
aplay). just in the moment of the switching. other time it is silent.
windoze works fine with it.
kernel 2.4.20
any ideas?


04:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
04:01.1 Input device controller: Creative Labs SB Audigy MIDI/Game port
(rev 04)04:01.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire
Port (rev 04)

  Bus  4, device   1, function  0:
Multimedia audio controller: Creative Labs SB Audigy (rev 4).
  IRQ 17.
  Master Capable.  Latency=32.  Min Gnt=2.Max Lat=20.
  I/O at 0xa000 [0xa03f].
  Bus  4, device   1, function  1:
Input device controller: Creative Labs SB Audigy MIDI/Game port (rev
4).
  Master Capable.  Latency=32.
  I/O at 0xa400 [0xa407].
  Bus  4, device   1, function  2:
FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 4).
  IRQ 18.
  Master Capable.  Latency=32.  Min Gnt=2.Max Lat=4.
  Non-prefetchable 32 bit memory at 0xec104000 [0xec1047ff].
  Non-prefetchable 32 bit memory at 0xec10 [0xec103fff].



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] audigy2 strange behaviour

2003-03-28 Thread p z oooo
Try this:
Find in file
alsa-driver/alsa-kernel/pci/emu10k1/emufx.c
this

/* analog speakers */
//A_PUT_STEREO_OUTPUT(A_EXTOUT_AFRONT_L, A_EXTOUT_AFRONT_R, 
playback + SND_EMU10K1_PLAYBACK_CHANNELS);
A_PUT_STEREO_OUTPUT(A_EXTOUT_AC97_L, A_EXTOUT_AC97_R, 
playback + SND_EMU10K1_PLAYBACK_CHANNELS); 


and change to


/* analog speakers */
A_PUT_STEREO_OUTPUT(A_EXTOUT_AFRONT_L, A_EXTOUT_AFRONT_R, 
playback + SND_EMU10K1_PLAYBACK_CHANNELS);
//A_PUT_STEREO_OUTPUT(A_EXTOUT_AC97_L, A_EXTOUT_AC97_R, 
playback + SND_EMU10K1_PLAYBACK_CHANNELS); 

Peter Zubaj





http://www.pobox.sk/ - najvacsi slovensky freemail





---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] Mono to stereo ?

2003-03-28 Thread Jeff Muizelaar
Takashi Iwai wrote:

At Thu, 27 Mar 2003 23:14:22 -0400,
Manuel Jander wrote:
 

...but, if you are doing mono playback, your sound driver has to setup
your soundcard to playback on both channels the same mono channel. The 
Vortex
driver (still not in the main branch) for example splits the mono signal 
on its internal
mixer into 2 identical signals which are feed one into each CODEC channels.
   

no, please don't do that.
in the ALSA, instead of the lowlevel driver, alsa-lib (and
oss-emulation module) will do this job.
In this case the card (not driver) is spliting the mono signal and 
sending it to both right and left channels of the codec. Thus 
channels_min should still be 1 because the card does actually support a 
single channel

the driver is supposed to inform exactly what it supports.
in this case, both channels_min and channels_max will be 2.
the difference of configuration will be absorbed by the plug-in of 
alsa-lib and oss-emulation module.
 

-Jeff



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] PCI latency

2003-03-28 Thread Giuliano Pochini

The documentation of my card says I should set pci latency to 0xC0. What
is that latency ?  How do I change it ?


Bye.




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] PCI latency

2003-03-28 Thread Jan \Evil Twin\ Depner
I've got some documentation on that on my web page -
http://myweb.cableone.net/eviltwin69/ALSA_JACK_ARDOUR.html.

0xC0 is 192 decimal.  You can go up to 248.

Jan


On Fri, 2003-03-28 at 17:08, Giuliano Pochini wrote:
 
 The documentation of my card says I should set pci latency to 0xC0. What
 is that latency ?  How do I change it ?
 
 
 Bye.
 
 
 
 
 ---
 This SF.net email is sponsored by:
 The Definitive IT and Networking Event. Be There!
 NetWorld+Interop Las Vegas 2003 -- Register today!
 http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
 ___
 Alsa-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/alsa-devel




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] problems with Maestro3 / NEC LM800J/7

2003-03-28 Thread Fernando Pablo Lopez-Lezcano
Hi gurus... I'm having problems getting sound out of this laptop:
  NEC LM800J/7
I'm using 2.4.20-pre6 + current alsa cvs (post 0.9.2)... After
installing everything is fine, drivers load perfectly, I unmute all
controls, raise all volumes and aplay seems happy playing a soundfile,
except I get no sound (from the speakers or the headphone connection). I
tried tweaking all controls in gamix with no success...

Here is the lspci -v -v for the audio controller:

00:04.0 Multimedia audio controller: ESS Technology ES1988 Allegro-1 (rev 12)
Subsystem: NEC Corporation: Unknown device 80f1
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- 
MAbort- SERR- PERR-
Latency: 64 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at 1400 [size=256]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA 
PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Any suggestions? There must be _one_ pin that is not being turned on :-)
Anything I could post that would enable debugging this?
Thanks!
-- Fernando




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] problems with Maestro3 / NEC LM800J/7

2003-03-28 Thread Fernando Pablo Lopez-Lezcano
 Hi gurus... I'm having problems getting sound out of this laptop:
   NEC LM800J/7
 I'm using 2.4.20-pre6 + current alsa cvs (post 0.9.2)... After
 installing everything is fine, drivers load perfectly, I unmute all
 controls, raise all volumes and aplay seems happy playing a soundfile,
 except I get no sound (from the speakers or the headphone connection). I
 tried tweaking all controls in gamix with no success...

For future reference: I started playing with the module options and got
it to work when loading with:

  amp_gpio=3

-- Fernando




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] alsa-lib-0.9.2: storage size of `vec' isn't known

2003-03-28 Thread Michael Mauch
Hi,

with kernel 2.4.21-pre5, I get:

source='socket.c' object='socket.lo' libtool=yes \
depfile='.deps/socket.Plo' tmpdepfile='.deps/socket.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include 
-I../include-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -c -o socket.lo `test -f socket.c 
|| echo './'`socket.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_FILE_OFFSET_BITS=64 
-D_GNU_SOURCE -c socket.c -Wp,-MD,.deps/socket.TPlo  -fPIC -DPIC -o socket.lo
socket.c: In function `snd_send_fd':
socket.c:45: storage size of `vec' isn't known
socket.c: In function `snd_receive_fd':
socket.c:78: storage size of `vec' isn't known
make[2]: *** [socket.lo] Error 1

When I include sys/uio.h, it compiles. I don't know whether this is the
right place for this include file, though.

Regards...
Michael

--- src/socket.c.orig   Tue Mar 18 19:03:24 2003
+++ src/socket.cSat Mar 29 02:14:58 2003
@@ -32,6 +32,7 @@
 #include string.h
 #include sys/socket.h
 #include sys/un.h
+#include sys/uio.h
 #include local.h
 
 #ifndef DOC_HIDDEN


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] Fwd: via82xx problem

2003-03-28 Thread Patrick Shirkey
This was submitted to the notes for via82xx.

Felix Braun
Saturday, 29 March 2003
I have a VIA VT8233 (on a ASUS A7V8X motherboard). The last version that
produces sound output is alsa 0.9rc_6. All later version remain silent.
I've not been able to get sound recording to work at all.
--
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide

Being on stage with the band in front of crowds shouting, Get off! No! 
We want normal music!, I think that was more like acting than anything 
I've ever done.

Goldie, 8 Nov, 2002
The Scotsman


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] Mono to stereo ?

2003-03-28 Thread Jeff Muizelaar
Takashi Iwai wrote:

At Fri, 28 Mar 2003 11:21:04 -0500,
Jeff Muizelaar wrote:
 

Takashi Iwai wrote:

   

At Thu, 27 Mar 2003 23:14:22 -0400,
Manuel Jander wrote:
 

...but, if you are doing mono playback, your sound driver has to setup
your soundcard to playback on both channels the same mono channel. The 
Vortex
driver (still not in the main branch) for example splits the mono signal 
on its internal

^^ By this Manuel means the mixer internal to the 
card not internal to the driver.

mixer into 2 identical signals which are feed one into each CODEC channels.
  

   

no, please don't do that.
in the ALSA, instead of the lowlevel driver, alsa-lib (and
oss-emulation module) will do this job.
 

In this case the card (not driver) is spliting the mono signal and 
sending it to both right and left channels of the codec. Thus 
channels_min should still be 1 because the card does actually support a 
single channel
   

hmm, which driver do you mean?  from the above context, i read that
the driver needs to split the signals by itself...
 

The vortex driver. Yeah rereading it, i understand how you interpreted it.

-Jeff



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel