/* * skl-pcm.c -ASoC HDA Platform driver file implementing PCM functionality * * Copyright (C) 2014-2015 Intel Corp * Author: Jeeja KP <jeeja.kp@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. * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * */#include<linux/pci.h>#include<linux/pm_runtime.h>#include<linux/delay.h>#include<sound/pcm_params.h>#include<sound/soc.h>#include"skl.h"#include"skl-topology.h"#include"skl-sst-dsp.h"#include"skl-sst-ipc.h"#define HDA_MONO 1#define HDA_STEREO 2#define HDA_QUAD 4#define HDA_MAX 8staticconststructsnd_pcm_hardwareazx_pcm_hw={.info=(SNDRV_PCM_INFO_MMAP|SNDRV_PCM_INFO_INTERLEAVED|SNDRV_PCM_INFO_BLOCK_TRANSFER|SNDRV_PCM_INFO_MMAP_VALID