aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Volkov <v1ron@mail.ru>2014-01-24 07:18:12 -0500
committerClemens Ladisch <clemens@ladisch.de>2014-01-29 14:45:48 -0500
commit06f70d0da029a0ae9dbb7e383f853db483575f87 (patch)
tree1791cc13b21d7a2ac6e9799872783ebf501823af
parent1f91ecc14deea9461aca93273d78871ec4d98fcd (diff)
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>
-rw-r--r--sound/pci/oxygen/xonar_dg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/oxygen/xonar_dg.c b/sound/pci/oxygen/xonar_dg.c
index 329da5434556..4a4266519934 100644
--- a/sound/pci/oxygen/xonar_dg.c
+++ b/sound/pci/oxygen/xonar_dg.c
@@ -617,11 +617,12 @@ static void dump_cs4245_registers(struct oxygen *chip,
617 struct snd_info_buffer *buffer) 617 struct snd_info_buffer *buffer)
618{ 618{
619 struct dg *data = chip->model_data; 619 struct dg *data = chip->model_data;
620 unsigned int i; 620 unsigned int addr;
621 621
622 snd_iprintf(buffer, "\nCS4245:"); 622 snd_iprintf(buffer, "\nCS4245:");
623 for (i = 1; i <= 0x10; ++i) 623 cs4245_read_spi(chip, CS4245_INT_STATUS);
624 snd_iprintf(buffer, " %02x", data->cs4245_shadow[i]); 624 for (addr = 1; addr < ARRAY_SIZE(data->cs4245_shadow); addr++)
625 snd_iprintf(buffer, " %02x", data->cs4245_shadow[addr]);
625 snd_iprintf(buffer, "\n"); 626 snd_iprintf(buffer, "\n");
626} 627}
627 628