Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256118 - >=sys-kernel/*-sources-2.6.26: left speaker crackling even with options setted up on macbook 3,1
Summary: >=sys-kernel/*-sources-2.6.26: left speaker crackling even with options sette...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-23 18:59 UTC by Fabiano Francesconi
Modified: 2009-02-22 02:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel .config file (.config,51.71 KB, text/plain)
2009-01-23 19:01 UTC, Fabiano Francesconi
Details
Alsa kernel module configuration file (alsa,1.08 KB, text/plain)
2009-01-24 12:20 UTC, Fabiano Francesconi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabiano Francesconi 2009-01-23 18:59:17 UTC
Greetings at all.

I have this annoying problem, really annoying problem.
Left speaker is crackling with some frequences.. it's quite unusable.
It's documented almost everywhere. Known bug, indeed, but I haven't found a solution for it (yet, I hope).

Through phones no problem.

I tried almost everything:
- alsa's ebuild
- kernel from .26 (gentoo sources) through .28-r1 tuxonice (actual one)
- model : intel-mac-v3, macbook, mbp3
- position_fix : 0,1,2,3
- probe_mask: 0,1

I can't find a solution, I need some help.

If you need something more, ask me!

Thanks.

Reproducible: Always

Actual Results:  
Left speaker produces an annoying crackling noise

Expected Results:  
The sound should work well.

elbryan@whitebox ~ $ emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-tuxonice-r1 i686)
=================================================================
System uname: Linux-2.6.28-tuxonice-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.0
Timestamp of tree: Fri, 23 Jan 2009 11:05:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="/ X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal hddtemp iconv imap ipod ipv6 isdnlog java jpeg kerberos libnotify lm_sensors mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fabiano Francesconi 2009-01-23 19:00:51 UTC
whitebox elbryan # dmidecode | grep -i mac
	Product Name: MacBook3,1
	Family: MacBook
Comment 2 Fabiano Francesconi 2009-01-23 19:01:35 UTC
Created attachment 179469 [details]
Kernel .config file

My tuxonice kernel .config
Comment 3 George Kadianakis (RETIRED) gentoo-dev 2009-01-24 11:39:53 UTC
Did your left speaker ever work properly with Linux? Does it work with Windows?

Also, could we have a copy of your dmesg?
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-01-24 11:45:13 UTC
It seems like it affects >=linux-2.6.26, also not specific to TOI patches.
Fabiano: is there a kernel version which works?
Comment 5 Fabiano Francesconi 2009-01-24 12:18:00 UTC
(In reply to comment #3)
> Did your left speaker ever work properly with Linux? Does it work with Windows?
> 
> Also, could we have a copy of your dmesg?
> 

It never worked in Linux, never.

And no.. I never get it to work with ever kernel I tried.
Here comes the list:

2.6.25-gentoo-r7/        2.6.26-tuxonice/         
2.6.25-gentoo-r8/        2.6.26-tuxonice-mactel/  2.6.28-tuxonice/
2.6.25-tuxonice-r7/      2.6.27-gentoo-r7/        2.6.28-tuxonice-r1/

In OS X and Windows it plays wonderfully.

Onestly, I didn't spend a lot of effort with kernels < 2.6.26 because I used them for a very short period.

As you see above, I even tried mactel patches but they didn't help.

I builded alsa with verbose debugging message..
Comment 6 Fabiano Francesconi 2009-01-24 12:19:04 UTC
elbryan@whitebox ~ $ dmesg | grep ALSA

ALSA sound/pci/hda/hda_intel.c:2209: chipset global capabilities = 0x4401
ALSA sound/pci/hda/hda_intel.c:775: codec_mask = 0x1
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Surround Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Center Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave LFE Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Side Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Headphone Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Speaker Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Mono Playback Volume, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Surround Playback Switch, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Center Playback Switch, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave LFE Playback Switch, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Side Playback Switch, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Headphone Playback Switch, skipped
ALSA sound/pci/hda/hda_codec.c:1127: Cannot find slave Mono Playback Switch, skipped
ALSA sound/pci/hda/hda_intel.c:1436: azx_pcm_prepare: bufsize=0x10000, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x6, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x4, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x5, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x2
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x3
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x4
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x5
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x6
ALSA sound/pci/hda/hda_intel.c:1436: azx_pcm_prepare: bufsize=0x10000, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x6, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x4, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x5, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x2
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x3
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x4
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x5
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x6
ALSA sound/pci/hda/hda_intel.c:1436: azx_pcm_prepare: bufsize=0x10000, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x6, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x4, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x5, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x2
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x3
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x4
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x5
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x6
ALSA sound/pci/hda/hda_intel.c:1436: azx_pcm_prepare: bufsize=0x10000, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x6, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x4, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x5, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x2
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x3
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x4
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x5
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x6
ALSA sound/pci/hda/hda_intel.c:1436: azx_pcm_prepare: bufsize=0x10000, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x6, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x2, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x4, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:725: hda_codec_setup_stream: NID=0x5, stream=0x5, channel=0, format=0x31
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x2
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x3
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x4
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x5
ALSA sound/pci/hda/hda_codec.c:737: hda_codec_cleanup_stream: NID=0x6
ALSA sound/pci/hda/hda_intel.c:1436: azx_pcm_.....

....
....
....

Comment 7 Fabiano Francesconi 2009-01-24 12:20:35 UTC
Created attachment 179545 [details]
Alsa kernel module configuration file

These are the options I give to the kernel module.

I'm quite confused about "modprobe.d/alsa" and "modules.d/alsa" configuration files.

Which one should be used?
Comment 8 George Kadianakis (RETIRED) gentoo-dev 2009-01-24 16:27:30 UTC
A Google search revealed many instances of this problem.
As much as I hate pointing to Ubun^H^H^H^H^H Forums, I found many threads about it over there. 
Please, try some of the stuff that are mentioned in this thread:
http://ubuntuforums.org/showthread.php?t=611345

Report back any progress.

Thanks :)
Comment 9 Fabiano Francesconi 2009-01-24 17:43:06 UTC
(In reply to comment #8)
> A Google search revealed many instances of this problem.
> As much as I hate pointing to Ubun^H^H^H^H^H Forums, I found many threads about
> it over there. 
> Please, try some of the stuff that are mentioned in this thread:
> http://ubuntuforums.org/showthread.php?t=611345
> 
> Report back any progress.
> 
> Thanks :)
> 

As I wrote in my first post, I tried every configuration posted there (by volanin).
A thing that I've ever noticed is that I haven't a surround control volume in alsamixer.

I have PCM, Front, Line, Line-Boost, Line-Out, Mic, Mic-boost...

Could this lack be related to my problem?
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2009-02-01 01:18:50 UTC
Can you reproduce this on the latest development kernel, currently 2.6.29-rc3?
Comment 11 Mike Pagano gentoo-dev 2009-02-22 02:00:10 UTC
Feel free to reopen with the requested test results from comment #10