projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update UC3 platform driver support to use the bitmasks defined in the header files...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
AudioOutput
/
Descriptors.c
diff --git
a/Demos/Device/LowLevel/AudioOutput/Descriptors.c
b/Demos/Device/LowLevel/AudioOutput/Descriptors.c
index
59e3af1
..
0a6ec6d
100644
(file)
--- a/
Demos/Device/LowLevel/AudioOutput/Descriptors.c
+++ b/
Demos/Device/LowLevel/AudioOutput/Descriptors.c
@@
-55,7
+55,7
@@
const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
.VendorID = 0x03EB,
.ProductID = 0x2046,
.VendorID = 0x03EB,
.ProductID = 0x2046,
- .ReleaseNumber = VERSION_BCD(00.0
1
),
+ .ReleaseNumber = VERSION_BCD(00.0
2
),
.ManufacturerStrIndex = 0x01,
.ProductStrIndex = 0x02,
.ManufacturerStrIndex = 0x01,
.ProductStrIndex = 0x02,
@@
-202,12
+202,16
@@
const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.SubFrameSize = 0x02,
.BitResolution = 16,
.SubFrameSize = 0x02,
.BitResolution = 16,
- .TotalDiscreteSampleRates =
1
,
+ .TotalDiscreteSampleRates =
(sizeof(ConfigurationDescriptor.Audio_AudioFormatSampleRates) / sizeof(USB_Audio_SampleFreq_t))
,
},
.Audio_AudioFormatSampleRates =
{
},
.Audio_AudioFormatSampleRates =
{
- AUDIO_SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)
+ AUDIO_SAMPLE_FREQ(8000),
+ AUDIO_SAMPLE_FREQ(11025),
+ AUDIO_SAMPLE_FREQ(22050),
+ AUDIO_SAMPLE_FREQ(44100),
+ AUDIO_SAMPLE_FREQ(48000),
},
.Audio_StreamEndpoint =
},
.Audio_StreamEndpoint =
@@
-231,7
+235,7
@@
const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.Header = {.Size = sizeof(USB_Audio_Descriptor_StreamEndpoint_Spc_t), .Type = DTYPE_CSEndpoint},
.Subtype = AUDIO_DSUBTYPE_CSEndpoint_General,
.Header = {.Size = sizeof(USB_Audio_Descriptor_StreamEndpoint_Spc_t), .Type = DTYPE_CSEndpoint},
.Subtype = AUDIO_DSUBTYPE_CSEndpoint_General,
- .Attributes =
AUDIO_EP_ACCEPTS_SMALL_PACKETS
,
+ .Attributes =
(AUDIO_EP_ACCEPTS_SMALL_PACKETS | AUDIO_EP_SAMPLE_FREQ_CONTROL)
,
.LockDelayUnits = 0x00,
.LockDelay = 0x0000
.LockDelayUnits = 0x00,
.LockDelay = 0x0000