]> Pileus Git - ~andy/linux/blob - sound/soc/ux500/ux500_pcm.h
Merge branch 'drm-fixes-3.8' of git://people.freedesktop.org/~agd5f/linux into drm...
[~andy/linux] / sound / soc / ux500 / ux500_pcm.h
1 /*
2  * Copyright (C) ST-Ericsson SA 2012
3  *
4  * Author: Ola Lilja <ola.o.lilja@stericsson.com>,
5  *         Roger Nilsson <roger.xr.nilsson@stericsson.com>
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 int ux500_pcm_register_platform(struct platform_device *pdev);
36 int ux500_pcm_unregister_platform(struct platform_device *pdev);
37
38 #endif