Drop workaround for oldstable/2.6.24.
2.6.32 migrated to testing.
|Deletions are marked like this.||Additions are marked like this.|
|Line 38:||Line 38:|
The snd-cs46xx module is not present within 2.6.30 Debian kernel images.
=== Sid ===
## rename to Squeeze once 2.6.32 has migrated to testing
Cirrus Logic Sound Fusion CS4280, CS461x, CS462x, CS463x devices
This page describes the state of support for sound devices based on CS46xx chipsets on Debian systems.
snd-cs46xx is a kernel module supporting Cirrus Logic's Sound Fusion CS46xx audio controllers. It is an ALSA driver provided in Linux 2.6 mainline kernels.
In linux-2.6 2.6.23-1, the binary-only firmware in this driver was removed (see the package changelog), due to discovered firmware licensing issues. The driver was disabled at this time. Firmware was also removed from the alsa-source package to resolve bug 483918.
The snd-cs46xx module is not present within 2.6.26 Debian kernel images.
The snd-cs46xx module is included within 2.6.18 Debian kernel images. No firmware from userspace is required.
The snd-cs46xx module is not present within 2.6.24 Debian kernel images.
The snd-cs46xx module is included within 2.6.32 Debian kernel images. You are required to supply one firmware file for device use.
Install the build-essential package:
$ su # aptitude update # aptitude install build-essential # exit
Download cs46xx_image.h from Linus' kernel tree:
$ wget 'http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=sound/pci/cs46xx/cs46xx_image.h;h=dc93f62db2c2b6ec624eda7bcb80a38baee5f47e;hb=HEAD' -O cs46xx_image.h
$ wget 'http://wiki.debian.org/snd-cs46xx?action=AttachFile&do=get&target=write_images.c' -O write_images.c
Download a patch against cs46xx_image.h:
$ wget 'http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=181;att=0;bug=464197' -O cs46xx_image.diff
Apply the patch:
$ patch -i cs46xx_image.diff
Compile the write_images program:
$ gcc -o write_images write_images.c
Execute the program to write out firmware:
Install the firmware:
$ su # mkdir -p /usr/local/lib/firmware/cs46xx # cp cs46xx/cs46xx-old.fw /usr/local/lib/firmware/cs46xx
Reload the snd-cs46xx module:
# modprobe -r snd-cs46xx && modprobe snd-cs46xx
# aptitude install alsa-base alsa-utils
If not already performed, add your user account to the audio group, then log out and log back into your system:
# adduser yourusername audio # exit $ exit
Run alsamixer, unmute channels and raise sound levels:
Test your sound device:
$ aplay /usr/share/sounds/alsa/Noise.wav
Examine the kernel ring buffer (dmesg(1)) to verify firmware is being loaded.
If output similar to the following is shown:
[16576.681738] Sound Fusion CS46xx 0000:00:06.0: found PCI INT A -> IRQ 11 [16576.681774] Sound Fusion CS46xx 0000:00:06.0: sharing IRQ 11 with 0000:00:02.0 [16576.681827] Sound Fusion CS46xx 0000:00:06.0: sharing IRQ 11 with 0000:01:00.0 [16577.224760] Sound Fusion CS46xx 0000:00:06.0: firmware: requesting cs46xx/cs46xx-old.fw [16577.403887] cs46xx: firmware hunk out of range [16577.406087] image download error [16577.412213] Sound Fusion CS46xx: probe of 0000:00:06.0 failed with error
The firmware is not in the correct format.
Ensure the patch for cs46xx_image.h is applied prior to compiling write_images.c.
Ensure write_images is executed on a system where unsigned long is little-endian 32-bit.
The page HowToIdentifyADevice/PCI explains how to identify a PCI device.
The following list is based on the alias fields of modinfo snd-cs46xx in Debian 2.6.32 kernel images.
PCI: 1013:6001 Cirrus Logic CS 4610/11 [CrystalClear SoundFusion Audio Accelerator] PCI: 1013:6003 Cirrus Logic CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator] PCI: 1013:6004 Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator]