All of lore.kernel.org
 help / color / mirror / Atom feed
* [ALSA - driver 0002272]: bt87x does not work with osprey230
@ 2006-07-14 17:43 bugtrack
  0 siblings, 0 replies; 4+ messages in thread
From: bugtrack @ 2006-07-14 17:43 UTC (permalink / raw)
  To: alsa-devel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ALSA - driver 0002272]: bt87x does not work with osprey230
@ 2006-07-13 12:40 bugtrack
  0 siblings, 0 replies; 4+ messages in thread
From: bugtrack @ 2006-07-13 12:40 UTC (permalink / raw)
  To: alsa-devel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ALSA - driver 0002272]: bt87x does not work with osprey230
@ 2006-07-13  9:46 bugtrack
  0 siblings, 0 replies; 4+ messages in thread
From: bugtrack @ 2006-07-13  9:46 UTC (permalink / raw)
  To: alsa-devel


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 11:46 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

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




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ALSA - driver 0002272]: bt87x does not work with osprey230
@ 2006-07-11 13:14 bugtrack
  0 siblings, 0 replies; 4+ messages in thread
From: bugtrack @ 2006-07-11 13:14 UTC (permalink / raw)
  To: alsa-devel


The following issue has been SUBMITTED.
======================================================================
<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-11-2006 15:14 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.
======================================================================

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




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-14 17:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-14 17:43 [ALSA - driver 0002272]: bt87x does not work with osprey230 bugtrack
  -- strict thread matches above, loose matches on Subject: below --
2006-07-13 12:40 bugtrack
2006-07-13  9:46 bugtrack
2006-07-11 13:14 bugtrack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.