• Chris Lu's avatar
    Bluetooth: btusb: mediatek: add ISO data transmission functions · ceac1cb0
    Chris Lu authored
    This patch implements functions for ISO data send and receive in btusb
    driver for MediaTek's controller.
    
    MediaTek defines a specific interrupt endpoint for ISO data transmissin
    because the characteristics of interrupt endpoint are similar to the
    application of ISO data which can support guaranteed transmissin
    bandwidth, enough maximum data length and error checking mechanism.
    
    Driver sets up ISO interface and endpoints in btusb_mtk_setup and clears
    the setup in btusb_mtk_shutdown. These flow can't move to btmtk.c due to
    btusb_driver is only defined in btusb.c when claiming/relaesing interface.
    ISO packet anchor stops when driver suspending and resubmit interrupt urb
    for ISO data when driver resuming.
    Signed-off-by: default avatarChris Lu <chris.lu@mediatek.com>
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    ceac1cb0
btmtk.c 36.4 KB