summaryrefslogtreecommitdiffstats
path: root/sound/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-13 10:43:54 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-13 10:43:54 +0200
commiteacf6e0a238923dfce0626450adcb6d486072f28 (patch)
tree2e56a0550e3680092591b1cea0473f8177e15d74 /sound/hda
parente1c78df1da112f2644058af2425dd5ca3eb1a96a (diff)
downloadlinux-eacf6e0a238923dfce0626450adcb6d486072f28.tar.bz2
ALSA: hda - Expose codec type sysfs
The type field of HD-audio codec object should be exposed to user-space so that it can identify which driver type to bind (legacy / asoc). Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
-rw-r--r--sound/hda/hdac_sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/hda/hdac_sysfs.c b/sound/hda/hdac_sysfs.c
index 18aea43d230d..0a6ce3b84cc4 100644
--- a/sound/hda/hdac_sysfs.c
+++ b/sound/hda/hdac_sysfs.c
@@ -36,6 +36,7 @@ static ssize_t type##_show(struct device *dev, \
} \
static DEVICE_ATTR_RO(type)
+CODEC_ATTR(type);
CODEC_ATTR(vendor_id);
CODEC_ATTR(subsystem_id);
CODEC_ATTR(revision_id);
@@ -45,6 +46,7 @@ CODEC_ATTR_STR(vendor_name);
CODEC_ATTR_STR(chip_name);
static struct attribute *hdac_dev_attrs[] = {
+ &dev_attr_type.attr,
&dev_attr_vendor_id.attr,
&dev_attr_subsystem_id.attr,
&dev_attr_revision_id.attr,