diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-13 04:43:54 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-13 04:43:54 -0400 |
commit | eacf6e0a238923dfce0626450adcb6d486072f28 (patch) | |
tree | 2e56a0550e3680092591b1cea0473f8177e15d74 /sound/hda | |
parent | e1c78df1da112f2644058af2425dd5ca3eb1a96a (diff) |
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.c | 2 |
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, \ | |||
36 | } \ | 36 | } \ |
37 | static DEVICE_ATTR_RO(type) | 37 | static DEVICE_ATTR_RO(type) |
38 | 38 | ||
39 | CODEC_ATTR(type); | ||
39 | CODEC_ATTR(vendor_id); | 40 | CODEC_ATTR(vendor_id); |
40 | CODEC_ATTR(subsystem_id); | 41 | CODEC_ATTR(subsystem_id); |
41 | CODEC_ATTR(revision_id); | 42 | CODEC_ATTR(revision_id); |
@@ -45,6 +46,7 @@ CODEC_ATTR_STR(vendor_name); | |||
45 | CODEC_ATTR_STR(chip_name); | 46 | CODEC_ATTR_STR(chip_name); |
46 | 47 | ||
47 | static struct attribute *hdac_dev_attrs[] = { | 48 | static struct attribute *hdac_dev_attrs[] = { |
49 | &dev_attr_type.attr, | ||
48 | &dev_attr_vendor_id.attr, | 50 | &dev_attr_vendor_id.attr, |
49 | &dev_attr_subsystem_id.attr, | 51 | &dev_attr_subsystem_id.attr, |
50 | &dev_attr_revision_id.attr, | 52 | &dev_attr_revision_id.attr, |