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>
Showing
- include/linux/mod_devicetable.h 8 additions, 0 deletionsinclude/linux/mod_devicetable.h
- include/sound/hdaudio.h 1 addition, 11 deletionsinclude/sound/hdaudio.h
- scripts/mod/devicetable-offsets.c 5 additions, 0 deletionsscripts/mod/devicetable-offsets.c
- scripts/mod/file2alias.c 17 additions, 0 deletionsscripts/mod/file2alias.c
- sound/hda/hda_bus_type.c 1 addition, 0 deletionssound/hda/hda_bus_type.c
Loading
Please register or sign in to comment