Commit 06f70d0d authored by Roman Volkov's avatar Roman Volkov Committed by Clemens Ladisch

ALSA: oxygen: modify CS4245 register dumping function

Change the function to read the data from the new shadow buffer.
Signed-off-by: default avatarRoman Volkov <v1ron@mail.ru>
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 1f91ecc1
...@@ -617,11 +617,12 @@ static void dump_cs4245_registers(struct oxygen *chip, ...@@ -617,11 +617,12 @@ static void dump_cs4245_registers(struct oxygen *chip,
struct snd_info_buffer *buffer) struct snd_info_buffer *buffer)
{ {
struct dg *data = chip->model_data; struct dg *data = chip->model_data;
unsigned int i; unsigned int addr;
snd_iprintf(buffer, "\nCS4245:"); snd_iprintf(buffer, "\nCS4245:");
for (i = 1; i <= 0x10; ++i) cs4245_read_spi(chip, CS4245_INT_STATUS);
snd_iprintf(buffer, " %02x", data->cs4245_shadow[i]); for (addr = 1; addr < ARRAY_SIZE(data->cs4245_shadow); addr++)
snd_iprintf(buffer, " %02x", data->cs4245_shadow[addr]);
snd_iprintf(buffer, "\n"); snd_iprintf(buffer, "\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment