audio control设备创建

代码位置

soc-core.c

control.c

相关结构体

#define SNDRV_CTL_IOCTL_PVERSION    _IOR('U', 0x00, int)

#define SNDRV_CTL_IOCTL_CARD_INFO    _IOR('U', 0x01, struct snd_ctl_card_info)

#define SNDRV_CTL_IOCTL_ELEM_LIST    _IOWR('U', 0x10, struct snd_ctl_elem_list)

#define SNDRV_CTL_IOCTL_ELEM_INFO    _IOWR('U', 0x11, struct snd_ctl_elem_info)

#define SNDRV_CTL_IOCTL_ELEM_READ    _IOWR('U', 0x12, struct snd_ctl_elem_value)

#define SNDRV_CTL_IOCTL_ELEM_WRITE    _IOWR('U', 0x13, struct snd_ctl_elem_value)

#define SNDRV_CTL_IOCTL_ELEM_LOCK    _IOW('U', 0x14, struct snd_ctl_elem_id)

#define SNDRV_CTL_IOCTL_ELEM_UNLOCK    _IOW('U', 0x15, struct snd_ctl_elem_id)

#define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)

#define SNDRV_CTL_IOCTL_ELEM_ADD    _IOWR('U', 0x17, struct snd_ctl_elem_info)

#define SNDRV_CTL_IOCTL_ELEM_REPLACE    _IOWR('U', 0x18, struct snd_ctl_elem_info)

#define SNDRV_CTL_IOCTL_ELEM_REMOVE    _IOWR('U', 0x19, struct snd_ctl_elem_id)

#define SNDRV_CTL_IOCTL_TLV_READ    _IOWR('U', 0x1a, struct snd_ctl_tlv)

#define SNDRV_CTL_IOCTL_TLV_WRITE    _IOWR('U', 0x1b, struct snd_ctl_tlv)

#define SNDRV_CTL_IOCTL_TLV_COMMAND    _IOWR('U

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值