.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SND_HDA_CALC_STREAM_FORMAT" "9" "09 October 2005" "" "" .SH NAME snd_hda_calc_stream_format \- calculate format bitset .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp unsigned int snd_hda_calc_stream_format (unsigned int \fIrate\fB, unsigned int \fIchannels\fB, unsigned int \fIformat\fB, unsigned int \fImaxbps\fB); \fR .SH "ARGUMENTS" .TP \fB\fIrate\fB\fR the sample rate .TP \fB\fIchannels\fB\fR the number of channels .TP \fB\fIformat\fB\fR the PCM format (SNDRV_PCM_FORMAT_XXX) .TP \fB\fImaxbps\fB\fR the max. bps .SH "DESCRIPTION" .PP Calculate the format bitset from the given rate, channels and th PCM format. .PP Return zero if invalid.