ALSA: oxygen: modify CS4245 register dumping function

Change the function to read the data from the new shadow buffer.

Signed-off-by: Roman Volkov <v1ron@mail.ru>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>

authored by Roman Volkov and committed by Clemens Ladisch 06f70d0d 1f91ecc1

+4 -3
+4 -3
sound/pci/oxygen/xonar_dg.c
··· 617 617 struct snd_info_buffer *buffer) 618 618 { 619 619 struct dg *data = chip->model_data; 620 - unsigned int i; 620 + unsigned int addr; 621 621 622 622 snd_iprintf(buffer, "\nCS4245:"); 623 - for (i = 1; i <= 0x10; ++i) 624 - snd_iprintf(buffer, " %02x", data->cs4245_shadow[i]); 623 + cs4245_read_spi(chip, CS4245_INT_STATUS); 624 + for (addr = 1; addr < ARRAY_SIZE(data->cs4245_shadow); addr++) 625 + snd_iprintf(buffer, " %02x", data->cs4245_shadow[addr]); 625 626 snd_iprintf(buffer, "\n"); 626 627 } 627 628