Skip to content

Commit

Permalink
ALSA: hda - Expose codec type sysfs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Apr 13, 2015
1 parent e1c78df commit eacf6e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/hda/hdac_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand Down

0 comments on commit eacf6e0

Please sign in to comment.