ALSA: hda - Expose codec type sysfs
[firefly-linux-kernel-4.4.55.git] / sound / hda / hdac_sysfs.c
index 18aea43d230d9f873e477fd716eb85abd3970464..0a6ce3b84cc474acb96ef435d02d7a7dfd926b42 100644 (file)
@@ -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,