diff --git a/firmware/common/wm8731.cpp b/firmware/common/wm8731.cpp index 6ecd06651..15e7e6daf 100644 --- a/firmware/common/wm8731.cpp +++ b/firmware/common/wm8731.cpp @@ -36,5 +36,9 @@ void WM8731::write(const address_t reg_address, const reg_t value) { bus.transmit(bus_address, values.data(), values.size()); } +reg_t WM8731::read(const address_t reg_address) { + return map.w[reg_address]; +} + } /* namespace wm8731 */ } /* namespace wolfson */ diff --git a/firmware/common/wm8731.hpp b/firmware/common/wm8731.hpp index 4a0e1f984..ab0833902 100644 --- a/firmware/common/wm8731.hpp +++ b/firmware/common/wm8731.hpp @@ -394,6 +394,8 @@ public: // write(Register::AnalogAudioPathControl); // } + reg_t read(const address_t reg_address); + private: I2C& bus; const I2C::address_t bus_address;