| Index: sound/soc/mid-x86/sst_platform.h
|
| diff --git a/sound/soc/mid-x86/sst_platform.h b/sound/soc/mid-x86/sst_platform.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..df370286694f89de7dbfce2cba1a29ae3dfcf7ee
|
| --- /dev/null
|
| +++ b/sound/soc/mid-x86/sst_platform.h
|
| @@ -0,0 +1,63 @@
|
| +/*
|
| + * sst_platform.h - Intel MID Platform driver header file
|
| + *
|
| + * Copyright (C) 2010 Intel Corp
|
| + * Author: Vinod Koul <vinod.koul@intel.com>
|
| + * Author: Harsha Priya <priya.harsha@intel.com>
|
| + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| + *
|
| + * This program is free software; you can redistribute it and/or modify
|
| + * it under the terms of the GNU General Public License as published by
|
| + * the Free Software Foundation; version 2 of the License.
|
| + *
|
| + * This program is distributed in the hope that it will be useful, but
|
| + * WITHOUT ANY WARRANTY; without even the implied warranty of
|
| + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| + * General Public License for more details.
|
| + *
|
| + * You should have received a copy of the GNU General Public License along
|
| + * with this program; if not, write to the Free Software Foundation, Inc.,
|
| + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
| + *
|
| + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| + *
|
| + *
|
| + */
|
| +
|
| +#ifndef __SST_PLATFORMDRV_H__
|
| +#define __SST_PLATFORMDRV_H__
|
| +
|
| +#define SST_MONO 1
|
| +#define SST_STEREO 2
|
| +#define SST_MAX_CAP 5
|
| +
|
| +#define SST_MIN_RATE 8000
|
| +#define SST_MAX_RATE 48000
|
| +#define SST_MIN_CHANNEL 1
|
| +#define SST_MAX_CHANNEL 5
|
| +#define SST_MAX_BUFFER (800*1024)
|
| +#define SST_MIN_BUFFER (800*1024)
|
| +#define SST_MIN_PERIOD_BYTES 32
|
| +#define SST_MAX_PERIOD_BYTES SST_MAX_BUFFER
|
| +#define SST_MIN_PERIODS 2
|
| +#define SST_MAX_PERIODS (1024*2)
|
| +#define SST_FIFO_SIZE 0
|
| +#define SST_CARD_NAMES "intel_mid_card"
|
| +#define MSIC_VENDOR_ID 3
|
| +
|
| +struct sst_runtime_stream {
|
| + int stream_status;
|
| + struct pcm_stream_info stream_info;
|
| + struct intel_sst_card_ops *sstdrv_ops;
|
| + spinlock_t status_lock;
|
| +};
|
| +
|
| +enum sst_drv_status {
|
| + SST_PLATFORM_INIT = 1,
|
| + SST_PLATFORM_STARTED,
|
| + SST_PLATFORM_RUNNING,
|
| + SST_PLATFORM_PAUSED,
|
| + SST_PLATFORM_DROPPED,
|
| +};
|
| +
|
| +#endif
|
|
|