summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpi6000.c
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2011-02-10 05:26:00 +0100
committerTakashi Iwai <tiwai@suse.de>2011-02-10 18:49:23 +0100
commitffdb57874643a8ad65a46a02dceb2211283816c2 (patch)
tree1e7e199de9514f80102791638052cb4b902b955e /sound/pci/asihpi/hpi6000.c
parentALSA: asihpi - Rewrite PCM timer function. Update control names. (diff)
downloadlinux-ffdb57874643a8ad65a46a02dceb2211283816c2.tar.xz
linux-ffdb57874643a8ad65a46a02dceb2211283816c2.zip
ALSA: asihpi - Add adapter index to cache info for debug.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpi6000.c')
-rw-r--r--sound/pci/asihpi/hpi6000.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/asihpi/hpi6000.c b/sound/pci/asihpi/hpi6000.c
index c85db49e5ec5..c486af182227 100644
--- a/sound/pci/asihpi/hpi6000.c
+++ b/sound/pci/asihpi/hpi6000.c
@@ -582,6 +582,9 @@ static short create_adapter_obj(struct hpi_adapter_obj *pao,
pao->adapter_type, pao->index);
pao->open = 0; /* upon creation the adapter is closed */
+ if (phw->p_cache)
+ phw->p_cache->adap_idx = pao->index;
+
return hpi_add_adapter(pao);
}