Re: [PATCH] go7007: Convert to the new i2c device binding model



Hallo Clemens,

On Tue, 21 Apr 2009 09:39:11 +0200, Clemens Ladisch wrote:
Jean Delvare wrote:
I am puzzled by the s2250 I2C address, 0x86 really doesn't fit in
7 bits, there must be something wrong.

- .addr = 0x34,
+ .addr = 0x86, /* ?? */

-#define S2250_VIDDEC 0x86

Many I2C controllers use an 8-bit address register, with the lowest bit
being the read/write bit (because this is the order in which the bits
are transmitted over the bus). So it looks as if the actual address
_is_ 0x34;

0x86 >> 1 is actually 0x43, not 0x34. 0x34 is the address for the audio
part of the device:

#define TLV320_ADDRESS 0x34

The original code was a little messy and used the same i2c_client for
both parts, changing the address on the fly.

That being said, I think you are probably right, the 7-bit device's
address is probably 0x43 for video. And now that we mention that,
probably 0x34 for audio is incorrect as well. "TLV320" suggests some
incarnation of the TI TLV320 series, many of which are already
supported in the kernel, and all I've seen had address 0x18, 0x19, 0x1a
or 0x1b. Given that 0x34 >> 1 is 0x1a... it's a good hint that 0x34
wasn't a 7-bit address value, right?

I'll change the addresses to 0x43 for video and 0x1a for audio. Updated
patch coming.

the S2250_VIDDEC symbol is probably a relict of the old
driver that programmed the I2C controller directly.

Could be. But then this means that the driver as it stands in the
kernel today, doesn't work. Which, in a way, is good news, as it means
I can push my changes immediately. Even if I got the conversion wrong,
it won't be more broken than it already was ;)

Thanks,
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Status of Athlon 64 K8V-D support was (Re: Strange pauses in 2.6.2-rc1 / AMD64)
    ... I'm only running the 2.6 kernel and haven't even tried the ... The board comes with 2 software RAID SATA controllers in addition to the ... Gentoo's gentoo-dev-sources kernel has a driver for the other controller ... 3COM card that didn't fail under my high load conditions), ...
    (Linux-Kernel)
  • RE: [linux-audio-user] snd-hdsp+cardbus+M6807 notebook=distortion -- FIXED!
    ... > You haven't said which kernel version you're using to test this out ... > the audio, and then try undoing each change individually. ... I did that with the latency and it still worked for the ... and the HDSP driver does not own the cardbus controller. ...
    (Linux-Kernel)
  • Re: very early kernel panic on system with 4GB mem
    ... page fault in kernel mode. ... Adds ~128k to driver. ... # RAID controllers interfaced to the SCSI subsystem ... # Floating point support - do not disable. ...
    (freebsd-stable)
  • Re: After a newly installed Windows XP Home Edition, no sound from
    ... the machine has an internal speaker and an audio output. ... Driver Signed: Yes ... >>>>Microsoft Kernel Acoustic Echo ...
    (microsoft.public.windowsxp.hardware)
  • Corrupted/lost MS audio drivers, error code 39 in device manager
    ... The other week my PC had a spell of rebooting itself and performing a scandisk each time, and some allocation units were lost. ... MS Kernel Wave Audio Mixer, MS Kernel DLS Synthesizer & MS Kernel DRM Audio Descrambler. ... Following the XP Toubleshooter's advice and trying to uninstall and reinstall the driver has the PC automatically looking for a driver and saying there is nothing better than the existing one! ...
    (microsoft.public.windowsxp.perform_maintain)

Loading