sound: oxygen: automatically restore overwritten EEPROM
authorClemens Ladisch <clemens@ladisch.de>
Thu, 19 Feb 2009 07:44:12 +0000 (08:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Feb 2009 09:22:26 +0000 (10:22 +0100)
commit1275d6f608abda23d101ada17dc39940192d4bc4
tree17a9954dc31d2fa79494fe9b9b867a48a1dafc3e
parent30459d7b1843cbdea56ca120c8cac10dc5613e90
sound: oxygen: automatically restore overwritten EEPROM

If the EEPROM was partially overwritten (which seems to happen before the OS is
booted), restore its entire contents by deducing it from the remaining
information.

This does not have any effect on the Linux driver, which works even with
incomplete information in the EEPROM, but it makes other drivers work again.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/oxygen.h
sound/pci/oxygen/oxygen_io.c
sound/pci/oxygen/oxygen_lib.c