Skip to contentSkip to conversation

ASoC: special SPI format for that5173 driver in daisy chain mode

DISCUSSION Christian Schörkhuber 1 participant 1 message Oct 10, 2012

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm working on an ASoC driver for the THAT5173 microphone preamplifier which is controlled via SPI. When operating in daisy chain mode (4 amps) the desired format is a bit odd: I need to write four 16 bit spi commands (one gain setting for each amp) in a row without raising the chipselect line between commands. That is, I need to write one 64 bit SPI command that is composed of 4 different values (and 4 register addresses which are all 0).

Usually I use regmap but I don't see how I can construct such a message with regmap. How can this be done (with or without regmap)?

Thanks,
Chris