After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 335620 - alsasink does not work when dmix is enabled
alsasink does not work when dmix is enabled
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.10.4
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-23 07:46 UTC by Jorn Baayen
Modified: 2007-01-23 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jorn Baayen 2006-03-23 07:46:03 UTC
alsasink does not work when dmix is enabled. It does work when it is disabled.
This used to work fine earlier.

Error from gstreamer-properties when testing alsasink:
"ALSA - Advanced Linux Sound Architecture: Could not open resource for writing."

In console:
gstreamer-properties-Message: Error running pipeline 'ALSA - Advanced Linux Sound Architecture': Could not open resource for writing. [gstalsasink.c(740): gst_alsasink_open (): /pipeline0/alsasink1:
Playback open error: Invalid argument]

/etc/asound.conf:
pcm.swmix {
	type dmix
	ipc_key 313
	slave {
		pcm "hw:0,0"
		period_time 0
		period_size 1024
		buffer_size 8192
	}
        bindings {
                0 0
                1 1
        }
}

pcm.!default {
	type plug
        slave.pcm "swmix"
}
Comment 1 Jorn Baayen 2006-03-23 07:46:53 UTC
Also note that dmix works fine with for example xine.
Comment 2 Jan Schmidt 2006-03-23 16:40:28 UTC
This is what I'm using for a /etc/asound.conf, and it's working fine here:

pcm.ossmix {
    type dmix
    ipc_key 1024          # must be unique!
    slave {
        pcm "hw:0,0"      # you cannot use a "plug" device here, darn.
        period_time 0
        period_size 2048  # must be power of 2
        buffer_size 8192  # dito. It
        rate 96000
    }

    bindings {
        0 0   # from 0 => to 0
        1 1   # from 1 => to 1
    }
}

pcm.!default {
    type plug
    slave.pcm "ossmix"     # use our new PCM here
}
Comment 3 Jorn Baayen 2006-03-23 16:46:15 UTC
Using that as asound.conf doesn't change anything for me.

This is an M-Audio Audiophile 2496 .. (ICE1712/Envy24)
Comment 4 Wim Taymans 2006-03-29 14:16:02 UTC
must be due to the fact that the device we try to open is called "default". Maybe it needs something else?
Comment 5 Tim-Philipp Müller 2006-03-29 14:27:14 UTC
We used "default" in 0.8 as well, and that worked fine with dmix. I'd be surprised if that was the problem.

Comment 6 Wim Taymans 2006-08-16 11:42:23 UTC
No clue why this would happen, it's a simple open in NON_BLOCKING mode. Maybe the card does not support that flag... Added some more info in the error message. Can you retest with CVS core/base? 
Comment 7 Tim-Philipp Müller 2007-01-16 12:12:28 UTC
Ping? Is this still a problem with current GStreamer/ALSA versions?
Comment 8 Tim-Philipp Müller 2007-01-23 11:44:22 UTC
Closing this bug report as no further information has been provided. Please reopen this bug if this is still an issue with current versions of core/base. Thanks!