OSDN Git Service

ALSA: hda - Advertise MODALIAS in uevent
authorThierry Reding <treding@nvidia.com>
Thu, 17 Sep 2015 10:00:05 +0000 (12:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Oct 2015 08:15:53 +0000 (10:15 +0200)
commit975c947e75f09ca4910053b626be2376e3313cf2
tree187abfb655b287420f0496e5eccab91423a1f719
parentb9a94a9c787d053e8d3bb7e7dff9648e723a4533
ALSA: hda - Advertise MODALIAS in uevent

By setting the MODALIAS variable in uevents, userspace helpers will be
enabled to load modules via the module alias associated with a device.

This information is required to automatically load HDA codec drivers
instead of having to explicitly request the various modules in the HDA
core code.

[Note that currently the legacy HDA controller driver tries to bind
 codec modules manually.  It's for supporting the fallback generic
 drivers.  This new udev modalias support was added rather for ASoC
 HDA ext drivers, since this addition itself won't hurt the legacy HDA
 -- tiwai]

[Use the common helper function to generate the modalias -- tiwai]

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Subhransu S Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hda_bus_type.c