static int saudio_clear_cmd(uint32_t dst, uint32_t channel)
{
int result = 0;
- int i = 0;
struct sblock blk = { 0 };
do {
result = sblock_receive(dst, channel, (struct sblock *)&blk, 0);
static int snd_card_saudio_pcm_open(struct snd_pcm_substream *substream)
{
- const struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
+ struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
const int stream_id = substream->pstr->stream;
const int dev = substream->pcm->device;
struct snd_pcm_runtime *runtime = substream->runtime;
static int snd_card_saudio_pcm_close(struct snd_pcm_substream *substream)
{
- const struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
+ struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
const int stream_id = substream->pstr->stream;
const int dev = substream->pcm->device;
struct saudio_dev_ctrl *dev_ctrl = NULL;
struct saudio_msg *msg);
static int snd_card_saudio_pcm_prepare(struct snd_pcm_substream *substream)
{
- const struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
+ struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
const int stream_id = substream->pstr->stream;
const int dev = substream->pcm->device;
struct saudio_dev_ctrl *dev_ctrl = NULL;
static int snd_saudio_probe(struct platform_device *devptr)
{
struct snd_saudio *saudio = NULL;
- static pid_t thread_id = (pid_t) - 1;
#ifdef CONFIG_OF
int ret, id, ctrl_ch, playback_ch, capture_ch, monitor_ch;
const char *name = NULL;