]> git.karo-electronics.de Git - karo-tx-linux.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)
commitbed61935cc5b70f84480dfd465c0e15a060c1f2c
treea347a0d361fafdf9110dd75d911df9e8b2031219
parentddd624c332698eb3ee5293bca6b5b3a97d05c0b6
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