'\" t .\" Title: snd_register_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Management of Cards and Devices .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SND_REGISTER_DEVICE" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Management of Cards and Device" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_register_device \- Register the ALSA device file for the card .SH "SYNOPSIS" .HP \w'int\ snd_register_device('u .BI "int snd_register_device(int\ " "type" ", struct\ snd_card\ *\ " "card" ", int\ " "dev" ", const\ struct\ file_operations\ *\ " "f_ops" ", void\ *\ " "private_data" ", struct\ device\ *\ " "device" ");" .SH "ARGUMENTS" .PP \fItype\fR .RS 4 the device type, SNDRV_DEVICE_TYPE_XXX .RE .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIdev\fR .RS 4 the device index .RE .PP \fIf_ops\fR .RS 4 the file operations .RE .PP \fIprivate_data\fR .RS 4 user pointer for f_ops\->\fBopen\fR .RE .PP \fIdevice\fR .RS 4 the device to register .RE .SH "DESCRIPTION" .PP Registers an ALSA device file for the given card\&. The operators have to be set in reg parameter\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br