summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-04-07 15:55:15 +0200
committerTakashi Iwai <tiwai@suse.de>2011-04-07 15:55:15 +0200
commita12d3e1e1cb67bab2411966b345151c316633847 (patch)
treebe1a29ccb9ebb22fa659012a63d13b0e6f8008bb /sound/pci/hda/hda_codec.h
parentMerge branch 'fix/hda' into topic/hda (diff)
downloadlinux-a12d3e1e1cb67bab2411966b345151c316633847.tar.xz
linux-a12d3e1e1cb67bab2411966b345151c316633847.zip
ALSA: hda - Remember connection lists
The connection lists are static and we can reuse the previous results instead of querying via verb at each time. This will reduce the I/O in the runtime especially for some codec auto-parsers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index e46d5420a9f2..7d57a66c1b31 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -825,6 +825,8 @@ struct hda_codec {
struct hda_cache_rec amp_cache; /* cache for amp access */
struct hda_cache_rec cmd_cache; /* cache for other commands */
+ struct snd_array conn_lists; /* connection-list array */
+
struct mutex spdif_mutex;
struct mutex control_mutex;
unsigned int spdif_status; /* IEC958 status bits */