···186186EXPORT_SYMBOL_GPL(snd_hdac_device_set_chip_name);187187188188/**189189+ * snd_hdac_codec_modalias - give the module alias name190190+ * @codec: HDAC device191191+ * @buf: string buffer to store192192+ * @size: string buffer size193193+ *194194+ * Returns the size of string, like snprintf(), or a negative error code.195195+ */196196+int snd_hdac_codec_modalias(struct hdac_device *codec, char *buf, size_t size)197197+{198198+ return snprintf(buf, size, "hdaudio:v%08Xr%08Xa%02X\n",199199+ codec->vendor_id, codec->revision_id, codec->type);200200+}201201+EXPORT_SYMBOL_GPL(snd_hdac_codec_modalias);202202+203203+/**189204 * snd_hdac_make_cmd - compose a 32bit command word to be sent to the190205 * HD-audio controller191206 * @codec: the codec object