Re: [Alsa-user] broken digital sound again

2009-02-02 Thread Takashi Iwai
At Thu, 29 Jan 2009 18:27:09 -0500,
James wrote:
 
 Clemens Ladisch wrote:
  James wrote:

  $ speaker-test -D iec958 -c 6
  ...
  Channels count (6) not available for playbacks: Invalid argument
  
 
  S/PDIF does not support uncompressed surround sound; you have to play
  stereo data (use -c 2) or AC-3/DTS-compressed data.
 
 
  Best regards,
  Clemens

 Speaker-test used to output to all my speakers.
 -c 2 DOES output to my left and right front speakers but I can't get
 anything out of the others in my 5.1

SPDIF supports basically only 2-channel PCM.  5.1 is implemented in a
compress format such as AC3 or DTS, which is transmitted as if a
two-channel PCM stream, and the receiver expands the compressed stream
again to 5.1.

 $ aplay -D iec958 -c 2 /storage/music/goodbye3.wav
 Playing WAVE '/storage/music/goodbye3.wav' : Signed 16 bit Little
 Endian, Rate 22050 Hz, Mono
 aplay: set_params:966: Channels count non available

It's because you're trying to play a mono sample on a 2-ch stereo
device without the conversion plugin.  Wrap with plug:, e.g.

aplay -D plug:iec958 -c 2 /storage/music/goodbye3.wav

(But, this doesn't mean that it'll be converted to 5.1 compressed
 format, though.)


Takashi

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] broken digital sound again

2009-01-30 Thread James
James wrote:
 Clemens Ladisch wrote:
   
 James wrote:
   
 
 $ speaker-test -D iec958 -c 6
 ...
 Channels count (6) not available for playbacks: Invalid argument
 
   
 S/PDIF does not support uncompressed surround sound; you have to play
 stereo data (use -c 2) or AC-3/DTS-compressed data.


 Best regards,
 Clemens
   
 
 Speaker-test used to output to all my speakers.
 -c 2 DOES output to my left and right front speakers but I can't get
 anything out of the others in my 5.1

 $ aplay -D iec958 -c 2 /storage/music/goodbye3.wav
 Playing WAVE '/storage/music/goodbye3.wav' : Signed 16 bit Little
 Endian, Rate 22050 Hz, Mono
 aplay: set_params:966: Channels count non available

Grrr, Amarok just randomly started working.
Still no KDE system sounds but I care more about digital Amarok.

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] broken digital sound again

2009-01-29 Thread James
Clemens Ladisch wrote:
 James wrote:
   
 $ speaker-test -D iec958 -c 6
 ...
 Channels count (6) not available for playbacks: Invalid argument
 

 S/PDIF does not support uncompressed surround sound; you have to play
 stereo data (use -c 2) or AC-3/DTS-compressed data.


 Best regards,
 Clemens
   
Speaker-test used to output to all my speakers.
-c 2 DOES output to my left and right front speakers but I can't get
anything out of the others in my 5.1

$ aplay -D iec958 -c 2 /storage/music/goodbye3.wav
Playing WAVE '/storage/music/goodbye3.wav' : Signed 16 bit Little
Endian, Rate 22050 Hz, Mono
aplay: set_params:966: Channels count non available

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] broken digital sound again

2009-01-28 Thread James
My digital sound broke again :-(
I like Gentoo because it updates alot but I hate it because it breaks my
digital sound alot. :-(
I am using the 2.6.28.2 kernel and alsa 1.0.19

$ aplay -l
 List of PLAYBACK Hardware Devices 
card 0: NVidia [HDA NVidia], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ aplay -L
default:CARD=NVidia
HDA NVidia, ALC888 Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC888 Digital
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)

$ speaker-test -D iec958 -c 6

speaker-test 1.0.19

Playback device is iec958
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Channels count (6) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] broken digital sound again

2009-01-28 Thread Clemens Ladisch
James wrote:
 $ speaker-test -D iec958 -c 6
 ...
 Channels count (6) not available for playbacks: Invalid argument

S/PDIF does not support uncompressed surround sound; you have to play
stereo data (use -c 2) or AC-3/DTS-compressed data.


Best regards,
Clemens

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user