summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandrew-elder <aelder@audioscience.com>2019-10-22 08:48:14 -0400
committerGitHub <noreply@github.com>2019-10-22 08:48:14 -0400
commitc30611e8b2cbfa8663e7a3242d3dd5a87a953818 (patch)
tree92c3a67f18db4753b843e667a3f3dcad44575f25
parent4303926e523328ed49963a1dc5a700ac34816de0 (diff)
parent072c1fa6389175226c3217e45fcd5e3d5548b40d (diff)
downloadOpen-AVB-c30611e8b2cbfa8663e7a3242d3dd5a87a953818.tar.gz
Merge pull request #888 from chris-kuhr/open-avb-next-pr-new
u32 audioRate in openavb_avdecc_read_ini_pub.h, Notice about the 6188…
-rw-r--r--lib/avtp_pipeline/aem/openavb_descriptor_stream_io.c25
-rw-r--r--lib/avtp_pipeline/avdecc/openavb_avdecc_read_ini_pub.h2
2 files changed, 20 insertions, 7 deletions
diff --git a/lib/avtp_pipeline/aem/openavb_descriptor_stream_io.c b/lib/avtp_pipeline/aem/openavb_descriptor_stream_io.c
index d585a47d..5b48d204 100644
--- a/lib/avtp_pipeline/aem/openavb_descriptor_stream_io.c
+++ b/lib/avtp_pipeline/aem/openavb_descriptor_stream_io.c
@@ -32,7 +32,7 @@ https://github.com/benhoyt/inih/commit/74d2ca064fb293bc60a77b0bd068075b293cf175.
/*
******************************************************************
* MODULE : AEM - AVDECC Stream IO Descriptor
- * MODULE SUMMARY : Implements the AVDECC Stream IO IEEE Std 1722.1-2013 clause 7.2.6
+ * MODULE SUMMARY : Implements the AVDECC Stream IO IEEE Std 1722.1-2013 clause 7.2.6
******************************************************************
*/
@@ -348,7 +348,11 @@ extern DLL_EXPORT openavb_aem_descriptor_stream_io_t *openavbAemDescriptorStream
AVB_TRACE_EXIT(AVB_TRACE_AEM);
return pDescriptor;
}
-
+
+/*
+ * Initial and static values for stream input / output descriptors.
+ * ToDo : read actual endpoint configuration.
+ */
static void fillInStreamFormat(openavb_aem_descriptor_stream_io_t *pDescriptor, const openavb_avdecc_configuration_cfg_t *pConfig)
{ // AVDECC_TODO - Specify the stream format information for MMA Stream Format.
if (strcmp(pConfig->stream->map_fn,"openavbMapAVTPAudioInitialize") == 0)
@@ -367,13 +371,22 @@ static void fillInStreamFormat(openavb_aem_descriptor_stream_io_t *pDescriptor,
pDescriptor->stream_formats[0].subtype = OPENAVB_AEM_STREAM_FORMAT_61883_IIDC_SUBTYPE;
pDescriptor->stream_formats[0].subtypes.iec_61883_iidc.sf = 1;
pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.fmt = OPENAVB_AEM_STREAM_FORMAT_FMT_61883_6;
- pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.fdf_evt = OPENAVB_AEM_STREAM_FORMAT_FDF_EVT_61883_6_AM824;
- pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.fdf_sfc = 0x02;
+ pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.fdf_evt = OPENAVB_AEM_STREAM_FORMAT_FDF_EVT_61883_6_AM824;
+ /*
+ * static sampling rate. Requires fixing. 0x02 = 48kHz, 0x04 = 96kHz
+ */
+ pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.fdf_sfc = 0x02;
+ /*
+ * static channel count. Requires fixing. 0x08 = 8 channels
+ */
pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.dbs = 0x08;
pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.b = 0x00;
pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.nb = 0x01;
- pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.label_iec_60958_cnt = 0;
- pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.label_mbla_cnt = 8;
+ pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.label_iec_60958_cnt = 0;
+ /*
+ * static channel count. Requires fixing. 0x08 = 8 channels
+ */
+ pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.label_mbla_cnt = pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.dbs;
pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.label_midi_cnt = 0;
pDescriptor->stream_formats[0].subtypes.iec_61883_6_am824.label_smptecnt = 0;
}
diff --git a/lib/avtp_pipeline/avdecc/openavb_avdecc_read_ini_pub.h b/lib/avtp_pipeline/avdecc/openavb_avdecc_read_ini_pub.h
index 5c71d5b7..cbd2939c 100644
--- a/lib/avtp_pipeline/avdecc/openavb_avdecc_read_ini_pub.h
+++ b/lib/avtp_pipeline/avdecc/openavb_avdecc_read_ini_pub.h
@@ -117,7 +117,7 @@ struct openavb_tl_data_cfg {
/// An array of 4-octet sample rates supported by this Audio Unit
U32 sampling_rates[MAX_SAMPLING_RATES_COUNT];
/// intf_nv_audio_rate
- U16 audioRate;
+ U32 audioRate;
/// intf_nv_audio_bit_depth
U8 audioBitDepth;
/// intf_nv_channels