Jump to main content

##

# 3.3.2.3.1 TPL Table Configuration for Audio v1.0 Devices

The Host Layer attaches the Audio v1.0 Host Client Driver to a device when the device class in the Interface descriptor matches the entry in the TPL table. When specifying the entry for the Audio v1.0 device, the entry for the Audio v1.0 device, the driver interface must be set to USB_HOST_AUDIO_V1_0_INTERFACE. This will attach the Audio v1.0 Host Client Driver to the device when the USB Host matches the TPL entry to the device. The following code shows possible TPL table options for matching Audio v1.0 Devices.

    /* This code shows an example of TPL table entries for supporting Audio v1.0
     * devices. Note the driver interface is set to USB_HOST_AUDIO_V1_0_INTERFACE. This
     * will load the Audio v1.0 Host Client Driver when there is TPL match */

    const USB_HOST_TPL_ENTRY USBTPList[1] =
    {
        /* This entry looks for any Audio v1.0 device. The Audio v1.0 Host Client Driver will
         * check if this is an Audio Streaming Device and will then load itself */
        TPL_INTERFACE_CLASS(USB_AUDIO_CLASS_CODE, NULL, USB_HOST_AUDIO_V1_0_INTERFACE),

    };