Commits

Anonymous committed eae11b2

ASoC: tegra: increase period count/size limits

Bug: 6643209
Signed-off-by: Glenn Kasten <gkasten@google.com>
Change-Id: I1bcc1631c08e6b76460805ff91a7710219b8e045

Comments (0)

Files changed (1)

sound/soc/tegra/tegra_pcm.c

 
 #define DRV_NAME "tegra-pcm-audio"
 
+#define PERIOD_BYTES_MAX	(PAGE_SIZE * 2)
+#define PERIODS_MAX		64
+
 static const struct snd_pcm_hardware tegra_pcm_hardware = {
 	.info			= SNDRV_PCM_INFO_MMAP |
 				  SNDRV_PCM_INFO_MMAP_VALID |
 	.channels_min		= 1,
 	.channels_max		= 2,
 	.period_bytes_min	= 128,
-	.period_bytes_max	= PAGE_SIZE,
+	.period_bytes_max	= PERIOD_BYTES_MAX,
 	.periods_min		= 2,
-	.periods_max		= 8,
-	.buffer_bytes_max	= PAGE_SIZE * 8,
+	.periods_max		= PERIODS_MAX,
+	.buffer_bytes_max	= PERIOD_BYTES_MAX * PERIODS_MAX,
 	.fifo_size		= 4,
 };
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.