• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ snd_info_set_text_ops函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中snd_info_set_text_ops函数的典型用法代码示例。如果您正苦于以下问题:C++ snd_info_set_text_ops函数的具体用法?C++ snd_info_set_text_ops怎么用?C++ snd_info_set_text_ops使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了snd_info_set_text_ops函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: snd_atiixp_proc_init

static void snd_atiixp_proc_init(struct atiixp *chip)
{
	struct snd_info_entry *entry;

	if (! snd_card_proc_new(chip->card, "atiixp", &entry))
		snd_info_set_text_ops(entry, chip, snd_atiixp_proc_read);
}
开发者ID:3null,项目名称:linux,代码行数:7,代码来源:atiixp.c


示例2: snd_compress_proc_init

static int snd_compress_proc_init(struct snd_compr *compr)
{
	struct snd_info_entry *entry;
	char name[16];

	sprintf(name, "compr%i", compr->device);
	entry = snd_info_create_card_entry(compr->card, name,
					   compr->card->proc_root);
	if (!entry)
		return -ENOMEM;
	entry->mode = S_IFDIR | S_IRUGO | S_IXUGO;
	if (snd_info_register(entry) < 0) {
		snd_info_free_entry(entry);
		return -ENOMEM;
	}
	compr->proc_root = entry;

	entry = snd_info_create_card_entry(compr->card, "info",
					   compr->proc_root);
	if (entry) {
		snd_info_set_text_ops(entry, compr,
				      snd_compress_proc_info_read);
		if (snd_info_register(entry) < 0) {
			snd_info_free_entry(entry);
			entry = NULL;
		}
	}
	compr->proc_info_entry = entry;

	return 0;
}
开发者ID:a2hojsjsjs,项目名称:linux,代码行数:31,代码来源:compress_offload.c


示例3: snd_gus_irq_profile_init

void snd_gus_irq_profile_init(struct snd_gus_card *gus)
{
	struct snd_info_entry *entry;

	if (! snd_card_proc_new(gus->card, "gusirq", &entry))
		snd_info_set_text_ops(entry, gus, snd_gus_irq_info_read);
}
开发者ID:johnny,项目名称:CobraDroidBeta,代码行数:7,代码来源:gus_irq.c


示例4: oxygen_proc_init

static void oxygen_proc_init(struct oxygen *chip)
{
	struct snd_info_entry *entry;

	if (!snd_card_proc_new(chip->card, "cmi8788", &entry))
		snd_info_set_text_ops(entry, chip, oxygen_proc_read);
}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:7,代码来源:oxygen_lib.c


示例5: snd_gf1_mem_init

int snd_gf1_mem_init(struct snd_gus_card * gus)
{
    struct snd_gf1_mem *alloc;
    struct snd_gf1_mem_block block;
#ifdef CONFIG_SND_DEBUG
    struct snd_info_entry *entry;
#endif

    alloc = &gus->gf1.mem_alloc;
    mutex_init(&alloc->memory_mutex);
    alloc->first = alloc->last = NULL;
    if (!gus->gf1.memory)
        return 0;

    memset(&block, 0, sizeof(block));
    block.owner = SNDRV_GF1_MEM_OWNER_DRIVER;
    if (gus->gf1.enh_mode) {
        block.ptr = 0;
        block.size = 1024;
        block.name = kstrdup("InterWave LFOs", GFP_KERNEL);
        if (snd_gf1_mem_xalloc(alloc, &block) == NULL)
            return -ENOMEM;
    }
    block.ptr = gus->gf1.default_voice_address;
    block.size = 4;
    block.name = kstrdup("Voice default (NULL's)", GFP_KERNEL);
    if (snd_gf1_mem_xalloc(alloc, &block) == NULL)
        return -ENOMEM;
#ifdef CONFIG_SND_DEBUG
    if (! snd_card_proc_new(gus->card, "gusmem", &entry))
        snd_info_set_text_ops(entry, gus, snd_gf1_mem_info_read);
#endif
    return 0;
}
开发者ID:chunyenho,项目名称:RTS-hw2,代码行数:34,代码来源:gus_mem.c


示例6: cs_proc_init

static void cs_proc_init(ice1712_t *ice)
{
	snd_info_entry_t *entry;
	if (! snd_card_proc_new(ice->card, "cs_codec", &entry)) {
		snd_info_set_text_ops(entry, ice, 1024, cs_proc_regs_read);
	}
}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:7,代码来源:pontis.c


示例7: snd_dg00x_proc_init

void snd_dg00x_proc_init(struct snd_dg00x *dg00x)
{
	struct snd_info_entry *root, *entry;

	/*
	 * All nodes are automatically removed at snd_card_disconnect(),
	 * by following to link list.
	 */
	root = snd_info_create_card_entry(dg00x->card, "firewire",
					  dg00x->card->proc_root);
	if (root == NULL)
		return;

	root->mode = S_IFDIR | S_IRUGO | S_IXUGO;
	if (snd_info_register(root) < 0) {
		snd_info_free_entry(root);
		return;
	}

	entry = snd_info_create_card_entry(dg00x->card, "clock", root);
	if (entry == NULL) {
		snd_info_free_entry(root);
		return;
	}

	snd_info_set_text_ops(entry, dg00x, proc_read_clock);
	if (snd_info_register(entry) < 0) {
		snd_info_free_entry(entry);
		snd_info_free_entry(root);
	}
}
开发者ID:020gzh,项目名称:linux,代码行数:31,代码来源:digi00x-proc.c


示例8: snd_atiixp_proc_init

static void __devinit snd_atiixp_proc_init(atiixp_t *chip)
{
    snd_info_entry_t *entry;

    if (! snd_card_proc_new(chip->card, "atiixp", &entry))
        snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read);
}
开发者ID:idtek,项目名称:linux-2.6.11,代码行数:7,代码来源:atiixp.c


示例9: snd_ad1889_proc_init

static void __devinit
snd_ad1889_proc_init(struct snd_ad1889 *chip)
{
	struct snd_info_entry *entry;

	if (!snd_card_proc_new(chip->card, chip->card->driver, &entry))
		snd_info_set_text_ops(entry, chip, snd_ad1889_proc_read);
}
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:8,代码来源:ad1889.c


示例10: wm_proc_init

static void wm_proc_init(struct snd_ice1712 *ice)
{
	struct snd_info_entry *entry;
	if (!snd_card_proc_new(ice->card, "wm_codec", &entry)) {
		snd_info_set_text_ops(entry, ice, wm_proc_regs_read);
		entry->mode |= S_IWUSR;
		entry->c.text.write = wm_proc_regs_write;
	}
}
开发者ID:mjduddin,项目名称:B14CKB1RD_kernel_m8,代码行数:9,代码来源:prodigy_hifi.c


示例11: proc_init

static int proc_init(struct snd_akm4xxx *ak)
{
	struct snd_info_entry *entry;
	int err;
	err = snd_card_proc_new(ak->card, ak->name, &entry);
	if (err < 0)
		return err;
	snd_info_set_text_ops(entry, ak, proc_regs_read);
	return 0;
}
开发者ID:1yankeedt,项目名称:D710BST_FL24_Kernel,代码行数:10,代码来源:ak4xxx-adda.c


示例12: dummy_proc_init

static void __devinit dummy_proc_init(struct snd_dummy *chip)
{
	struct snd_info_entry *entry;

	if (!snd_card_proc_new(chip->card, "dummy_pcm", &entry)) {
		snd_info_set_text_ops(entry, chip, dummy_proc_read);
		entry->c.text.write = dummy_proc_write;
		entry->mode |= S_IWUSR;
	}
}
开发者ID:325116067,项目名称:semc-qsd8x50,代码行数:10,代码来源:dummy.c


示例13: wm_proc_init

static void wm_proc_init(ice1712_t *ice)
{
	snd_info_entry_t *entry;
	if (! snd_card_proc_new(ice->card, "wm_codec", &entry)) {
		snd_info_set_text_ops(entry, ice, 1024, wm_proc_regs_read);
		entry->mode |= S_IWUSR;
		entry->c.text.write_size = 1024;
		entry->c.text.write = wm_proc_regs_write;
	}
}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:10,代码来源:pontis.c


示例14: add_node

static void
add_node(struct snd_efw *efw, struct snd_info_entry *root, const char *name,
	 void (*op)(struct snd_info_entry *e, struct snd_info_buffer *b))
{
	struct snd_info_entry *entry;

	entry = snd_info_create_card_entry(efw->card, name, root);
	if (entry == NULL)
		return;

	snd_info_set_text_ops(entry, efw, op);
	if (snd_info_register(entry) < 0)
		snd_info_free_entry(entry);
}
开发者ID:020gzh,项目名称:linux,代码行数:14,代码来源:fireworks_proc.c


示例15: loopback_proc_new

static int __devinit loopback_proc_new(struct loopback *loopback, int cidx)
{
	char name[32];
	struct snd_info_entry *entry;
	int err;

	snprintf(name, sizeof(name), "cable#%d", cidx);
	err = snd_card_proc_new(loopback->card, name, &entry);
	if (err < 0)
		return err;

	snd_info_set_text_ops(entry, loopback, print_cable_info);
	return 0;
}
开发者ID:mjduddin,项目名称:B14CKB1RD_kernel_m8,代码行数:14,代码来源:aloop.c


示例16: snd_hda_eld_proc_new

int snd_hda_eld_proc_new(struct hda_codec *codec, struct hdmi_eld *eld)
{
	char name[32];
	struct snd_info_entry *entry;
	int err;

	snprintf(name, sizeof(name), "eld#%d", codec->addr);
	err = snd_card_proc_new(codec->bus->card, name, &entry);
	if (err < 0)
		return err;

	snd_info_set_text_ops(entry, eld, hdmi_print_eld_info);
	entry->c.text.write = hdmi_write_eld_info;
	entry->mode |= S_IWUSR;
	eld->proc_entry = entry;

	return 0;
}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:18,代码来源:hda_eld.c


示例17: i2s_register_proc_init

static void i2s_register_proc_init(struct snd_soc_card *card)
{
	struct snd_info_entry *entry;
	if (!snd_card_proc_new(card->snd_card, "i2s-reg", &entry))
		snd_info_set_text_ops(entry, NULL, i2s_register_proc_read);
}
开发者ID:Whiw,项目名称:hello-world,代码行数:6,代码来源:i2s-r0p0-null-codec.c


示例18: snd_atiixp_pcm_open


//.........这里部分代码省略.........

	snd_atiixp_aclink_reset(chip);
	snd_atiixp_chip_start(chip);

	for (i = 0; i < NUM_ATI_CODECS; i++)
		snd_ac97_resume(chip->ac97[i]);

	snd_power_change_state(card, SNDRV_CTL_POWER_D0);
	return 0;
}
#endif /*           */


#ifdef CONFIG_PROC_FS
/*
                                   
 */

static void snd_atiixp_proc_read(struct snd_info_entry *entry,
				 struct snd_info_buffer *buffer)
{
	struct atiixp_modem *chip = entry->private_data;
	int i;

	for (i = 0; i < 256; i += 4)
		snd_iprintf(buffer, "%02x: %08x\n", i, readl(chip->remap_addr + i));
}

static void __devinit snd_atiixp_proc_init(struct atiixp_modem *chip)
{
	struct snd_info_entry *entry;

	if (! snd_card_proc_new(chip->card, "atiixp-modem", &entry))
		snd_info_set_text_ops(entry, chip, snd_atiixp_proc_read);
}
#else
#define snd_atiixp_proc_init(chip)
#endif


/*
             
 */

static int snd_atiixp_free(struct atiixp_modem *chip)
{
	if (chip->irq < 0)
		goto __hw_end;
	snd_atiixp_chip_stop(chip);

      __hw_end:
	if (chip->irq >= 0)
		free_irq(chip->irq, chip);
	if (chip->remap_addr)
		iounmap(chip->remap_addr);
	pci_release_regions(chip->pci);
	pci_disable_device(chip->pci);
	kfree(chip);
	return 0;
}

static int snd_atiixp_dev_free(struct snd_device *device)
{
	struct atiixp_modem *chip = device->device_data;
	return snd_atiixp_free(chip);
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:67,代码来源:atiixp_modem.c


示例19: cs_proc_init

static void cs_proc_init(struct snd_ice1712 *ice)
{
	struct snd_info_entry *entry;
	if (! snd_card_proc_new(ice->card, "cs_codec", &entry))
		snd_info_set_text_ops(entry, ice, cs_proc_regs_read);
}
开发者ID:adis1313,项目名称:android_kernel_samsung_msm8974,代码行数:6,代码来源:pontis.c



注:本文中的snd_info_set_text_ops函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ snd_interval_refine函数代码示例发布时间:2022-05-30
下一篇:
C++ snd_info_register函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap