SHA256
1
0
forked from pool/codec2

Accepting request 923350 from home:wkazubski:test:science

- Added a patch moved-freedv_callback_rx_sym-into-internal-header.patch
  to fix building gnuradio (patch taken from upstream)
- Update to version 1.0.1:
  * Release to support freedv-gui 1.6.1
- Update baselib.conf
- Update to version 1.0.0:
  * No upstream changelog available
  * Added new mode 700E
- Test binaries not installed now, so package codec2 dropped,
  license and doc files moved to libcodec2 library.
- Patch codec2-no_return_random.patch rebased.
- Update to version 0.9.2:
  * No upstream changelog available
- Drop no longer needed patches:
  * codec2-licensed-stuff.patch
- Apply upstream patch to fix ambiguous license situation:
  * codec2-licensed-stuff.patch
- Update to version 0.8.1:
  * No upstream changelog provided
- Add codec2-no_return_random.patch
- Add baselibs.conf
- Update to version 0.7
- Update licensing information 
- Update to version 0.6:
  * No upstream changelog available
- Update description with new bit rates from homepage.
- Cleanup spec file with spec-cleaner
- Copyrigth information of spec file removed
- Version 0.5.1
  * Updated golay
- Spec cleanup
- Added codec2-rpmlintrc
- version 0.5
- version 0.4.1
- patch to install copm_prim.h needed by freedv2
- version 0.4
- version 0.3svn1917
- mods based on Fedora package
- first try

OBS-URL: https://build.opensuse.org/request/show/923350
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=21
This commit is contained in:
Martin Pluskal
2021-10-06 08:27:07 +00:00
committed by Git OBS Bridge
parent 5ac5edbcb9
commit 1a77b0481f
3 changed files with 53 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 5 12:55:41 UTC 2021 - Wojciech Kazubski <wk@ire.pw.edu.pl>
- Added a patch moved-freedv_callback_rx_sym-into-internal-header.patch
to fix building gnuradio (patch taken from upstream)
-------------------------------------------------------------------
Sat Oct 2 15:58:11 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@@ -30,6 +30,7 @@ Source: https://github.com/drowe67/codec2/archive/v%{version}.tar.gz#/%{
Source1: %{name}-rpmlintrc
Source2: baselibs.conf
Patch0: codec2-no_return_random.patch
Patch1: moved-freedv_callback_rx_sym-into-internal-header.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig

View File

@@ -0,0 +1,46 @@
From 7a554bad2f28a4cf19cddf43c619fe5921ddaea3 Mon Sep 17 00:00:00 2001
From: drowe67 <david@rowetel.com>
Date: Sat, 2 Oct 2021 15:48:09 +0930
Subject: [PATCH] moved freedv_callback_rx_sym typedef and function into
freedv_api_internal.h
---
src/freedv_api.h | 2 --
src/freedv_api_internal.h | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/freedv_api.h b/src/freedv_api.h
index 23c5fef8..9393bd80 100644
--- a/src/freedv_api.h
+++ b/src/freedv_api.h
@@ -145,7 +145,6 @@ struct freedv_advanced {
// Called when text message char is decoded
typedef void (*freedv_callback_rx)(void *, char);
-typedef void (*freedv_callback_rx_sym)(void *, _Complex float, float);
// Called when new text message char is needed
typedef char (*freedv_callback_tx)(void *);
typedef void (*freedv_calback_error_pattern)
@@ -212,7 +211,6 @@ int freedv_check_crc16_unpacked(unsigned char *unpacked_bits, int nbits);
// Set parameters ------------------------------------------------------------
void freedv_set_callback_txt (struct freedv *freedv, freedv_callback_rx rx, freedv_callback_tx tx, void *callback_state);
-void freedv_set_callback_txt_sym (struct freedv *freedv, freedv_callback_rx_sym rx, void *callback_state);
void freedv_set_callback_protocol (struct freedv *freedv, freedv_callback_protorx rx, freedv_callback_prototx tx, void *callback_state);
void freedv_set_callback_data (struct freedv *freedv, freedv_callback_datarx datarx, freedv_callback_datatx datatx, void *callback_state);
void freedv_set_test_frames (struct freedv *freedv, int test_frames);
diff --git a/src/freedv_api_internal.h b/src/freedv_api_internal.h
index 0197e184..e7a9526c 100644
--- a/src/freedv_api_internal.h
+++ b/src/freedv_api_internal.h
@@ -230,6 +230,10 @@ int freedv_rx_fsk_ldpc_data(struct freedv *f, COMP demod_in[]);
int freedv_bits_to_speech(struct freedv *f, short speech_out[], short demod_in[], int rx_status);
+// for the reliable text protocol we need to pass symbols back rather than text
+typedef void (*freedv_callback_rx_sym)(void *, _Complex float, float);
+void freedv_set_callback_txt_sym (struct freedv *freedv, freedv_callback_rx_sym rx, void *callback_state);
+
#ifdef __cplusplus
}
#endif