From 8dd82674137c5aa8bd77040feac306e2cc78172a Mon Sep 17 00:00:00 2001 From: Purushottam Kushwaha Date: Fri, 3 Jun 2022 15:14:24 +0530 Subject: [PATCH] QCA vendor attribute to configure direct data path for audio traffic Add a new QCA vendor attribute QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH to QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION to configure audio data path. Possible audio data paths are defined in enum qca_wlan_audio_data_path. Signed-off-by: Purushottam Kushwaha --- src/common/qca-vendor.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 950bb8738..acf35543f 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -2660,6 +2660,13 @@ enum qca_wlan_vendor_attr_config { */ QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, + /* + * 8-bit unsigned value. This attribute can be used to configure the + * data path mode to be followed for audio traffic. Possible values + * are defined in enum qca_wlan_audio_data_path. + */ + QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82, + /* keep last */ QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = @@ -12298,4 +12305,18 @@ enum qca_wlan_vendor_attr_ratemask_params { QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, }; +/** + * enum qca_wlan_audio_data_path - Defines the data path to be used for audio + * traffic. + * + * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR: + * Send audio traffic through the host processor. + * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP: + * Send audio traffic using the low power DSP to/from the encoder. + */ +enum qca_wlan_audio_data_path { + QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0, + QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1, +}; + #endif /* QCA_VENDOR_H */