mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ALSA: hda - Add api_version to hda_device_id struct
For distinguishing the difference between HDA legacy and ext codec driver entries, we need to expose the value corresponding to type field. This patch adds a new field, api_version, to hda_device_id struct, so that this information is embedded in modalias string. Although the information is basically redundant (struct hdac_device already has type field), the helper that extracts from MODULE_DEVICE_TABLE() won't take it account except for the exported table entries themselves. So we need to put the same information in the table, too. Reviewed-by: Vinod Koul <[email protected]> Tested-by: Subhransu S Prusty <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
7fbe824a0f
commit
93ed8560e9
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ extern struct bus_type snd_hda_bus_type;
|
|||
struct hda_device_id {
|
||||
__u32 vendor_id;
|
||||
__u32 rev_id;
|
||||
__u8 api_version;
|
||||
const char *name;
|
||||
unsigned long driver_data;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue