projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f91ecc
)
ALSA: oxygen: modify CS4245 register dumping function
author
Roman Volkov
<v1ron@mail.ru>
Fri, 24 Jan 2014 12:18:12 +0000
(16:18 +0400)
committer
Clemens Ladisch
<clemens@ladisch.de>
Wed, 29 Jan 2014 19:45:48 +0000
(20:45 +0100)
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>
sound/pci/oxygen/xonar_dg.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/oxygen/xonar_dg.c
b/sound/pci/oxygen/xonar_dg.c
index 329da5434556ab316e32b87af09983abca620131..4a42665199344dfa2510e4dbe37ced5695c76e41 100644
(file)
--- 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,
struct snd_info_buffer *buffer)
{
struct dg *data = chip->model_data;
- unsigned int
i
;
+ unsigned int
addr
;
snd_iprintf(buffer, "\nCS4245:");
- for (i = 1; i <= 0x10; ++i)
- snd_iprintf(buffer, " %02x", data->cs4245_shadow[i]);
+ cs4245_read_spi(chip, CS4245_INT_STATUS);
+ for (addr = 1; addr < ARRAY_SIZE(data->cs4245_shadow); addr++)
+ snd_iprintf(buffer, " %02x", data->cs4245_shadow[addr]);
snd_iprintf(buffer, "\n");
}