diff options
author | Iliyan Malchev <malchev@google.com> | 2010-08-11 18:19:47 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:35:05 -0800 |
commit | 71ed7f4478ab1c639bfac58f1aad42c938f5732a (patch) | |
tree | afc2da551c95357fc0643da51aeb3dd16c1c37a4 /include/linux | |
parent | 7ecc23edbbc7eac2ae5af854b40af6999d55e1db (diff) |
[ARM] tegra_i2s_audio: add software downsampling for recorded data + fixes
downsampling:
-- add ioctl()s to downsample recorded data
-- supported frequencies are 8kHz, 11.025kHz, 22.05kHz, and 44.1kHz
-- downsamping to stereo and mono
-- default is 11.025kHz mono
fixes:
-- fix crashes from dequeuing DMA requests twice
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tegra_audio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/tegra_audio.h b/include/linux/tegra_audio.h index 25bf3af611e3..9dc11cc8b871 100644 --- a/include/linux/tegra_audio.h +++ b/include/linux/tegra_audio.h @@ -26,4 +26,14 @@ #define TEGRA_AUDIO_IN_START _IO(TEGRA_AUDIO_MAGIC, 0) #define TEGRA_AUDIO_IN_STOP _IO(TEGRA_AUDIO_MAGIC, 1) +struct tegra_audio_in_config { + int rate; + int stereo; +}; + +#define TEGRA_AUDIO_IN_SET_CONFIG _IOW(TEGRA_AUDIO_MAGIC, 2, \ + const struct tegra_audio_in_config *) +#define TEGRA_AUDIO_IN_GET_CONFIG _IOR(TEGRA_AUDIO_MAGIC, 3, \ + struct tegra_audio_in_config *) + #endif/*_CPCAP_AUDIO_H*/ |