Re: [Alsa-devel] Playing Surround Sound with Alsa Drivers

2003-01-07 Thread Takashi Iwai
At Thu, 02 Jan 2003 10:40:56 +0100,
Benny Sjostrand wrote:
> 
> >
> >
> >Actually the drive that I use to send sound to the rears speakers is
> >"h:0,1" not "h:1,0". That's because the rear speakers controller is just
> >a subdevice of my first and only sound card. That works with no problems
> >sending sound only to the rear speakers but not to the four speakers.
> >I'm looking for a way to create surround sound using the four speakers.
> >There must be a way. Help please!
> >
> >  
> >
> Oops! sorry for my misstake, I mean hw:0,0 -> front speakers and 
> hw:0,1-> rear speakers (assuming that you got only one soundcard 
> installed). In such way it's possible to control each speaker 
> independently, programs like xine can take advantage of this.
> 
> Then, whatever you want to do is just a software issue. It's not 
> possible to send the same output to front and rear just via a simple 
> "aplay ...", maybe it's possible to do magic via the .asoundrc stuff 
> crearting a virtual device, but I dont know how to do that.

the latest alsa-lib cvs tree already includes the definition for
cs46xx.  you'll be able to play a 4-channel wav file like

% aplay -Dsurround40 4channels.wav


Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] Re: RME96 driver patch

2003-01-07 Thread Paul Davis
>Let's suppose this playing is going on and a new fresh input arrives on my
>input channel. So I would think the hardware will run in master mode and the
>software will say: slave mode. I'm really not happy about this solution. I
>would prefer a solution with precise modes or error messages if necassary.

then you need to explicitly set the clock source to "master", and then
the hardware will use its own clock without paying attention to the
outside world.

the standard name for the control is "Sample Clock Source" and the
standard values are "Word", "Internal" or "AutoSync". (see
alsa-driver/doc/ControlNames).

--p


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] [PATCH] cmipci compile fix

2003-01-07 Thread Takashi Iwai
At Mon, 6 Jan 2003 14:37:08 +0100 (CET),
Jaroslav wrote:
> 
> On Mon, 6 Jan 2003, Janek Hiis wrote:
> 
> > Hi,
> > 
> > just updated the CVS version and when compiling I get error. Following 
> > patch (hopefully correct) fixes that:
> 
> I put slightly different fix to CVS, but thanks for notice.

i think pci_find_device() do this job nicely.
(already changed on cvs, btw :)


Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [linux-audio-user] Re: [Alsa-devel] alsaplayer not working with alsa?

2003-01-07 Thread Takashi Iwai
At 27 Dec 2002 14:56:22 -0800,
Mark Knecht wrote:
> 
> No, just standard Intel hardware...

well, then you have an exotic one :)

could you show /etc/asound.state?
perhaps the card lacks of some mixer controls which are required.


thanks,

Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] ymfpci, big-endian, and spdif out

2003-01-07 Thread Takashi Iwai
At Thu, 2 Jan 2003 22:22:34 -0600,
Troy Benjegerdes wrote:
> 
> I have a mac G4 (running debian testing), a ymfpci card (MaxiSound
> Fortissimo) with optical TOSlink out, and a yamaha HTR-5540 receiver with
> digital optical TOSlink input.
> 
> I'm trying to get xine or some other DVD player to output AC/3 sound to 
> the receiver for watching dvd's, and I have a couple of problems.
> 
> 1) xmms (and xine 2-channel sound) works with OSS emulation, but is static
>   with native ALSA drivers. This seems like some endian problem

then most likely it's a bug of alsa output plugin.


Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] the last changes to trident driver

2003-01-07 Thread Takashi Iwai
Hi,

if someone has a Trident 4DNX (not DX), could you test the latest CVS
driver?  i hope my last change doesn't break, but i couldn't test the
board atm...


thanks in advance,

Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] SEK'D Prodif plus testers?

2003-01-07 Thread Takashi Iwai
Hi,

are there anyone having SEK'D Prodif Plus soundcards for tests?
i fixed the driver on cvs but it has been done without hardware, and
of course untested.

any reports appreciated.


thanks,

Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] FYI: alsa-driver docs on cvs

2003-01-07 Thread Takashi Iwai
Hi,

i committed the documents for alsa-driver API on alsa-kernel tree CVS,
including the API reference generated from the driver source and my
tutorial document.  both are in the docbook/sgml format.

the files are found in alsa-kernel/Documentation/DocBook and
you can get html, pdf and ps files by running "make htmldocs", "make
pdfdocs" and "make psdocs" in alsa-driver/doc/DocBook directory,
respectively.

i'll put the generated files on my web page later, so that it's linked
from the ALSA web page.


Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] Re: Digital sound card conventions

2003-01-07 Thread Takashi Iwai
At Mon, 06 Jan 2003 11:28:41 -0500,
Paul Davis wrote:
> 
> >1) offer all available sample rates in open() or reduce them as suggested
> >   by Anders
> >2) in trigger(START)
> >   - check if current sample rate match with hw_params - if not - fail
> >3) in interrupt callback
> >   - same job as trigger does
> 
> what about checking in read/write operations, in case the external
> clock has changed?

iiuc, read/write are not called when the buffer is mmapped, so this
might not work in every case...

if interrupts are really generated, we can send some notification in
the interrupt handler (just like snd_ctl_notify() does), and check it
in the next (or sleeping) read/write/poll operation.


Takashi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] the last changes to trident driver

2003-01-07 Thread James Tappin
On Tue, 7 Jan 2003 19:33:19 +
James Tappin <[EMAIL PROTECTED]> wrote:

> On Tue, 07 Jan 2003 17:04:47 +0100
> Takashi Iwai <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > if someone has a Trident 4DNX (not DX), could you test the latest CVS
> > driver?  i hope my last change doesn't break, but i couldn't test the
> > board atm...
> > 
> > 
> > thanks in advance,
> > 
> > Takashi
> 
> Hi Takashi.
> 
> I get a problem with the gameport options not resolving with the
> following build.
> 
> 00:09.0 Multimedia audio controller: Trident Microsystems 4DWave NX (rev
> 02)
> 
> ./cvscompile --with-cards=trident --with-sequencer --without-isapnp
> --with-oss
> 
> gabrielle:/gsoft/build/ALSA/CVS/alsa-driver# /sbin/depmod -ae 2.4.20
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.20/kernel/sound/pci/trident/snd-trident.o depmod:  
>   gameport_unregister_port_R70daab68
> depmod: gameport_register_port_R98692e58
> 
> Best regards,
>   James

Ooops dumbcluck error -- /usr/src/linux was pointing to the 2.5 sources,
I'll try again with the right settings.

James

-- 
James Tappin, O__  "I forget the punishment for using
[EMAIL PROTECTED]   --  \/`Microsoft --- Something lingering
http://www.tappin.me.uk/with data loss in it I fancy"  


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] the last changes to trident driver

2003-01-07 Thread James Tappin
On Tue, 07 Jan 2003 17:04:47 +0100
Takashi Iwai <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> if someone has a Trident 4DNX (not DX), could you test the latest CVS
> driver?  i hope my last change doesn't break, but i couldn't test the
> board atm...
> 
> 
> thanks in advance,
> 
> Takashi

Hi Takashi.

I get a problem with the gameport options not resolving with the following build.

00:09.0 Multimedia audio controller: Trident Microsystems 4DWave NX (rev 02)

./cvscompile --with-cards=trident --with-sequencer --without-isapnp --with-oss

gabrielle:/gsoft/build/ALSA/CVS/alsa-driver# /sbin/depmod -ae 2.4.20
depmod: *** Unresolved symbols in 
/lib/modules/2.4.20/kernel/sound/pci/trident/snd-trident.o
depmod: gameport_unregister_port_R70daab68
depmod: gameport_register_port_R98692e58

Best regards,
James

-- 
James Tappin, O__  "I forget the punishment for using
[EMAIL PROTECTED]   --  \/`Microsoft --- Something lingering
http://www.tappin.me.uk/with data loss in it I fancy"  


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] the last changes to trident driver

2003-01-07 Thread James Tappin
On Tue, 07 Jan 2003 17:04:47 +0100
Takashi Iwai <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> if someone has a Trident 4DNX (not DX), could you test the latest CVS
> driver?  i hope my last change doesn't break, but i couldn't test the
> board atm...
> 
> 

Hi Takashi,
I've managed to resolve my unresolved references problem by rebuilding
the kernel without gameport support, but now attempting to aplay a wav
file produces an immediate segfault (but it refuses to dump core).
Likewise gwc which uses the OSS interface. Also attempting to restart alsa
now (after the gwc crash) gives a series of device busy messages:

Shutting down sound driver: snd-pcm-oss: Device or resource busy
snd-mixer-oss: Device or resource busy
snd-trident: Device or resource busy
snd-pcm: Device or resource busy
snd-timer: Device or resource busy
snd-ac97-codec: Device or resource busy
snd-mpu401-uart: Device or resource busy
snd-rawmidi: Device or resource busy
snd-util-mem: Device or resource busy
snd-seq-device: Device or resource busy
snd: Device or resource busy
done

So at least for me right now it looks well-and-truly busted. If you can
let me know what further info you need and how to get it I'll try to
provide it though it make take a little while if any major builds are
needed as the box with the trident in it isn't exactly the fastest in the
world (PII 333).

James

-- 
James Tappin, O__  "I forget the punishment for using
[EMAIL PROTECTED]   --  \/`Microsoft --- Something lingering
http://www.tappin.me.uk/with data loss in it I fancy"  


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [linux-audio-user] Re: [Alsa-devel] alsaplayer notworking with alsa?

2003-01-07 Thread Mark Knecht
Takashi-san,
   I am attaching my current asound.state file. The installed card is an
RME HDSP 9652, their new card. My current modules.conf looks like:


alias parport_lowlevel parport_pc
alias eth0 eepro100
alias usb-controller usb-uhci

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-hdsp
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd major=116 cards_limit=3 device_mode=0666
options snd-hdsp index=0
options snd-usb-audio index=1
# --- END: Generated by ALSACONF, do not edit. ---

# -- Keep modules from being autocleaned
add options -k snd-card-0
add options -k snd-card-1

   The alsaplayer failure when jack is not running looks like:

[mark@Godzilla mark]$ alsaplayer

alsaplayer: pcm.c:6293: snd_pcm_unlink_ptr: Assertion `0' failed.
AlsaPlayer interrupted by signal 6
[mark@Godzilla mark]$


   Please let me know if thee is more information you'd like to look at.

Thanks,
Mark

On Tue, 2003-01-07 at 07:58, Takashi Iwai wrote:
> At 27 Dec 2002 14:56:22 -0800,
> Mark Knecht wrote:
> > 
> > No, just standard Intel hardware...
> 
> well, then you have an exotic one :)
> 
> could you show /etc/asound.state?
> perhaps the card lacks of some mixer controls which are required.
> 
> 
> thanks,
> 
> Takashi


state.DSP {
control.1 {
comment.access 'read write'
comment.type IEC958
iface PCM
name 'IEC958 Playback Default'
value 
''
}
control.2 {
comment.access 'read write inactive'
comment.type IEC958
iface PCM
name 'IEC958 Playback PCM Stream'
value 
''
}
control.3 {
comment.access read
comment.type IEC958
iface MIXER
name 'IEC958 Playback Con Mask'
value 
'3b00'
}
control.4 {
comment.access read
comment.type IEC958
iface MIXER
name 'IEC958 Playback Pro Mask'
value 
'1f00'
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.range '0 - 65536 (step 1)'
iface PCM
name Mixer
value.0 0
value.1 0
value.2 0
}
control.6 {
comment.access 'read write'
comment.type ENUMERATED
comment.item.0 ADAT1
comment.item.1 Coaxial
comment.item.2 Internal
iface PCM
name 'IEC958 Input Connector'
value Internal
}
control.7 {
comment.access 'read write'
comment.type BOOLEAN
iface PCM
name 'IEC958 Output also on ADAT1'
value false
}
control.8 {
comment.access 'read write'
comment.type ENUMERATED
comment.item.0 Internal
comment.item.1 Word
comment.item.2 'ADAT Sync'
comment.item.3 IEC958
comment.item.4 ADAT1
comment.item.5 ADAT2
comment.item.6 ADAT3
   

[Alsa-devel] intel8x0: changing characteristics after an APM suspend-resume cycle

2003-01-07 Thread D. Sen
Hi,

I am using the snd-intel8x0 drivers (0.9.0rc6) on my IBM Thinkpad 
running Linux 2.4.20. Everything seems to run fine until the machine 
goes through a suspend/resume cycle when mono files/streams seem to get 
played back at a much faster rate.

A cold reboot resolves the problem.

Any ideas on how I can solve this?

Thanks,
DS

lspci --vv output for the Audio Chipset:

00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio 
(rev 02)
	Subsystem: IBM: Unknown device 0508
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
SERR- 
	Latency: 0
	Interrupt: pin B routed to IRQ 11
	Region 0: I/O ports at 1c00 [size=256]
	Region 1: I/O ports at 18c0 [size=64]



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] Playing Surround Sound with Alsa Drivers

2003-01-07 Thread Miguel Pastor
Yes I was able to play surround sound for first time. Very exciting.
Thank you for the good work pushing the penguin army to a more enjoyable
experience with Linux.

Sincerely,

Miguel

On Tue, 2003-01-07 at 01:58, Takashi Iwai wrote:
At Thu, 02 Jan 2003 10:40:56 +0100,
Benny Sjostrand wrote:
> 
> >
> >
> >Actually the drive that I use to send sound to the rears speakers is
> >"h:0,1" not "h:1,0". That's because the rear speakers controller is just
> >a subdevice of my first and only sound card. That works with no problems
> >sending sound only to the rear speakers but not to the four speakers.
> >I'm looking for a way to create surround sound using the four speakers.
> >There must be a way. Help please!
> >
> >  
> >
> Oops! sorry for my misstake, I mean hw:0,0 -> front speakers and 
> hw:0,1-> rear speakers (assuming that you got only one soundcard 
> installed). In such way it's possible to control each speaker 
> independently, programs like xine can take advantage of this.
> 
> Then, whatever you want to do is just a software issue. It's not 
> possible to send the same output to front and rear just via a simple 
> "aplay ...", maybe it's possible to do magic via the .asoundrc stuff 
> crearting a virtual device, but I dont know how to do that.

the latest alsa-lib cvs tree already includes the definition for
cs46xx.  you'll be able to play a 4-channel wav file like

% aplay -Dsurround40 4channels.wav


Takashi





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] ymfpci, big-endian, and spdif out

2003-01-07 Thread Troy Benjegerdes
On Tue, Jan 07, 2003 at 05:02:53PM +0100, Takashi Iwai wrote:
> At Thu, 2 Jan 2003 22:22:34 -0600,
> Troy Benjegerdes wrote:
> > 
> > I have a mac G4 (running debian testing), a ymfpci card (MaxiSound
> > Fortissimo) with optical TOSlink out, and a yamaha HTR-5540 receiver with
> > digital optical TOSlink input.
> > 
> > I'm trying to get xine or some other DVD player to output AC/3 sound to 
> > the receiver for watching dvd's, and I have a couple of problems.
> > 
> > 1) xmms (and xine 2-channel sound) works with OSS emulation, but is static
> > with native ALSA drivers. This seems like some endian problem
> 
> then most likely it's a bug of alsa output plugin.

It seems the latest xmms source uses 'S16_NE' (which is S16_BE on
big-endian platforms) as the pcm format, which works correctly.

alsa-tools/acdec/output.c also has a problem.. it uses S16_LE on
big-endian platforms.

I am able to successfully open the SPDIF output and output *something*
with a commandline like:

ac3dec -D hw:0,0 -C THX.ac3

However, the hardware decoder (yamaha receiver) is getting garbled data
and plays what sounds like stacatto static.

ac3dec -C THX.ac3 gives the following:

Using PCM device 'iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2'
ALSA lib pcm_hw.c:292:(snd_pcm_hw_hw_params) SNDRV_PCM_IOCTL_HW_PARAMS
failed: No such device or address
PCM hw_params failed: No such device or address
Output open failed

Another interesting bit...
If I change S16_LE to S16_BE in output.c, now it works with regular 2
channel audio, but anything with the '-C' option gives:

Using PCM device 'hw:0,0'
Sample format non availableOutput open failed

Using PCM device 'iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2'
Sample format non availableOutput open failed


Should the alsa drive be able to byteswap SPDIF data??


-- 
--
Troy Benjegerdes'da hozer'[EMAIL PROTECTED]   

Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:

"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] Re: RME96 driver patch

2003-01-07 Thread Martin Langer
On Mon, Jan 06, 2003 at 06:52:29PM +0100, Jaroslav Kysela wrote:
> On Mon, 6 Jan 2003, Anders Torger wrote:
> 
> > On Monday 06 January 2003 18.23, Jaroslav Kysela wrote:
> > > On Mon, 6 Jan 2003, Martin Langer wrote:
> > > >
> > > > If the card is in slave mode without an input signal and I'm
> > > > starting playing: Should the card jump into master mode therefore?
> > >
> > > No, an error return code is sufficient. Users know that the card is
> > > in slave mode.
> > 
> > In the case of the RME96 driver, this is no error, the card works with 
> > slave mode active and no input signal. As stated in a previous mail, 
> > I'm quite sure that it runs in master mode until the cards get a signal 
> > to synch with. This is how RME9652 works (hardware and driver), and I 
> > like that behaviour, so I have that in the RME96 driver as well.
> 
> If hardware supports this behaviour, then it's also ok for me.
> 

Let's suppose this playing is going on and a new fresh input arrives on my
input channel. So I would think the hardware will run in master mode and the
software will say: slave mode. I'm really not happy about this solution. I
would prefer a solution with precise modes or error messages if necassary.

I should repair my power supply for trying out...

martin


-- 
"2b|!2b"


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel