Sam Chesney
46a11d869f
Rename I2S_DOWNSAMPLE_FACTOR to I2S_DOWNSAMPLE_FACTOR_IN
2017-01-11 16:54:20 +00:00
Sam Chesney
a997f39237
Rename I2S_DOWNSAMPLE_MONO to I2S_DOWNSAMPLE_MONO_IN
2017-01-09 15:39:03 +00:00
Sam Chesney
1bd7dcf168
Add I2S resync to LRCLK logic when CODEC_MASTER=1
...
In CODEC master mode, the I/O loop assumes L/RCLK = 32bit clocks.
Check this every iteration and resync if we get a bclk glitch.
2016-12-21 16:26:07 +00:00
Sam Chesney
c422ca5181
Turn on port buffers for p_lrclk and p_bclk when CODEC_MASTER=1
2016-12-21 16:26:07 +00:00
Sam Chesney
5c46cc476d
Update DS3 library calls to use new API
2016-12-08 13:01:47 +00:00
Ross Owen
f1b7ee13ba
Fixed non-streaming issue on some builds after merge
2016-12-07 17:25:38 +00:00
Ross Owen
66cb768975
Merge branch 'DEV/OPTS_BECLEAR' into smart_mic_plus
2016-12-07 14:30:14 +00:00
Sam Chesney
4b9e323593
Move defines and checks to expected places
2016-12-07 11:41:05 +00:00
Sam Chesney
5e09197c15
Remove unused include
2016-12-07 10:14:51 +00:00
Sam Chesney
3fe1a6e8cc
Allow mono downsampling mode
...
Allows for reduced resource usage when I2S is used as an input to a mono
AEC.
2016-12-07 10:11:47 +00:00
Sam Chesney
bcc9c23a71
Memory optimisation of I2S DS3 integration
2016-12-06 17:29:11 +00:00
Sam Chesney
c5eb740637
Call DS3 functions on incoming I2S samples
...
Downsampling is enabled only when I2S_DOWNSAMPLE_FACTOR is defined as>
1 (must be 3).
2016-12-06 15:09:06 +00:00
Sam Chesney
6ab9bef80c
Remove I2S_RATE_SCALING define
...
Just use the I2S_DOWNSAMPLE_FACTOR define now.
2016-12-06 15:09:06 +00:00
Ross Owen
ca1925db7a
Opts for fitting beclear
2016-12-05 19:26:14 +00:00
Sam Chesney
fe6f795e5a
Fix brace placement
...
Broken in commit 020cf2dad7 .
Fix to ensure that samples are not output to USB layer on receipt of a
command.
2016-11-30 10:18:57 +00:00
Sam Chesney
dde838c940
Update I2S input buffering to support downsampling scheme
...
Also:
- Replace defines added for I2S downsampling with existing defines.
- Remove downsampledI2S[] buffer until DS3 API is finalised.
Samples from samplesIn[] are output instead for now.
2016-11-30 10:12:26 +00:00
Sam Chesney
020cf2dad7
Add DS3 to I2S input
...
- I2S downsampling is disabled by default.
- I2S rate is always scaled up:
The host may not issue a SET_SAMPLE_FREQ command so always scale up,
and back down where the value may be a another command.
2016-11-29 12:19:25 +00:00
Sam Chesney
2c5020d6d3
Fix typo
2016-11-23 16:31:39 +00:00
Sam Chesney
22ee710f01
Fix typo
2016-11-23 16:30:41 +00:00
Ross Owen
09764eb627
Intra-frame sample delay (ADC/TDM)
2016-08-17 11:10:10 +01:00
Ross Owen
b7c11788d5
More include fixes.
2016-08-11 20:38:45 +01:00
Ross Owen
236bf6dba8
Include file fixups (build fail)
2016-08-11 20:05:54 +01:00
Ross Owen
c49133723e
Revert "BCD_DEVICE version bump"
...
This reverts commit c67f5e454d .
2016-08-02 18:08:35 -04:00
Ross Owen
c67f5e454d
BCD_DEVICE version bump
2016-08-02 16:19:38 -04:00
Ross Owen
60b6ca2782
xpd: Cleaned up whitespace
2016-07-11 17:01:12 +01:00
Ross Owen
645209a97b
Removed old comment.
2016-06-23 12:53:32 +01:00
Ross Owen
547d9a77d3
RUN_DSP_TASK tidy in audio_io
2016-05-20 15:29:35 +01:00
Ross Owen
5376b5027f
i_audMan no longer hidden by a define. PDM min transfer uses transaction.
2016-05-20 14:39:01 +01:00
Ross Owen
702e7a7e1f
Initial work to move DSP location
2016-05-17 11:06:19 +01:00
Ross Owen
d0929ae067
xpd: Cleaned up whitespace
2016-04-26 11:32:19 +01:00
Ross Owen
c4d4505e83
All instances of i_dsp guarded by RUN_DSP_TASK
2016-04-22 17:23:37 +01:00
Ross Owen
aee3851f4c
Audio sample buffers now magic value of 32. Was NUM_USB_CHAN_OUT/IN which causes issues if USB chan count < audio IF count.
2016-04-21 18:40:37 +01:00
Ross Owen
8e1b71f70c
All input samples now run through the double buffer to allow for the UserBufferManagement function. samplesIn now 2D to make this a bit easier. DSP code now in app space.
2016-04-21 18:21:08 +01:00
Ross Owen
845ed8f001
Initial changes to allow for xvsm demo
2016-04-21 16:43:25 +01:00