Пример #1
0
Файл: seq.c Проект: 3null/linux
static int __init alsa_seq_init(void)
{
	int err;

	snd_seq_autoload_lock();
	if ((err = client_init_data()) < 0)
		goto error;

	/* init memory, room for selected events */
	if ((err = snd_sequencer_memory_init()) < 0)
		goto error;

	/* init event queues */
	if ((err = snd_seq_queues_init()) < 0)
		goto error;

	/* register sequencer device */
	if ((err = snd_sequencer_device_init()) < 0)
		goto error;

	/* register proc interface */
	if ((err = snd_seq_info_init()) < 0)
		goto error;

	/* register our internal client */
	if ((err = snd_seq_system_client_init()) < 0)
		goto error;

 error:
	snd_seq_autoload_unlock();
	return err;
}
Пример #2
0
static int __init alsa_seq_init(void)
{
	int err;

	err = client_init_data();
	if (err < 0)
		goto error;

	/* register sequencer device */
	err = snd_sequencer_device_init();
	if (err < 0)
		goto error;

	/* register proc interface */
	err = snd_seq_info_init();
	if (err < 0)
		goto error_device;

	/* register our internal client */
	err = snd_seq_system_client_init();
	if (err < 0)
		goto error_info;

	snd_seq_autoload_init();
	return 0;

 error_info:
	snd_seq_info_done();
 error_device:
	snd_sequencer_device_done();
 error:
	return err;
}
Пример #3
0
static int __init alsa_seq_init(void)
{
	int err;

	snd_seq_autoload_lock();
	if ((err = client_init_data()) < 0)
		goto error;

	/*                                       */
	if ((err = snd_sequencer_memory_init()) < 0)
		goto error;

	/*                   */
	if ((err = snd_seq_queues_init()) < 0)
		goto error;

	/*                           */
	if ((err = snd_sequencer_device_init()) < 0)
		goto error;

	/*                         */
	if ((err = snd_seq_info_init()) < 0)
		goto error;

	/*                              */
	if ((err = snd_seq_system_client_init()) < 0)
		goto error;

 error:
	snd_seq_autoload_unlock();
	return err;
}
Пример #4
0
static int __init alsa_seq_init(void)
{
	int err;

	if ((err = client_init_data()) < 0)
		return err;

	/* init memory, room for selected events */
	if ((err = snd_sequencer_memory_init()) < 0)
		return err;

	/* init event queues */
	if ((err = snd_seq_queues_init()) < 0)
		return err;

	/* register sequencer device */
	if ((err = snd_sequencer_device_init()) < 0)
		return err;

	/* register proc interface */
	if ((err = snd_seq_info_init()) < 0)
		return err;

	/* register our internal client */
	if ((err = snd_seq_system_client_init()) < 0)
		return err;

	return 0;
}