ALSA: hda - Add hduadio support to DEVTABLE
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Tue, 29 Sep 2015 08:26:10 +0000 (13:56 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Oct 2015 08:14:42 +0000 (10:14 +0200)
commitda23ac1e40ce844d1a9553906bdacce160af76f6
treec31206e3057a14282a3cd134c7e4b74d6500639d
parent93ed8560e98afc486df94f5a6238c1f0894b38b8
ALSA: hda - Add hduadio support to DEVTABLE

For generating modalias entries automatically, move the definition of
struct hda_device_id to linux/mod_devicetable.h and add the handling
of this record in file2alias helper.  The new modalias is represented
with combination of vendor id, device id, and api version as
"hdaudio:vNrNaN".

This patch itself doesn't convert the existing modaliases.  Since they
were added manually, this patch won't give any regression by itself at
this point.

[Modified the modalias format to adapt the api_version field, and drop
 invalid ANY_ID definition by tiwai]

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.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>
include/linux/mod_devicetable.h
include/sound/hdaudio.h
scripts/mod/devicetable-offsets.c
scripts/mod/file2alias.c
sound/hda/hda_bus_type.c