: emu10k1: sound chopped when passthru enabled
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=646>
======================================================================
Reported By: flink
Assigned To:
======================================================================
Project: ALSA - lib Issue ID: 646 Category: pcm - digital audio Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 11-12-2004 17:02 CET Last Modified: 11-17-2004 07:00 CET
======================================================================
Summary: emu10k1: sound chopped when passthru enabled
Description:
When I play a DVD with AC3 passthru enabled, the signal is correctly send to my AC3 decoder but this signal is chopped. I've a little led on my decoder to show if dolby digital is enabled or not and this led blinks instead of remaining enabled. So the sound is also chopped and a DVD can't be
watched this way.
======================================================================
----------------------------------------------------------------------
visit0r - 11-16-04 21:09
----------------------------------------------------------------------
I would verify it, only if I could get it compiled. Both 1.0.7 and CVS compilation fail with following:
[...]
CC [M] /usr/src/alsa-cvs/alsa-driver/kbuild/../drivers/serialmidi.o/usr/src/alsa-cvs/alsa-driver/drivers/serialmidi.c: In function `tx_loop':/usr/src/alsa-cvs/alsa-driver/drivers/serialmidi.c:327: warning: passing arg 3 of pointer to function makes integer from pointer without a cast /usr/src/alsa-cvs/alsa-driver/drivers/serialmidi.c:327: error: too many arguments to function
make[4]: *** [/usr/src/alsa-cvs/alsa-driver/kbuild/../drivers/serialmidi.o] Error 1 make[3]: *** [/usr/src/alsa-cvs/alsa-driver/kbuild/../drivers] Error 2 make[2]: *** [_module_/usr/src/alsa-cvs/alsa-driver/kbuild] Error 2 make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.10-rc2'
make: *** [compile] Error 2
I tried it with both gcc 3.2.3 (Debian), 3.3.5 (Debian 1:3.3.5-2) and 3.4.2 (Debian 3.4.2-3). Looks more like Linux version incompatibility? Am I doing something wrong?
----------------------------------------------------------------------
duanev - 11-17-04 07:00
----------------------------------------------------------------------
I just applied your patch to linux-2.6.8.1-12mdk/sound/pci/emu10k1/emupcm.c in my Mandrake 10.1 Official tree (alsa 1.0.6) and it fixes the SBLive spdif choppy problem perfectly. (visit0r, are you running a preemtable kernel?) For this particular file:
# diff emupcm.c.orig emupcm.c 1188c1188 < src, frames, tram_shift++); ---
Quoted 1 line
src, frames, tram_shift);
(remove the ++)
Issue History
Date Modified Username Field Change
======================================================================
11-12-04 17:02 flink New Issue 11-13-04 22:18 rlrevell Note Added: 0002403 11-13-04 22:31 rlrevell File Added: patch 11-13-04 22:33 rlrevell Note Added: 0002404 11-16-04 00:13 visit0r Note Added: 0002421 11-16-04 00:24 rlrevell Note Added: 0002422 11-16-04 21:09 visit0r Note Added: 0002430 11-17-04 04:06 duanev Issue Monitored: duanev 11-17-04 07:00 duanev Note Added: 0002432
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8