First off, I was previously having some trouble using dmix on Fedora Core 4 x86_64 with ALSA 1.0.10 and a Chaintech AV-710 (ice1724) card. I saw a posting from Lee Revell about adding some configuration for ICE1712 to fix this. I added this similar section to my ICE1724.conf file and it seems to work:

# default with dmix & dsnoop
ICE1724.pcm.default {
        @args [ CARD ]
        @args.CARD {
                type string
        }
        type asym
        playback.pcm {
                type plug
                slave.pcm {
                        @func concat
                        strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
                }
        }
        capture.pcm {
                type plug
                slave.pcm {
                        @func concat
                        strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ]
                }
        }
}

So, dmix is taken care of (assuming somebody can apply that patch for the next version..)

The other thing I previously had in my configuration, however, was a change to make all the audio go to the SPDIF output. Ideally what I'd like it to do is send the audio for the front channels (or AC-3 output, if used) to the SPDIF and still send all of the channels out the analog outputs, as Windows is set up to do. (I think this would be an entirely reasonable default for these cards, actually.)

I can't figure out how to get the SPDIF output to work at all with ALSA 1.0.10 however. By default, nothing comes out the SPDIF when audio is played. If I specify either "hw:0,1" or the "iec958" output, I get:

Playing WAVE '/mnt/windrv/Documents and Settings/All Users/Documents/MP3 Tests/KMFDM-Dogma.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:896: Sample format non available

Likewise XMMS gives:

** WARNING **: alsa_setup(): Sample format not available for playback: Invalid argument

Can anyone tell me either a) at least how to get some output on SPDIF or b) better yet how to get things set up so that audio is output on both SPDIF and analog?

My previous asound.conf file that I was using with ALSA 1.0.9 to do something like this is below:

# Everything shall be dmixed, so redefine "default":
pcm.!default {
    type plug
    slave.pcm "ossmix"
}

pcm.ossmix {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,1"
        rate 44100 # we want to play CDs only
    }
    bindings {
        0 0
        1 1
    }
}
# OSS via aoss should d(mix)stroyed:
pcm.dsp0 {
    type plug
    slave.pcm "ossmix"
}

# Xine doesn't use the "default" device for S/PDIF but this:
pcm.!iec958 {
type plug
slave.pcm "hw:0,1"
}

ctl.!iec958 {
type hw
card 0
}


-------------------------------------------------------
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_id=7637&alloc_id=16865&op=click
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to