1428c20f7c
The PCM is a pseudo-device. It doesn't have any of it's own registers or hardware. It rather acts as a layer of abstraction for DMA transfers. Hence, instead of classifying it as a device in its own right, we call the initialisation from the MSP driver. Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Ola LILJA2 <ola.o.lilja@stericsson.com> Cc: alsa-devel@alsa-project.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2012
|
|
*
|
|
* Author: Ola Lilja <ola.o.lilja@stericsson.com>,
|
|
* Roger Nilsson <roger.xr.nilsson@stericsson.com>
|
|
* for ST-Ericsson.
|
|
*
|
|
* License terms:
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation.
|
|
*/
|
|
#ifndef UX500_PCM_H
|
|
#define UX500_PCM_H
|
|
|
|
#include <asm/page.h>
|
|
|
|
#include <linux/workqueue.h>
|
|
|
|
#define UX500_PLATFORM_MIN_RATE_PLAYBACK 8000
|
|
#define UX500_PLATFORM_MAX_RATE_PLAYBACK 48000
|
|
#define UX500_PLATFORM_MIN_RATE_CAPTURE 8000
|
|
#define UX500_PLATFORM_MAX_RATE_CAPTURE 48000
|
|
|
|
#define UX500_PLATFORM_MIN_CHANNELS 1
|
|
#define UX500_PLATFORM_MAX_CHANNELS 8
|
|
|
|
#define UX500_PLATFORM_PERIODS_BYTES_MIN 128
|
|
#define UX500_PLATFORM_PERIODS_BYTES_MAX (64 * PAGE_SIZE)
|
|
#define UX500_PLATFORM_PERIODS_MIN 2
|
|
#define UX500_PLATFORM_PERIODS_MAX 48
|
|
#define UX500_PLATFORM_BUFFER_BYTES_MAX (2048 * PAGE_SIZE)
|
|
|
|
int ux500_pcm_register_platform(struct platform_device *pdev);
|
|
int ux500_pcm_unregister_platform(struct platform_device *pdev);
|
|
|
|
#endif
|