]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: oxygen: Xonar DG(X): add new CS4245 SPI functions
authorRoman Volkov <v1ron@mail.ru>
Fri, 24 Jan 2014 12:18:08 +0000 (16:18 +0400)
committerClemens Ladisch <clemens@ladisch.de>
Wed, 29 Jan 2014 19:45:46 +0000 (20:45 +0100)
commitbe2b948e58a3a7dd8ba35f5474d9bcd1778d9989
treea347a0d361fafdf9110dd75d911df9e8b2031219
parente5fc0b7d6beb721d6b597d15b1024e64edc1e401
ALSA: oxygen: Xonar DG(X): add new CS4245 SPI functions

Add the new SPI write and read functions. The SPI read function
is used for creating initial registers dump and may be used for
debugging purposes. SPI operations are cached, so there is a new
function to manage the cache (shadow). I have to remove
the shift from the CS4245_SPI_* constants, since when
we are performing the reading, we need to shift by 8 instead
of 16.

Signed-off-by: Roman Volkov <v1ron@mail.ru>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/pci/oxygen/cs4245.h
sound/pci/oxygen/xonar_dg.c
sound/pci/oxygen/xonar_dg.h