Does simple 'aplay -Dplug:spdif foo.wav' work?

======= On Friday 30 December 2005 13:36, Pieter-Jan Malfait wrote: =======
hello,

i'm trying to get all my sound throught the SP/DIF (coax) output of my
card. i'm using the latest development drivers (1.0.11rc1)  because it
is the only version that supports the M-Audio Revolution 5.1

I have according to the wiki, set up a dmix device to adjust the sound
to proper settings and make it go through the spdif connector by
default.
When i try to use the device (i tried aplay and mpg123), i get an
error message saying the sample format is not availlable:

aplay: set_params:901: Sample format non available

This is my /etc/asound.conf :

pcm.!default {
       type plug
       slave.pcm "dmixer"
}

pcm.dmixer  {
       type dmix
       ipc_key 1024
       ipc_gid 1024
       slave {
               pcm "hw:0,1"
               format S32_LE
               period_time 0
               period_size 1024
               buffer_size 8192
               rate 44100
       }
       bindings {
               0 0
               1 1
       }
}

ctl.dmixer {
       type hw
       card 0
       device 1

i've tried different formats (S16_LE, S32_BE, ...) but none of the
work. Anybody knows what could be the problem?

Thanks a lot in advance!

greetings,
Pieter-Jan

I've attached some more info :

Output of /proc/asound/cards :

 0 [Revolution51   ]: ICE1724 - M Audio Revolution-5.1
                     M Audio Revolution-5.1 at 0xdf80, irq 10

Ouput of /proc/asound/devices :

 0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 17: [ 0- 1]: digital audio playback
 18: [ 0- 2]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer

Output of cat /proc/asound/version :
Advanced Linux Sound Architecture Driver Version 1.0.11rc1.
Compiled on Dec 21 2005 for kernel 2.6.12-1.1381_FC3.

Output of cat /proc/asound/pcm:
cat /proc/asound/pcm
00-00: ICE1724 : ICE1724 : playback 1 : capture 1
00-01: IEC1724 IEC958 : IEC1724 IEC958 : playback 1
00-02: ICE1724 Surrounds : ICE1724 Surround PCM : playback 2

Output of amixer:
Simple mixer control 'IEC958',0
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'IEC958 Output',0
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
Simple mixer control 'IEC958',1
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'DAC',0
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 255
 Mono: 255 [100%]
Simple mixer control 'DAC',1
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 255
 Mono: 255 [100%]
Simple mixer control 'DAC',2
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 255
 Mono: 255 [100%]
Simple mixer control 'DAC',3
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 255
 Mono: 255 [100%]
Simple mixer control 'DAC',4
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 255
 Mono: 255 [100%]
Simple mixer control 'DAC',5
 Capabilities: volume volume-joined
 Playback channels: Mono
 Capture channels: Mono
 Limits: 0 - 255
 Mono: 255 [100%]
Simple mixer control 'Deemphasis',0
 Capabilities: enum
 Items: '44.1kHz' 'Off' '48kHz' '32kHz'
 Item0: 'Off'
Simple mixer control 'H/W',0
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'H/W',1
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'H/W',2
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'H/W',3
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'H/W',4
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'H/W',5
 Capabilities: enum
 Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
 Item0: 'PCM Out'
Simple mixer control 'Multi Track Internal Clock',0
 Capabilities: enum
 Items: '8000' '9600' '11025' '12000' '16000' '22050' '24000' '32000'
'44100' '48000' '64000' '88200' '96000' '176400' '192000' 'IEC958
Input'
 Item0: '44100'
Simple mixer control 'Multi Track Peak',0
 Capabilities: volume
 Playback channels: Front Left - Front Right - Rear Left - Rear Right
- Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ?
- ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
 Capture channels: Front Left - Front Right - Rear Left - Rear Right
- Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ?
- ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
 Limits: 0 - 255
 Front Left: 0 [0%]
 Front Right: 0 [0%]
 Rear Left: 0 [0%]
 Rear Right: 0 [0%]
 Front Center: 0 [0%]
 Woofer: 0 [0%]
 Side Left: 0 [0%]
 Side Right: 0 [0%]
 Rear Center: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
 ?: 0 [0%]
Simple mixer control 'Multi Track Rate Locking',0
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
Simple mixer control 'Multi Track Rate Reset',0
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opÌk
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to