Lines Matching refs:format
74 /* Seek stream format for requirements. */
90 /* Calculate format length. */
97 /* Some requests just after changing format causes freezing. */
295 "fail to set stream format: %d\n", err);
474 u8 *format;
479 format = kmalloc(len, GFP_KERNEL);
480 if (format == NULL)
483 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len);
491 err = snd_oxfw_stream_parse_format(format, formation);
493 kfree(format);
503 int snd_oxfw_stream_parse_format(u8 *format,
515 if ((format[0] != 0x90) || (format[1] != 0x40))
520 if (format[2] == avc_stream_rate_table[i])
528 for (e = 0; e < format[4]; e++) {
529 channels = format[5 + e * 2];
530 type = format[6 + e * 2];
588 /* get format at current sampling rate */
592 "fail to get current stream format for isoc %s plug %d:%d\n",
598 /* parse and set stream format */
611 /* apply the format for each available sampling rate */
667 "fail to get stream format %d for isoc %s plug %d:%d\n",
675 /* The format is too short. */
681 /* parse and set stream format */
703 "fail to get stream format %d for isoc %s plug %d:%d\n",
719 u8 *format;
746 format = oxfw->tx_stream_formats[i];
747 if (format == NULL)
749 err = snd_oxfw_stream_parse_format(format,
774 format = oxfw->rx_stream_formats[i];
775 if (format == NULL)
777 err = snd_oxfw_stream_parse_format(format,