コード例 #1
0
static int __init snd_h4000_audio_init(void) {
	/* check machine */
	if (!h4000_machine_is_h4000()) {
		snd_printk(KERN_INFO "Module snd-h4000_audio: not an iPAQ h4000!\n");
		return -1;
	}

	request_module("i2c-pxa");
	return snd_pxa2xx_i2sound_card_activate(&h4000_audio);
}
コード例 #2
0
static int __init snd_htcathena_audio_init(void)
{
    /* check machine */
    if (!machine_is_htcathena()) {
        snd_printk(KERN_INFO "Module snd-htcathena_audio: not a HTC Athena!\n");
        return -1;
    }

    request_module("i2c-pxa");
    return snd_pxa2xx_i2sound_card_activate(&htcathena_audio);
}