Release 4.7 sound/soc/cirrus/ep93xx-pcm.c
/*
* linux/sound/arm/ep93xx-pcm.c - EP93xx ALSA PCM interface
*
* Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org>
* Copyright (C) 2006 Applied Data Systems
*
* Rewritten for the SoC audio subsystem (Based on PXA2xx code):
* Copyright (c) 2008 Ryan Mallon
*
* 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.
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dmaengine.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>
#include <linux/platform_data/dma-ep93xx.h>
#include "ep93xx-pcm.h"
static const struct snd_pcm_hardware ep93xx_pcm_hardware = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER),
.buffer_bytes_max = 131072,
.period_bytes_min = 32,
.period_bytes_max = 32768,
.periods_min = 1,
.periods_max = 32,
.fifo_size = 32,
};
static bool ep93xx_pcm_dma_filter(struct dma_chan *chan, void *filter_param)
{
struct ep93xx_dma_data *data = filter_param;
if (data->direction == ep93xx_dma_chan_direction(chan)) {
chan->private = data;
return true;
}
return false;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
mika westerberg | mika westerberg | 41 | 87.23% | 1 | 50.00% |
ryan mallon | ryan mallon | 6 | 12.77% | 1 | 50.00% |
| Total | 47 | 100.00% | 2 | 100.00% |
static const struct snd_dmaengine_pcm_config ep93xx_dmaengine_pcm_config = {
.pcm_hardware = &ep93xx_pcm_hardware,
.compat_filter_fn = ep93xx_pcm_dma_filter,
.prealloc_buffer_size = 131072,
};
int devm_ep93xx_pcm_platform_register(struct device *dev)
{
return devm_snd_dmaengine_pcm_register(dev,
&ep93xx_dmaengine_pcm_config,
SND_DMAENGINE_PCM_FLAG_NO_DT |
SND_DMAENGINE_PCM_FLAG_COMPAT);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
liam girdwood | liam girdwood | 12 | 52.17% | 1 | 20.00% |
lars-peter clausen | lars-peter clausen | 6 | 26.09% | 2 | 40.00% |
stephen warren | stephen warren | 3 | 13.04% | 1 | 20.00% |
ryan mallon | ryan mallon | 2 | 8.70% | 1 | 20.00% |
| Total | 23 | 100.00% | 5 | 100.00% |
EXPORT_SYMBOL_GPL(devm_ep93xx_pcm_platform_register);
MODULE_AUTHOR("Ryan Mallon");
MODULE_DESCRIPTION("EP93xx ALSA PCM interface");
MODULE_LICENSE("GPL");
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
ryan mallon | ryan mallon | 110 | 56.99% | 2 | 22.22% |
mika westerberg | mika westerberg | 44 | 22.80% | 1 | 11.11% |
lars-peter clausen | lars-peter clausen | 18 | 9.33% | 3 | 33.33% |
liam girdwood | liam girdwood | 12 | 6.22% | 1 | 11.11% |
stephen warren | stephen warren | 8 | 4.15% | 1 | 11.11% |
arnd bergmann | arnd bergmann | 1 | 0.52% | 1 | 11.11% |
| Total | 193 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.