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>
This commit is contained in:
parent
3eab3304ce
commit
2f4092298d
|
@ -214,6 +214,11 @@ int qcom_pmic_typec_port_get_cc(struct pmic_typec_port *pmic_typec_port,
|
|||
if (ret)
|
||||
goto done;
|
||||
switch (val & DETECTED_SRC_TYPE_MASK) {
|
||||
case AUDIO_ACCESS_RA_RA:
|
||||
val = TYPEC_CC_RA;
|
||||
*cc1 = TYPEC_CC_RA;
|
||||
*cc2 = TYPEC_CC_RA;
|
||||
break;
|
||||
case SRC_RD_OPEN:
|
||||
val = TYPEC_CC_RD;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue