admin管理员组文章数量:1595916
RCar-H3 platform修改
kernel-rcar/sound/soc/sh/rcar/core.c
/*
* Hardware (lowlevel) section
*/
struct snd_pcm_hardware {
unsigned int info;/* SNDRV_PCM_INFO_* */
u64 formats;/* SNDRV_PCM_FMTBIT_* */
unsigned int rates;/* SNDRV_PCM_RATE_* */
unsigned int rate_min;/* min rate */
unsigned int rate_max;/* max rate */
unsigned int channels_min;/* min channels */
unsigned int channels_max;/* max channels */
size_t buffer_bytes_max;/* max buffer size */
size_t period_bytes_min;/* min period size */
size_t period_bytes_max;/* max period size */
unsigned int periods_min;/* min # of periods */
unsigned int periods_max;/* max # of periods */
size_t fifo_size;/* fifo size in bytes */
};
修改这个结构体
static const struct snd_pcm_hardware rsnd_pcm_hardware = {
.info =SNDRV_PCM_INFO_INTERLEAVED|
SNDRV_PCM_INFO_MMAP|
SNDRV_PCM_INFO_MMAP_VALID,
.buffer_bytes_max= 64 * 1024,
.period_bytes_min= 32,
.period_bytes_max= 16 * 1024,
.periods_min= 1,
.periods_max= 32,
.fifo_size= 256,
};
修改buffer-size 同时要修改该文件的宏定义
/*
* snd_soc_platform
*/
#define PREALLOC_BUFFER (64 * 1024)
#define PREALLOC_BUFFER_MAX (64 * 1024)
版权声明:本文标题:alsa sound修改--period-size上限配置 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1728236549a1150480.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论