A NOTE has been added to this issue. ====================================================================== <https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2272> ====================================================================== Reported By: lucabe Assigned To: Clemens Ladisch ====================================================================== Project: ALSA - driver Issue ID: 2272 Category: PCI - bt87x Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: Debian Kernel Version: all, up to 2.6.18-rc1 ====================================================================== Date Submitted: 07-11-2006 15:14 CEST Last Modified: 07-14-2006 19:43 CEST ====================================================================== Summary: bt87x does not work with osprey230 Description: The osprey 230 card is detected, but the captured analog audio is distorted (with kernel 2.6.18-rc1) or silence (with kernel 2.6.8). alsamixer shows 3 inputs: "TV Tuner", "Mic/Line", and "FM", but the card does not have any tuner or radio device This happens on x86 systems (I tried some different P4 or celeron machines) with the kernel provided by Debian Sarge (2.6.8), but also with very recent kernels. I just tried with a 2.6.18-rc1 kernel compiled from scratch. ====================================================================== ---------------------------------------------------------------------- lucabe - 07-13-06 14:40 ---------------------------------------------------------------------- Ok, after some other work I discovered how to eliminate the distorsion in the captured audio: it seems that something like this patch fixes the problem: diff -urp -X linux-2.6.18-rc1/Documentation/dontdiff linux-2.6.18-rc1/sound/pci/bt87x.c linux-2.6.18-rc1-mine/sound/pci/bt87x.c --- linux-2.6.18-rc1/sound/pci/bt87x.c 2006-07-06 06:09:49.000000000 +0200 +++ linux-2.6.18-rc1-mine/sound/pci/bt87x.c 2006-07-13 11:32:23.000000000 +0200 @@ -354,7 +354,7 @@ static int snd_bt87x_set_digital_hw(stru }; int i; - chip->reg_control |= CTL_DA_IOM_DA; + chip->reg_control |= CTL_DA_IOM_DA | (1 << 16); runtime->hw = snd_bt87x_digital_hw; runtime->hw.rates = SNDRV_PCM_RATE_KNOT; for (i = 0; i < ARRAY_SIZE(ratebits); ++i) @@ -380,7 +380,7 @@ static int snd_bt87x_set_analog_hw(struc .rats = &analog_clock }; - chip->reg_control &= ~CTL_DA_IOM_DA; + chip->reg_control &= ~(CTL_DA_IOM_DA | (1 << 16)); runtime->hw = snd_bt87x_analog_hw; return snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &constraint_rates); Now, can anyone help me in understanding what that | (1 << 16) means? Does anyone know where I can find the specifications for the BT878 chip? Is anyone interested in having a working snd-bt87x driver, or should I just patch my kernel locally without disturbing you anymore? ---------------------------------------------------------------------- Clemens Ladisch - 07-14-06 19:43 ---------------------------------------------------------------------- The "1 << 16" changes the format of the sample data at the chip's digital input. Applying your patch would break capturing on some other cards. The driver needs to be changed to setup the sample format for specific cards. For a manual, Google for "bt878 datasheet". Issue History Date Modified Username Field Change ====================================================================== 07-11-06 15:14 lucabe New Issue 07-11-06 15:14 lucabe Distribution => Debian 07-11-06 15:14 lucabe Kernel Version => all, up to 2.6.18-rc1 07-13-06 11:46 lucabe Note Added: 0010991 07-13-06 14:40 lucabe Note Added: 0010992 07-14-06 19:43 Clemens LadischNote Added: 0011001 ====================================================================== ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel