Skip to contentSkip to conversation

: Sharing soundcard via dmix does not work when mixing 32bit and 64bit applications.

ALSA - lib 0001231 [email protected] 1 participant 1 message Aug 18, 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=1231>
======================================================================
Reported By: Tobias Diedrich
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   1231
Category:                   0_general
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             07-04-2005 16:30 CEST
Last Modified:              08-18-2005 22:29 CEST

======================================================================
Summary: Sharing soundcard via dmix does not work when mixing
32bit and 64bit applications.
Description:
I have configured a friends AMD64-System to use dmix by default. I also made the same configuration for the 32bit-chroot and made sure that
/tmp is a bind-mount, so the dmix-Socket is shared between 32bit and 64bit applications.
However while sharing between one type of applications (either all 32bit or all 64bit) works fine, mixed sharing doesn't work. A strace shows that the socket is opened by apparently communication fails.
I suspect that the structures passed by dmix have problems with differntly sized fields between 32bit and 64bit.
======================================================================

----------------------------------------------------------------------
tiwai - 07-08-05 12:00
----------------------------------------------------------------------
Yes, it's incompatible between 32 and 64bits. The struct shared in shmem doesn't match.
snd_pcm_direct_share_t in pcm_direct.h defines the shared struct and the size of snd_pcm_[su]frames_t is long, so it depends on architecture. Also, we should be careful about alignment, too...

----------------------------------------------------------------------
ikonst - 08-18-05 22:29
----------------------------------------------------------------------
Same as bug 0001336 which I've filled and is indeed resolved in CVS (I've just checked). Please mark as resolved.

Issue History
Date Modified Username Field Change
======================================================================
07-04-05 16:30 Tobias DiedrichNew Issue
07-08-05 12:00 tiwai Note Added: 0005412
08-18-05 22:29 ikonst Note Added: 0005858
======================================================================

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf