Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 183757

Summary: app-emulation/emul-linux-x86-soundlib version bump request (Skype related)
Product: Gentoo Linux Reporter: Andrea Cimino <andreac81>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED FIXED    
Severity: enhancement CC: esqualante, humpback
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 186820    
Bug Blocks: 165270    

Description Andrea Cimino 2007-06-30 17:58:31 UTC
Hello!
I am new to the AMD64 arch. in Gentoo, i buyed a new machine some days ago.
Now i am experiencing some problems with the new release of skype 1.4.74. 
The point is that Skype, a 32 bit app, uses the emul-linux compatibility layer to work but.
Now emul-linux includes alsa-lib-rc1 that has a different behaviour from the stable release.
Here is the proof:
Alsa 1.0.14 rc1, file pcm_softvol.c line 870:
		if (strcmp(id, "resolution") == 0) {
			long v;
			err = snd_config_get_integer(n, &v);
			if (err < 0) {
				SNDERR("Invalid resolution value");
				return err;
			}
			resolution = v;
			continue;
		}
		if (strcmp(id, "min_dB") == 0) {
			err = snd_config_get_real(n, &min_dB);
			if (err < 0) {
				SNDERR("Invalid min_dB value");
				return err;
			}
			continue;
		}
		SNDERR("Unknown field %s", id);
		return -EINVAL;
	}

different from the stable release:
			continue;
		}
		if (strcmp(id, "min_dB") == 0) {
			err = snd_config_get_real(n, &min_dB);
			if (err < 0) {
				SNDERR("Invalid min_dB value");
				return err;
			}
			continue;
		}
		if (strcmp(id, "max_dB") == 0) {
			err = snd_config_get_real(n, &max_dB);
			if (err < 0) {
				SNDERR("Invalid max_dB value");
				return err;
			}
			continue;
		}
		SNDERR("Unknown field %s", id);
		return -EINVAL;
	}


As you can see a max_DB parameter has been introduced.. and my Skype hangs because of that: if i run Skype in the terminal i can see messages like:
andrea@localhost:~$ skype
ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB
ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB
ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB
ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB

This doesn't surprise me. I think the way to solve this is a version bump of the alsa-lib in the
compatibility layer.

Andrea Cimino



Reproducible: Always
Comment 1 Andrea Cimino 2007-07-05 06:20:35 UTC
Ping
Comment 2 Olivier Crete (RETIRED) gentoo-dev 2007-08-18 02:56:23 UTC
I can't reproduce this using, net-im/skype-1.4.0.94 works perfectly with alsa-lib 1.0.144_rc1 here. Which kernel version are you using ? Can you provide your emerge --info ?

Can you try
http://dev.gentoo.org/~tester/alsa-lib-1.0.14_rc2.tbz2
you can easily try it by putting it in your /usr/portage/distfiles, then making a copy of the soundlibs ebuild (rename it something to 10.0-r5 or something), then ebuild newebuild.ebuild digest, then just emerging it.
Comment 3 Andrea Cimino 2007-08-23 22:29:51 UTC
(In reply to comment #2)
> I can't reproduce this using, net-im/skype-1.4.0.94 works perfectly with
> alsa-lib 1.0.144_rc1 here. Which kernel version are you using ? Can you provide
> your emerge --info ?
> 
> Can you try
> http://dev.gentoo.org/~tester/alsa-lib-1.0.14_rc2.tbz2
> you can easily try it by putting it in your /usr/portage/distfiles, then making
> a copy of the soundlibs ebuild (rename it something to 10.0-r5 or something),
> then ebuild newebuild.ebuild digest, then just emerging it.
> 
I was trying to download the .tbz2, but the file doesn't seem to exist anymore.

Ciao,
Andrea
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2007-08-23 22:48:28 UTC
sorry its  http://dev.gentoo.org/~tester/dist/alsa-lib-1.0.14_rc2.tbz2
Comment 5 Andrea Cimino 2007-08-24 08:20:59 UTC
(In reply to comment #4)
> sorry its  http://dev.gentoo.org/~tester/dist/alsa-lib-1.0.14_rc2.tbz2
> 

Still the same problem, but it's quite easy to find the reason.
The first release the introduced the the max_dB field is he 1.0.14 (stable), not
1.0.14rc2. So that's why i am continuing to get 

ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB
ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB

I would suggest to puckage at least that version (or the 14a version).
Or maybe you can give me an hint (www link also) to how to package a an alsa .tbz2.

Thanks for you support,
Andrea Cimino


Comment 6 MichaƂ Kiedrowicz 2007-10-08 15:52:24 UTC
i have the same output with net-im/skype-1.4.0.99:

ALSA lib pcm_softvol.c:889:(_snd_pcm_softvol_open) Unknown field max_dB

However, skype works well.
Comment 7 Mike Doty (RETIRED) gentoo-dev 2007-11-14 07:52:26 UTC
emul-linux-x86-soundlibs-20071114 in the tree, package.masked.  use at your own risk.