All of lore.kernel.org
 help / color / mirror / Atom feed
* Osprey 440 almost supported!!! Need X9221 i2c support!
@ 2007-06-22  2:41 Nathan Allen Stratton
  2007-06-22  8:51 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Allen Stratton @ 2007-06-22  2:41 UTC (permalink / raw)
  To: alsa-devel


This card does not use analog bt878a inputs, but rather the digital input.
To get audio working I set the mask to 000303, first two bits are for the
audio rate, 00 is 32000, 01 is 41000, 10 is 4800. The first two bits in
the next byte are for balanced or unbalanced audio input. 0x00 for
unbalanced and 0x100 for balanced. So I am using:

modprobe bttv card=140 bttv_gpio=1 bttv_verbose=2 bttv_debug=1 gpiomask=0x020303 audioall=0xFFFDFC

bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:08:04.0, irq: 24, latency: 132, mmio: 0xc8600000
bttv0: detected: Osprey-440 [card=140], PCI subsystem ID is 0070:ff07
bttv0: using: Osprey 440 [card=140,insmod option]
bttv0: gpio config override: mask=0x20303, mux=0xfffdfc,0xfffdfc,0xfffdfc,0xfffdfc
bttv0: gpio: en=00000000, out=00000000 in=00feffff [pre-init]
bttv0: risc main @ 37f25000
bttv0: gpio: en=00000000, out=00000000 in=00feffff [init]
bttv0: BT878A ARESET
bttv0: tveeprom i2c attach [addr=0x50,client=tveeprom]
bttv0: using tuner=-1
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: gpio: en=00020303, out=00000000 in=00fcfcfc [audio: mute]
bttv0: video mux: input=0 mux=2
bttv0: gpio: en=00020303, out=00000000 in=00fcfcfc [audio: mute]
bttv0: PLL: 28636363 => 35468950 .<7>bttv0: gpio: en=00020303, out=00000000 in=00fcfcfc [audio: mute]
 ok

So the issue now is that the audio is WAY to high so it is very distorted.
The audio is controlled via X9221A chips on the i2c bus at 0x50, there are
not drivers for X9221 so I can't lower the audio levels. Anyone able to
help me with this last part???


><>
Nathan Stratton                         CTO, Voila IP Communications
nathan at robotics.net                  nathan at voilaip.com
http://www.robotics.net                 http://www.voilaip.com

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

* Re: Osprey 440 almost supported!!! Need X9221 i2c support!
  2007-06-22  2:41 Osprey 440 almost supported!!! Need X9221 i2c support! Nathan Allen Stratton
@ 2007-06-22  8:51 ` Clemens Ladisch
  2007-06-22 15:10   ` Nathan Allen Stratton
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2007-06-22  8:51 UTC (permalink / raw)
  To: Nathan Allen Stratton, alsa-devel

Nathan Allen Stratton wrote:
> [...]
> So the issue now is that the audio is WAY to high so it is very distorted.
> The audio is controlled via X9221A chips on the i2c bus at 0x50, there are
> not drivers for X9221 so I can't lower the audio levels.

There is a datasheet for these chips, so writing some code for this
should be easy.  However, the I2C controller is not managed by the
snd-bt87x driver but by the bttv driver.


Regards,
Clemens

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

* Re: Osprey 440 almost supported!!! Need X9221 i2c support!
  2007-06-22  8:51 ` Clemens Ladisch
@ 2007-06-22 15:10   ` Nathan Allen Stratton
  0 siblings, 0 replies; 3+ messages in thread
From: Nathan Allen Stratton @ 2007-06-22 15:10 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

On Fri, 22 Jun 2007, Clemens Ladisch wrote:

> Nathan Allen Stratton wrote:
> > [...]
> > So the issue now is that the audio is WAY to high so it is very distorted.
> > The audio is controlled via X9221A chips on the i2c bus at 0x50, there are
> > not drivers for X9221 so I can't lower the audio levels.
>
> There is a datasheet for these chips, so writing some code for this
> should be easy.  However, the I2C controller is not managed by the
> snd-bt87x driver but by the bttv driver.

Old linux drivers (no longer compile on suse, or fedora) should help:

ftp://ftp.viewcast.com/pub/OSP-MM/Linux/latest

Now that we know the GPIO settings, how hard is it to add i2c support in
bttv?

-Nathan

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

end of thread, other threads:[~2007-06-22 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22  2:41 Osprey 440 almost supported!!! Need X9221 i2c support! Nathan Allen Stratton
2007-06-22  8:51 ` Clemens Ladisch
2007-06-22 15:10   ` Nathan Allen Stratton

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.