Skip to contentSkip to conversation

: dmix not enabled for snd-ice1724

ALSA - lib 0001591 [email protected] 1 participant 1 message Nov 22, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1591>
======================================================================

Reported By:                AdamW
Assigned To:                perex
======================================================================
Project:                    ALSA - lib
Issue ID:                   1591
Category:                   1_pcm_d - direct PCM plugins (dmix+)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             11-22-2005 21:14 CET
Last Modified:              11-22-2005 22:04 CET

======================================================================
Summary: dmix not enabled for snd-ice1724
Description:
Upstream default ALSA config files in /usr/share/alsa/cards/ now seem to enable dmix by default for most drivers, but not snd-ice1724. I have tried to enable dmix for snd-ice1724 by editing /usr/share/alsa/cards/ICE1724.conf and adding the section which seems to enable dmix on other cards - I copied and pasted it from ENS1371.conf, with the obvious change of ENS1371 to ICE1724 - but then sound playback no longer worked. mplayer would give these errors:

ALSA lib pcm_direct.c:812:(snd_pcm_direct_initialize_slave) requested or auto-format is not available
ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
alsa-init: playback open error: Invalid argument
Could not open/initialize audio device -> no sound.

So, a few questions. Is dmix not being enabled by default intentional, perhaps due to bugs with ice1724's support for dmix? Was my attempt to turn it on performed wrong, or does the problem lie elsewhere? Thanks.

Please note I am using ALSA 1.1.0, this version was not available on the 'product version' list when I reported this bug. I have already mentioned this to Mandriva's ALSA packager, Thierry Vignaud; he suggested I should report it upstream.
======================================================================

----------------------------------------------------------------------
rlrevell - 11-22-05 21:38
----------------------------------------------------------------------
Because dmix defaults to S16_LE which your hardware does not support. Try adding the slave.format S32_LE line to ICE1724.conf so the dmix section looks like:

        playback.pcm {
                type plug
                slave.pcm {
                        @func concat
                        strings [ "dmix:" $CARD ] 
                }
add this --->   slave.format S32_LE
        }

----------------------------------------------------------------------
AdamW - 11-22-05 22:04
----------------------------------------------------------------------
OK, that makes music work without errors, but dmix still doesn't appear to work properly - I can't play more than one thing at once. I will attach the modified ICE1724.conf file so you can see if anything's missing. Thanks for the pointer.

Issue History
Date Modified Username Field Change
======================================================================

11-22-05 21:14 AdamW          New Issue                                    
11-22-05 21:38 rlrevell       Note Added: 0006801                          
11-22-05 22:04 AdamW          Note Added: 0006804                          

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click