Path: blob/master/sound/soc/mid-x86/sst_platform.h
10817 views
/*1* sst_platform.h - Intel MID Platform driver header file2*3* Copyright (C) 2010 Intel Corp4* Author: Vinod Koul <[email protected]>5* Author: Harsha Priya <[email protected]>6* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; version 2 of the License.11*12* This program is distributed in the hope that it will be useful, but13* WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU15* General Public License for more details.16*17* You should have received a copy of the GNU General Public License along18* with this program; if not, write to the Free Software Foundation, Inc.,19* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.20*21* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~22*23*24*/2526#ifndef __SST_PLATFORMDRV_H__27#define __SST_PLATFORMDRV_H__2829#define SST_MONO 130#define SST_STEREO 231#define SST_MAX_CAP 53233#define SST_MIN_RATE 800034#define SST_MAX_RATE 4800035#define SST_MIN_CHANNEL 136#define SST_MAX_CHANNEL 537#define SST_MAX_BUFFER (800*1024)38#define SST_MIN_BUFFER (800*1024)39#define SST_MIN_PERIOD_BYTES 3240#define SST_MAX_PERIOD_BYTES SST_MAX_BUFFER41#define SST_MIN_PERIODS 242#define SST_MAX_PERIODS (1024*2)43#define SST_FIFO_SIZE 044#define SST_CARD_NAMES "intel_mid_card"45#define MSIC_VENDOR_ID 34647struct sst_runtime_stream {48int stream_status;49struct pcm_stream_info stream_info;50struct intel_sst_card_ops *sstdrv_ops;51spinlock_t status_lock;52};5354enum sst_drv_status {55SST_PLATFORM_INIT = 1,56SST_PLATFORM_STARTED,57SST_PLATFORM_RUNNING,58SST_PLATFORM_PAUSED,59SST_PLATFORM_DROPPED,60};6162#endif636465