Lines Matching refs:format
74 /* Seek stream format for requirements. */
90 /* Calculate format length. */
97 /* Some requests just after changing format causes freezing. */
301 "fail to set stream format: %d\n", err);
489 u8 *format;
494 format = kmalloc(len, GFP_KERNEL);
495 if (format == NULL)
498 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len);
506 err = snd_oxfw_stream_parse_format(format, formation);
508 kfree(format);
518 int snd_oxfw_stream_parse_format(u8 *format,
530 if ((format[0] != 0x90) || (format[1] != 0x40))
535 if (format[2] == avc_stream_rate_table[i])
543 for (e = 0; e < format[4]; e++) {
544 channels = format[5 + e * 2];
545 type = format[6 + e * 2];
603 /* get format at current sampling rate */
607 "fail to get current stream format for isoc %s plug %d:%d\n",
613 /* parse and set stream format */
626 /* apply the format for each available sampling rate */
682 "fail to get stream format %d for isoc %s plug %d:%d\n",
690 /* The format is too short. */
696 /* parse and set stream format */
718 "fail to get stream format %d for isoc %s plug %d:%d\n",
734 u8 *format;
761 format = oxfw->tx_stream_formats[i];
762 if (format == NULL)
764 err = snd_oxfw_stream_parse_format(format,
789 format = oxfw->rx_stream_formats[i];
790 if (format == NULL)
792 err = snd_oxfw_stream_parse_format(format,