Deleted Added
full compact
usb_template_audio.c (223467) usb_template_audio.c (223472)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_audio.c 223467 2011-06-23 07:54:03Z hselasky $");
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_audio.c 223472 2011-06-23 10:35:45Z hselasky $");
3
4/*-
5 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 79 unchanged lines hidden (view full) ---

90USB_MAKE_STRING_DESC(STRING_LANG, string_lang);
91USB_MAKE_STRING_DESC(STRING_AUDIO_MIXER, string_audio_mixer);
92USB_MAKE_STRING_DESC(STRING_AUDIO_RECORD, string_audio_record);
93USB_MAKE_STRING_DESC(STRING_AUDIO_PLAYBACK, string_audio_playback);
94USB_MAKE_STRING_DESC(STRING_AUDIO_PRODUCT, string_audio_product);
95
96/* prototypes */
97
3
4/*-
5 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 79 unchanged lines hidden (view full) ---

90USB_MAKE_STRING_DESC(STRING_LANG, string_lang);
91USB_MAKE_STRING_DESC(STRING_AUDIO_MIXER, string_audio_mixer);
92USB_MAKE_STRING_DESC(STRING_AUDIO_RECORD, string_audio_record);
93USB_MAKE_STRING_DESC(STRING_AUDIO_PLAYBACK, string_audio_playback);
94USB_MAKE_STRING_DESC(STRING_AUDIO_PRODUCT, string_audio_product);
95
96/* prototypes */
97
98/* Audio Mixer description structures */
98/*
99 * Audio Mixer description structures
100 *
101 * Some of the audio descriptors were dumped
102 * from a Creative Labs USB audio device.
103 */
99
100static const uint8_t audio_raw_desc_0[] = {
101 0x0a, 0x24, 0x01, 0x00, 0x01, 0xa9, 0x00, 0x02,
102 0x01, 0x02
103};
104
105static const uint8_t audio_raw_desc_1[] = {
106 0x0c, 0x24, 0x02, 0x01, 0x01, 0x01, 0x00, 0x02,

--- 294 unchanged lines hidden ---
104
105static const uint8_t audio_raw_desc_0[] = {
106 0x0a, 0x24, 0x01, 0x00, 0x01, 0xa9, 0x00, 0x02,
107 0x01, 0x02
108};
109
110static const uint8_t audio_raw_desc_1[] = {
111 0x0c, 0x24, 0x02, 0x01, 0x01, 0x01, 0x00, 0x02,

--- 294 unchanged lines hidden ---