Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ux500_pcm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) ST-Ericsson SA 2012
3  *
4  * Author: Ola Lilja <[email protected]>,
5  * Roger Nilsson <[email protected]>
6  * for ST-Ericsson.
7  *
8  * License terms:
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as published
12  * by the Free Software Foundation.
13  */
14 #ifndef UX500_PCM_H
15 #define UX500_PCM_H
16 
17 #include <asm/page.h>
18 
19 #include <linux/workqueue.h>
20 
21 #define UX500_PLATFORM_MIN_RATE_PLAYBACK 8000
22 #define UX500_PLATFORM_MAX_RATE_PLAYBACK 48000
23 #define UX500_PLATFORM_MIN_RATE_CAPTURE 8000
24 #define UX500_PLATFORM_MAX_RATE_CAPTURE 48000
25 
26 #define UX500_PLATFORM_MIN_CHANNELS 1
27 #define UX500_PLATFORM_MAX_CHANNELS 8
28 
29 #define UX500_PLATFORM_PERIODS_BYTES_MIN 128
30 #define UX500_PLATFORM_PERIODS_BYTES_MAX (64 * PAGE_SIZE)
31 #define UX500_PLATFORM_PERIODS_MIN 2
32 #define UX500_PLATFORM_PERIODS_MAX 48
33 #define UX500_PLATFORM_BUFFER_BYTES_MAX (2048 * PAGE_SIZE)
34 
35 #endif