[ALSA - driver 0002272]: bt87x does not work with osprey230

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-13-2006 14:40 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 11:46 
----------------------------------------------------------------------
Ok, I did some experiments, and it seems that:
1) The "analog DSP" of the osprey230 is connected to nothing
2) After the bttv module is loaded, the analog input of the card can be
captured from the "digital DSP"
3) The "digital_rate=32000" option has to be forced when loading
snd-bt87x, otherwise audio is captured at the wrong rate
4) The captured audio is still very distorted

----------------------------------------------------------------------
 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?

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                          
======================================================================




-------------------------------------------------------------------------
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

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux