summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai2014-02-25 11:54:06 +0100
committerTakashi Iwai2014-02-25 12:12:55 +0100
commitb989d0444bd4999f9130d262b5ab7123d4077df8 (patch)
treedafd46414928b381e5bdd1ff5803872d9df25488 /sound/pci/hda/hda_codec.h
parentALSA: hda - Add sysfs to codec object, too (diff)
downloadkernel-qcow2-linux-b989d0444bd4999f9130d262b5ab7123d4077df8.tar.gz
kernel-qcow2-linux-b989d0444bd4999f9130d262b5ab7123d4077df8.tar.xz
kernel-qcow2-linux-b989d0444bd4999f9130d262b5ab7123d4077df8.zip
ALSA: hda - Enable sysfs attributes without CONFIG_SND_HDA_RECONFIG
Some sysfs attributes like init_pin_configs or vendor_name are really basic and should be available no matter whether the codec driver is re-configurable or not. Put them out of #ifdef CONFIG_SND_HDA_RECONFIG and allow the read-only accesses. 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, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index ad5871f3a669..a4233136cb93 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -333,8 +333,8 @@ struct hda_codec {
struct snd_array driver_pins; /* pin configs set by codec parser */
struct snd_array cvt_setups; /* audio convert setups */
-#ifdef CONFIG_SND_HDA_RECONFIG
struct mutex user_mutex;
+#ifdef CONFIG_SND_HDA_RECONFIG
struct snd_array init_verbs; /* additional init verbs */
struct snd_array hints; /* additional hints */
struct snd_array user_pins; /* default pin configs to override */