Skip to content

Commit

Permalink
sound: oss: omap34xx: add full duplex operation for mono input/output…
Browse files Browse the repository at this point in the history
… device.

This changes permits simultaneous playback and record using the mono device (on McBSP3) and
in particular use of bluetooth device for voice dialer of voice recognition.

Signed-off-by: Eric Laurent <elaurent@google.com>
  • Loading branch information
Eric Laurent authored and Rebecca Schultz Zavin committed Apr 12, 2010
1 parent 9fe906b commit 4f76699
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 65 deletions.
8 changes: 3 additions & 5 deletions sound/oss/cpcap_audio_driver.c
Expand Up @@ -569,17 +569,15 @@ static void cpcap_audio_configure_codec(struct cpcap_audio_state *state,
| CPCAP_BIT_CLK_INV;

/* CDMA sholes is using Normal mode for uplink */
cdai_changes.value |= CPCAP_BIT_CDC_PLL_SEL;
cdai_changes.value |= CPCAP_BIT_CDC_PLL_SEL | CPCAP_BIT_CDC_DIG_AUD_FS0;

/* Setting I2S mode */
if (state->rat_type == CPCAP_AUDIO_RAT_CDMA)
cdai_changes.value |= CPCAP_BIT_CDC_DIG_AUD_FS0
| CPCAP_BIT_CDC_DIG_AUD_FS1;
cdai_changes.value |= CPCAP_BIT_CDC_DIG_AUD_FS1;

if ((state->rat_type == CPCAP_AUDIO_RAT_NONE) &&
(state->microphone == CPCAP_AUDIO_IN_AUX_INTERNAL))
cdai_changes.value |= CPCAP_BIT_MIC1_RX_TIMESLOT0
| CPCAP_BIT_CDC_DIG_AUD_FS0;
cdai_changes.value |= CPCAP_BIT_MIC1_RX_TIMESLOT0;
else
cdai_changes.value |= CPCAP_BIT_MIC2_TIMESLOT0;

Expand Down

0 comments on commit 4f76699

Please sign in to comment.