mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
mfd: cpcap-whisper: Config EMUMODE for audio when MODE_PU set
When the 100K ID PU is enabled, it puts the basic dock into audio mode. The EMUMODE bits in CPCAP should also be configured so audio can be routed out the D+/D- lines. Change-Id: I9bc7718391156932c116c980ccb4d41942356c8b Signed-off-by: Greg Meiste <w30289@motorola.com>
This commit is contained in:
@@ -552,6 +552,14 @@ int cpcap_accy_whisper(struct cpcap_device *cpcap, unsigned int cmd,
|
||||
value = (cmd & CPCAP_WHISPER_MODE_PU) ? CPCAP_BIT_ID100KPU : 0;
|
||||
retval |= cpcap_regacc_write(cpcap, CPCAP_REG_USBC1,
|
||||
value, CPCAP_BIT_ID100KPU);
|
||||
if (value) {
|
||||
retval |= cpcap_regacc_write(cpcap, CPCAP_REG_USBC2,
|
||||
(CPCAP_BIT_EMUMODE2 |
|
||||
CPCAP_BIT_EMUMODE0),
|
||||
(CPCAP_BIT_EMUMODE2 |
|
||||
CPCAP_BIT_EMUMODE1 |
|
||||
CPCAP_BIT_EMUMODE0));
|
||||
}
|
||||
|
||||
/* Report dock type to system. */
|
||||
dock = (cmd & CPCAP_WHISPER_ACCY_MASK) >>
|
||||
|
||||
Reference in New Issue
Block a user