Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: qcom: properly detect Audio Accessory mode peripherals

Detect and report if the Audio Accessory device has been attached to the
corresponding USB-C port.

Acked-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20230709200235.265674-1-dmitry.baryshkov@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dmitry Baryshkov and committed by
Greg Kroah-Hartman
2f409229 3eab3304

+5
+5
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c
··· 214 214 if (ret) 215 215 goto done; 216 216 switch (val & DETECTED_SRC_TYPE_MASK) { 217 + case AUDIO_ACCESS_RA_RA: 218 + val = TYPEC_CC_RA; 219 + *cc1 = TYPEC_CC_RA; 220 + *cc2 = TYPEC_CC_RA; 221 + break; 217 222 case SRC_RD_OPEN: 218 223 val = TYPEC_CC_RD; 219 224 break;