Skip to contentSkip to conversation

Broken AC3 on EMU10K1 since July 2-nd

DISCUSSION Georgi Georgiev 3 participants 10 messages Sep 27, 2004 – Sep 30, 2004 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

When trying to play an AC3 sound on my Creative Live I got heavy skipping. The "Digital" light on my decoder was flashing for less than a second and then remained turned off for a little longer (but still less than a second).

I tried different versions of alsa-driver, and versions prior to 1.0.5 were OK. I thought the problem is related to the fact that the passthrough device changed from subdevice 2 to subdevice 3 in version 1.0.6, but it seems it is unrelated.

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

However, there were a lot of changes between these two versions, some of them pretty extensive, especially in the emu10k1 driver.

I sent the AC3 file with:

$ ac3dec -C city.ac3 
Using PCM device 'plug:iec958:{AES0 0x2 AES1 0x82 AES2 0x0 AES3 0x2}'
AC3 Stream 48.0 KHz 448 kbps

but the effect was identical to when using mplayer with -ac hwac3 on a DVD for example.

Quoted 1 line

Georgi Georgiev > Love thy neighbor as thyself, but choose >

< [email protected] < your neighborhood. -- Louise Beal <

Quoted 1 line

+81(90)6266-1163 > >

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

#1 lore raw

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

I did some more checking:

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Signature · 10 lines
|    Georgi Georgiev   |  You will be given a post of trust and        |
|     [email protected]    |  responsibility.                              |
|   +81(90)6266-1163   |                                               |


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
#2 lore raw
Quoted 7 lines · Georgi Georgiev

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

Quoted 7 lines

I did some more checking:

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Can you please send me the diff via private mail? I might be able to figure it out.

Lee

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 14 lines · Georgi Georgiev

maillog: 27/09/2004-14:50:40(-0400): Lee Revell types

Quoted 13 lines · Georgi Georgiev
Quoted 12 lines

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

I did some more checking:

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Can you please send me the diff via private mail? I might be able to figure it out.

It's pretty big, but there it is:

OK, the problem is almost certainly the introduction of pcm_indirect for the FX8010 PCM. Takashi-san, do you agree?

Lee

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

#5 lore raw

At Tue, 28 Sep 2004 12:24:01 -0400,

Quoted 19 lines · Lee Revell
Quoted 17 lines · Georgi Georgiev

maillog: 27/09/2004-14:50:40(-0400): Lee Revell types

Quoted 16 lines · Georgi Georgiev
Quoted 14 lines

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

I did some more checking:

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Can you please send me the diff via private mail? I might be able to figure it out.

It's pretty big, but there it is:

OK, the problem is almost certainly the introduction of pcm_indirect for the FX8010 PCM. Takashi-san, do you agree?

Most likely. I'll take a look.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

#6 lore raw

At Tue, 28 Sep 2004 18:28:27 +0200,

Quoted 5 lines · I wrote:
Quoted 3 lines

OK, the problem is almost certainly the introduction of pcm_indirect for the FX8010 PCM. Takashi-san, do you agree?

Most likely. I'll take a look.

The attached oneliner fixes this bug.
Already applied to CVS.

Takashi

Index: alsa-kernel/pci/emu10k1/emupcm.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/emu10k1/emupcm.c,v retrieving revision 1.35
retrieving revision 1.36

pci/emu10k1/emupcm.c +1 -1
diff -u -r1.35 -r1.36
@@ -1192,7 +1192,7 @@
 	}
 	snd_emu10k1_fx8010_playback_tram_poke1((unsigned short *)emu->fx8010.etram_pages.area + tram_pos,
 					       (unsigned short *)emu->fx8010.etram_pages.area + tram_pos + tram_size / 2,
-					       src, frames, tram_shift++);
+					       src, frames, tram_shift);
 	tram_pos -= frames;
 	pcm->tram_pos = tram_pos;
 	pcm->tram_shift = tram_shift;
#7 lore raw

maillog: 30/09/2004-12:10:34(+0200): Takashi Iwai types

Quoted 10 lines

At Tue, 28 Sep 2004 18:28:27 +0200,

Quoted 5 lines · I wrote:
Quoted 3 lines

OK, the problem is almost certainly the introduction of pcm_indirect for the FX8010 PCM. Takashi-san, do you agree?

Most likely. I'll take a look.

The attached oneliner fixes this bug.
Already applied to CVS.

Not sure what the proper procedure is, so I will just confirm that latest CVS works now.

Signature · 10 lines
*>   Georgi Georgiev   *> You will be successful in love.              *>
<*    [email protected]    <*                                              <*
*>  +81(90)6266-1163   *>                                              *>


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
#8 lore raw
In reply to Georgi Georgiev

At Tue, 28 Sep 2004 01:20:24 +0900,

Quoted 8 lines · Georgi Georgiev

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

Quoted 7 lines

I did some more checking:

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Are you using the latest alsa-lib, too?

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

#9 lore raw

maillog: 27/09/2004-21:56:50(+0200): Takashi Iwai types

Quoted 12 lines

At Tue, 28 Sep 2004 01:20:24 +0900,

Quoted 10 lines · Georgi Georgiev

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

I did some more checking:

Quoted 7 lines
Quoted 5 lines

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Are you using the latest alsa-lib, too?

Well, it is the latest *stable* version -- 1.0.6.

Signature · 10 lines
*)   Georgi Georgiev   *)  Amy: Aw, he looks like a little insane      *)
(*    [email protected]    (* drunken angel.                               (*
*)  +81(90)6266-1163   *)                                              *)


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
#10 lore raw

At Tue, 28 Sep 2004 14:12:51 +0900,

Quoted 17 lines · Georgi Georgiev

maillog: 27/09/2004-21:56:50(+0200): Takashi Iwai types

Quoted 15 lines

At Tue, 28 Sep 2004 01:20:24 +0900,

Quoted 13 lines · Georgi Georgiev

maillog: 28/09/2004-01:03:14(+0900): Georgi Georgiev types

Quoted 5 lines

I checked out the CVS in my kernel source tree, and after playing with different dates:

cvs up -D "1 Jul 2004" -- sound plays OK
cvs up -D "2 Jul 2004" -- sound skips heavily

I did some more checking:

cvs up -dP -D "1 Jul 2004 18:0:0" -- OK
cvs up -dP -D "1 Jul 2004 19:0:0" -- BAD

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Still, I cannot understand the changes made to emu10k1, so I don't know what the problem might be. I hope someone finds the fix.

Are you using the latest alsa-lib, too?

Well, it is the latest *stable* version -- 1.0.6.

If you use the CVS version of driver, use the CVS version of alsa-lib, too.

Anyway, this problem must be a bug I introduced at that time...

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl