]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: oxygen: modify the SPI writing function
authorRoman Volkov <v1ron@mail.ru>
Fri, 24 Jan 2014 12:18:03 +0000 (16:18 +0400)
committerClemens Ladisch <clemens@ladisch.de>
Wed, 29 Jan 2014 19:45:44 +0000 (20:45 +0100)
commit57fa5f5d17d8fd11234c6cceabe550c1ac9424e9
treed7dfa1fe1c0a0a1ac98ddc953620ff35c6b92598
parent3b0a4549ab940c2db0a0ebc1833aca1a9e3decaa
ALSA: oxygen: modify the SPI writing function

Modify the oxygen_write_spi() function to use the newly
introduced oxygen_wait_spi() function. Change return value
from void to int, so it can return error codes. Older
drivers just ignore that return value, new drivers can
check this value. We need to wait AFTER
initiating the SPI transaction, otherwise read
operation will not work.

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