History log of /external/adhd/cras/src/server/cras_audio_area.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a898c1799cd5780996cf73fa3f8c1397ba06fef2 09-Dec-2016 Hsin-Yu Chao <hychao@chromium.org> CRAS: audio_area - Remove unused argument

The purpose of the skip_zero argument has already been replaced
by the work in commit da9e4afc so remove them.

BUG=None
TEST=unittest still pass

Change-Id: I8fad0d1201943be413b7bc70ea965dc662e3040c
Reviewed-on: https://chromium-review.googlesource.com/418419
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/server/cras_audio_area.h
a7031f6452138ef6edd64f5ef75002299e2dd32a 16-Mar-2016 Cheng-Yi Chiang <cychiang@chromium.org> CRAS: dev_stream - Scale captured samples when mixing to dev_stream if needed

Scale captured samples in dev_stream_capture when the samples are
copied from input buffer. Pass the software gain scaler to
cras_audio_area_copy and do scaling optionally in
cras_mix_add_scale_stride.
There are two reasons to scale when adding the samples.
1. Stream might read only part of the input buffer. If we scale in input buffer,
we may scale same sample multiple times.
2. There might be multiple input devices. If we scale in audio area of
dev stream after mixing samples from a device, we may scale same sample
multiple times.

Let audio_thread pass 1.0f scaler for now. In the future patch it will pass a
gain scaler when needed.

BUG=chrome-os-partner:50139
TEST=make check

Change-Id: I10368b1366a44f1f55dd00b52de0724029299aa4
Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/332917
Reviewed-by: Ben Zhang <benzh@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/server/cras_audio_area.h
8cd4a917e6cef477799245a4e81fe3709ceff6c9 26-Nov-2014 Dylan Reid <dgreid@chromium.org> CRAS: audio_area - take full destination format as an arg

More info than just the format bytes will be needed to support formats
other than s16_le in audio_area_copy.

BUG=chromium:219948
TEST=updated unittests

Change-Id: Ia29f9a38b083d8fc20d427ac1a48952f6dcd96c7
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/232041
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
/external/adhd/cras/src/server/cras_audio_area.h
bc0496defda90cdc6d4427d43bcbb04338400a0e 11-Oct-2014 Dylan Reid <dgreid@chromium.org> CRAS: dev_stream - track read offset per device.

Similar to how output devices work, track each stream's read offset
into the device. This will allow streams that need SRC to read less
than the maximum amount of frames.

BUG=chromium:421941
TEST=play and record from multiple devices.

Change-Id: I1a5445bee41e17196557e9cce2795f97ed66f1b8
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222948
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
/external/adhd/cras/src/server/cras_audio_area.h
757424bc1d66a66cce33cb7ecf424da97d50e782 25-Sep-2014 Dylan Reid <dgreid@chromium.org> CRAS: audio_area - Rename src_index.

Switch src_index to skip_zero. The new name is a better indication of
what this parameter is used for.

Change-Id: Ib0750569124d9efb4341c92cca97d2292a742e32
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/219976
/external/adhd/cras/src/server/cras_audio_area.h
1c84d884fdfcd82c85cc6ab07a4b208b2d34d887 18-Jun-2014 Hsin-Yu Chao <hychao@chromium.org> CRAS: audio area: Move copy function to audio area

Unittest added to cover copy area between mono and
stereo, and copy to keyboard mic 3-channel layout.

BUG=chromium:370368
TEST=unittest

Change-Id: Iee4dba491b6290c1647883c868c71ee0154ce93a
Reviewed-on: https://chromium-review.googlesource.com/204678
Tested-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
/external/adhd/cras/src/server/cras_audio_area.h
87ee399d94dc527c4ebe3e4da0febe1490f1f5fb 09-Jun-2014 Hsin-Yu Chao <hychao@chromium.org> CRAS: audio area: Add cras_audio_area

cras_audio_area holds non-interleaved buffers of audio
sample. Which will be used for a 3-channel alsa iodev
in later changes.

BUG=chromium:370368
TEST=None

Change-Id: Ia04bc5c56521e6ae9b8cb775e16e2bbd809ab16e
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/203610
Tested-by: Hsinyu Chao <hychao@chromium.org>
/external/adhd/cras/src/server/cras_audio_area.h