summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjula Gupta <magupta@nvidia.com>2010-07-20 14:54:30 +0530
committerGary King <gking@nvidia.com>2010-07-20 09:53:00 -0700
commit9a5e91e0d57394ba360ad04f9bb17f1e50a77b09 (patch)
tree84fa67b596ecab18f1392340e30ed2119dbf70b9
parentbb1a7adb7e06600782f0aab4eb5c53848871c3ba (diff)
[tegra ALSA] Change Default Buffer Size
- Change TEGRA_DEFAULT_BUFFER_SIZE to 4k, as it's the normal processing size in Audiofx. - Update tegra_sndfx.h to keep it in sync with audiofx header file. Change-Id: Ica7a396b4fa66134be7193a983da64b312fe5f38 Reviewed-on: http://git-master/r/4131 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
-rw-r--r--sound/soc/tegra/tegra_sndfx.h7
-rw-r--r--sound/soc/tegra/tegra_transport.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/tegra/tegra_sndfx.h b/sound/soc/tegra/tegra_sndfx.h
index 3efcdfbe6ad7..d69c0915d8b5 100644
--- a/sound/soc/tegra/tegra_sndfx.h
+++ b/sound/soc/tegra/tegra_sndfx.h
@@ -102,8 +102,8 @@ typedef NvS32 NvObjectId;
#define NvAudioFxPlaybackSplitId (0x11300001)
#define NvAudioFxRecordMixId (0x11300002)
#define NvAudioFxRecordSplitId (0x11300003)
-#define NvAudioFxLoopbackMixId (0x1130000D)
-#define NvAudioFxLoopbackSplitId (0x1130000E)
+#define NvAudioFxLoopbackMixId (0x1130000d)
+#define NvAudioFxLoopbackSplitId (0x1130000e)
#define NvAudioFxSpdifPlaybackMixId (0x11300004)
#define NvAudioFxSpdifRecordSplitId (0x11300005)
#define NvAudioFxSpdifLoopbackSplitId (0x11300006)
@@ -154,6 +154,7 @@ typedef NvS32 NvAudioFxProperty;
#define NvAudioFxProperty_PowerState (0x1040)
#define NvAudioFxProperty_SampleRate (0x1050)
#define NvAudioFxProperty_State (0x1060)
+#define NvAudioFxProperty_ProcessBufferSize (0x1070)
#define NvAudioFxPinProperty_Format (0x2000)
#define NvAudioFxDrcProperty_Drc (0x3000)
#define NvAudioFxEqProperty_Eq (0x4000)
@@ -172,7 +173,6 @@ typedef NvS32 NvAudioFxProperty;
#define NvAudioFxIoProperty_Position (0x5010)
#define NvAudioFxIoProperty_RemoveEvent (0x5020)
#define NvAudioFxIoProperty_SetMappedPositionBuffer (0x5030)
-#define NvAudioFxMixerProperty_ProcessBufferSize (0x6000)
#define NvAudioFxMixerProperty_ModeAvailable (0x6001)
#define NvAudioFxMixerProperty_ModeDisable (0x6002)
#define NvAudioFxMixerProperty_ModeEnable (0x6003)
@@ -319,6 +319,7 @@ typedef NvS32 NvAudioFxIoDevice;
#define NvAudioFxIoDevice_Aux (0x10000)
#define NvAudioFxIoDevice_Phone (0x20000)
#define NvAudioFxIoDevice_Radio (0x40000)
+#define NvAudioFxIoDevice_Bluetooth (0x80000)
#define NvAudioFxIoDevice_Bluetooth_Sco (0x80000)
typedef struct NvAudioFxPeqDescriptorRec
diff --git a/sound/soc/tegra/tegra_transport.h b/sound/soc/tegra/tegra_transport.h
index 9d3ba726c41e..129c3bde87c3 100644
--- a/sound/soc/tegra/tegra_transport.h
+++ b/sound/soc/tegra/tegra_transport.h
@@ -49,7 +49,7 @@
#define WHISTLER_CODEC_ADDRESS 0x1a
#define WHISTLER_CODEC_BUS 0
#define NVALSA_BUFFER_COUNT 1
-#define TEGRA_DEFAULT_BUFFER_SIZE 8192
+#define TEGRA_DEFAULT_BUFFER_SIZE 4096
#define NVALSA_INVALID_STATE -1
#define TEGRA_SAMPLE_RATES (SNDRV_PCM_RATE_8000_48000)
#define TEGRA_SAMPLE_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 |\