[Alsa-user] Can't play mp3 with mpg123, but wav with aplay works

2010-10-25 Thread Wojciech Bober
Hi all, I'm trying to build mp3 jukebox out of Efika, which is an embedded MPC5200 based board. I got to the stage where I'm able to play a wav file using aplay. But when I try to play an mp3 using mpg123 it freezes after decoding a few frames. I spent a few hours trying to get this work, but I'm

Re: [Alsa-user] Basic S/PDIF Recording

2010-10-25 Thread Paul Braman
James Le Cuirot wrote: > > "Since compressed data is transmitted in place of PCM data, the bitrate > of the compressed stream must exactly match uncompressed stereo 16-bit > PCM bitrate. As a rule, compressed stream (even a multi-channel one) > having a lower bitrate, compressed stream must be padd

Re: [Alsa-user] Basic S/PDIF Recording

2010-10-25 Thread James Le Cuirot
On Mon, 25 Oct 2010 10:45:10 -0400 Paul Braman wrote: > Interesting, but I see a couple of idiological problems with this > approach. > > "dat" implies reading 32-bit frames at a rate of 48KHz. That's all > fine and good but an S/PDIF bitstream is going to be pumping data > faster than that rate

Re: [Alsa-user] Basic S/PDIF Recording

2010-10-25 Thread Paul Braman
James Le Cuirot wrote: > > If you want to try it for yourself, it's as simple as... > > arecord -Dspdif -f dat -t raw | spdifextract | ac3dec -6 Interesting, but I see a couple of idiological problems with this approach. "dat" implies reading 32-bit frames at a rate of 48KHz. That's all fine and

Re: [Alsa-user] Basic S/PDIF Recording

2010-10-25 Thread James Le Cuirot
On Mon, 25 Oct 2010 15:18:03 +0100 James Le Cuirot wrote: > Apparently a PLL is needed to synchronise the clock frequency but I > haven't been able to determine whether any sound cards out there have > these at all. I've heard of some Creative cards having on-board AC3 > decoders but I think this

Re: [Alsa-user] Basic S/PDIF Recording

2010-10-25 Thread James Le Cuirot
On Mon, 25 Oct 2010 09:50:19 -0400 Paul Braman wrote: > I'll assume I want to read in blocks of 1536 bytes-at-a-time as long > as ALSA is properly synchronizing to the S/PDIF frame and giving me > aligned blocks. Is this an assumption I can make? Probably not. I recently thought I would be cleve

[Alsa-user] Basic S/PDIF Recording

2010-10-25 Thread Paul Braman
Let me first describe the concepts I understand and then I might be able to ask some questions that make sense. Data is broken up on an S/PDIF stream into 64-bit frames grouped into 192-frame blocks (1536-byte blocks). Assuming I can properly decode all of the status bits in each frame, blah blah

Re: [Alsa-user] Playing all sound out of HDMI

2010-10-25 Thread Duffy DaC
[David Swann, venerdì 22 ottobre 2010] > Am new to alsa, can anyone help me with this. > > I've tested the card with aplay and works fine but how do I set it > permanently to playing all sound out of HDMI. The card is a Nvidia. You should create an $HOME/.asoundrc file. I can't remember the exact

[Alsa-user] Writing a ALSA driver for Audio CD

2010-10-25 Thread souvik.datta
Hello, I am new to ALSA. I would like to know how does a CDROM drive ( having an Audio CD) be treated as a ALSA device? Do I have to write a ALSA driver for the CDROM? The CDROM has it's control/command through I2C and Audio output through S/PDIF Channel. Regards, Souvik --