mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-02-22 01:40:18 -05:00
- updated to version 1.4
fixed compile warnings.
This commit is contained in:
parent
ca7ae60abd
commit
c4afb782fd
19 changed files with 117 additions and 51 deletions
|
|
@ -1,2 +1,8 @@
|
||||||
|
Version 1.4 (24/11/2003) :
|
||||||
|
* Fix compilation warnings
|
||||||
|
|
||||||
|
Version 1.3 (21/11/2003) :
|
||||||
|
* Added a .desktop file and icon
|
||||||
|
|
||||||
Version 1.2 (01/11/2003) :
|
Version 1.2 (01/11/2003) :
|
||||||
* added support for HDSP 9652 and HDSP 9632 specific features
|
* added support for HDSP 9652 and HDSP 9632 specific features
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
AC_INIT(src/hdspconf.cxx)
|
AC_INIT(src/hdspconf.cxx)
|
||||||
AM_INIT_AUTOMAKE(hdspconf, 1.3)
|
AM_INIT_AUTOMAKE(hdspconf, 1.4)
|
||||||
|
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,6 @@ void adat_internal_cb(Fl_Widget *w, void *arg)
|
||||||
|
|
||||||
HC_Aeb::HC_Aeb(int x, int y, int w, int h):Fl_Group(x, y, w, h, "AEB")
|
HC_Aeb::HC_Aeb(int x, int y, int w, int h):Fl_Group(x, y, w, h, "AEB")
|
||||||
{
|
{
|
||||||
int i = 0;
|
|
||||||
lock = 0;
|
lock = 0;
|
||||||
box(FL_ENGRAVED_FRAME);
|
box(FL_ENGRAVED_FRAME);
|
||||||
label("AEB");
|
label("AEB");
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,7 @@
|
||||||
|
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_AutoSyncRef.h"
|
#include "HC_AutoSyncRef.h"
|
||||||
|
#include "labels.h"
|
||||||
extern char *freqs[10];
|
|
||||||
extern char *ref[7];
|
|
||||||
|
|
||||||
HC_AutoSyncRef::HC_AutoSyncRef(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "AutoSync Ref.")
|
HC_AutoSyncRef::HC_AutoSyncRef(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "AutoSync Ref.")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include "HC_CardPane.h"
|
#include "HC_CardPane.h"
|
||||||
|
#include "labels.h"
|
||||||
|
|
||||||
class HC_CardPane;
|
class HC_CardPane;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,6 @@ void xlr_cb(Fl_Widget *w, void *arg)
|
||||||
|
|
||||||
HC_BreakoutCable::HC_BreakoutCable(int x, int y, int w, int h):Fl_Group(x, y, w, h, "Breakout Cable")
|
HC_BreakoutCable::HC_BreakoutCable(int x, int y, int w, int h):Fl_Group(x, y, w, h, "Breakout Cable")
|
||||||
{
|
{
|
||||||
int i = 0;
|
|
||||||
lock = 0;
|
lock = 0;
|
||||||
box(FL_ENGRAVED_FRAME);
|
box(FL_ENGRAVED_FRAME);
|
||||||
label("Breakout Cable");
|
label("Breakout Cable");
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,12 @@ extern char *freqs[10];
|
||||||
|
|
||||||
void clock_source_cb(Fl_Widget *w, void *arg)
|
void clock_source_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
int src, err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
snd_ctl_elem_value_t *ctl;
|
snd_ctl_elem_value_t *ctl;
|
||||||
snd_ctl_elem_id_t *id;
|
snd_ctl_elem_id_t *id;
|
||||||
snd_ctl_t *handle;
|
snd_ctl_t *handle;
|
||||||
|
int src = 0;
|
||||||
HC_ClockSource *cs = (HC_ClockSource *)arg;
|
HC_ClockSource *cs = (HC_ClockSource *)arg;
|
||||||
HC_CardPane *pane = (HC_CardPane *)(cs->parent());
|
HC_CardPane *pane = (HC_CardPane *)(cs->parent());
|
||||||
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,12 @@
|
||||||
#ifndef HC_CLOCKSOURCE_H
|
#ifndef HC_CLOCKSOURCE_H
|
||||||
#define HC_CLOCKSOURCE_H
|
#define HC_CLOCKSOURCE_H
|
||||||
|
|
||||||
|
|
||||||
#include <FL/Fl_Group.H>
|
#include <FL/Fl_Group.H>
|
||||||
#include <FL/Fl_Round_Button.H>
|
#include <FL/Fl_Round_Button.H>
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#include "HC_CardPane.h"
|
#include "HC_CardPane.h"
|
||||||
|
#include "labels.h"
|
||||||
|
|
||||||
class HC_CardPane;
|
class HC_CardPane;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,12 @@
|
||||||
|
|
||||||
void input_level_cb(Fl_Widget *w, void *arg)
|
void input_level_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
int gain, err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
snd_ctl_elem_value_t *ctl;
|
snd_ctl_elem_value_t *ctl;
|
||||||
snd_ctl_elem_id_t *id;
|
snd_ctl_elem_id_t *id;
|
||||||
snd_ctl_t *handle;
|
snd_ctl_t *handle;
|
||||||
|
int gain = 0;
|
||||||
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
||||||
HC_InputLevel *il = (HC_InputLevel *)arg;
|
HC_InputLevel *il = (HC_InputLevel *)arg;
|
||||||
HC_CardPane *pane = (HC_CardPane *)il->parent();
|
HC_CardPane *pane = (HC_CardPane *)il->parent();
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,12 @@
|
||||||
|
|
||||||
void output_level_cb(Fl_Widget *w, void *arg)
|
void output_level_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
int gain, err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
snd_ctl_elem_value_t *ctl;
|
snd_ctl_elem_value_t *ctl;
|
||||||
snd_ctl_elem_id_t *id;
|
snd_ctl_elem_id_t *id;
|
||||||
snd_ctl_t *handle;
|
snd_ctl_t *handle;
|
||||||
|
int gain = 0;
|
||||||
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
||||||
HC_OutputLevel *ol = (HC_OutputLevel *)arg;
|
HC_OutputLevel *ol = (HC_OutputLevel *)arg;
|
||||||
HC_CardPane *pane = (HC_CardPane *)ol->parent();
|
HC_CardPane *pane = (HC_CardPane *)ol->parent();
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,12 @@
|
||||||
|
|
||||||
void phones_cb(Fl_Widget *w, void *arg)
|
void phones_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
int gain, err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
snd_ctl_elem_value_t *ctl;
|
snd_ctl_elem_value_t *ctl;
|
||||||
snd_ctl_elem_id_t *id;
|
snd_ctl_elem_id_t *id;
|
||||||
snd_ctl_t *handle;
|
snd_ctl_t *handle;
|
||||||
|
int gain = 0;
|
||||||
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
||||||
HC_Phones *ph = (HC_Phones *)arg;
|
HC_Phones *ph = (HC_Phones *)arg;
|
||||||
HC_CardPane *pane = (HC_CardPane *)ph->parent();
|
HC_CardPane *pane = (HC_CardPane *)ph->parent();
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,12 @@
|
||||||
|
|
||||||
void pref_sync_ref_cb(Fl_Widget *w, void *arg)
|
void pref_sync_ref_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
int ref, err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
snd_ctl_elem_value_t *ctl;
|
snd_ctl_elem_value_t *ctl;
|
||||||
snd_ctl_elem_id_t *id;
|
snd_ctl_elem_id_t *id;
|
||||||
snd_ctl_t *handle;
|
snd_ctl_t *handle;
|
||||||
|
int ref = 0;
|
||||||
HC_PrefSyncRef *psr = (HC_PrefSyncRef *)arg;
|
HC_PrefSyncRef *psr = (HC_PrefSyncRef *)arg;
|
||||||
HC_CardPane *pane = (HC_CardPane *)(psr->parent());
|
HC_CardPane *pane = (HC_CardPane *)(psr->parent());
|
||||||
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include "HC_CardPane.h"
|
#include "HC_CardPane.h"
|
||||||
|
#include "labels.h"
|
||||||
|
|
||||||
class HC_CardPane;
|
class HC_CardPane;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,12 @@
|
||||||
|
|
||||||
void spdif_in_cb(Fl_Widget *w, void *arg)
|
void spdif_in_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
int in, err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
snd_ctl_elem_value_t *ctl;
|
snd_ctl_elem_value_t *ctl;
|
||||||
snd_ctl_elem_id_t *id;
|
snd_ctl_elem_id_t *id;
|
||||||
snd_ctl_t *handle;
|
snd_ctl_t *handle;
|
||||||
|
int in = 0;
|
||||||
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
Fl_Round_Button *source = (Fl_Round_Button *)w;
|
||||||
HC_SpdifIn *si = (HC_SpdifIn *)arg;
|
HC_SpdifIn *si = (HC_SpdifIn *)arg;
|
||||||
HC_CardPane *pane = (HC_CardPane *)si->parent();
|
HC_CardPane *pane = (HC_CardPane *)si->parent();
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include "HC_CardPane.h"
|
#include "HC_CardPane.h"
|
||||||
|
#include "labels.h"
|
||||||
|
|
||||||
class HC_CardPane;
|
class HC_CardPane;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,4 +35,6 @@ hdspconf_SOURCES = \
|
||||||
HC_AboutText.cxx \
|
HC_AboutText.cxx \
|
||||||
HC_AboutText.h \
|
HC_AboutText.h \
|
||||||
pixmaps.cxx \
|
pixmaps.cxx \
|
||||||
pixmaps.h
|
pixmaps.h \
|
||||||
|
labels.cxx \
|
||||||
|
labels.h
|
||||||
|
|
|
||||||
|
|
@ -41,43 +41,6 @@ class HC_CardPane;
|
||||||
class HC_XpmRenderer;
|
class HC_XpmRenderer;
|
||||||
class HC_AboutText;
|
class HC_AboutText;
|
||||||
|
|
||||||
char *card_names[5] = {
|
|
||||||
"Digiface",
|
|
||||||
"Multiface",
|
|
||||||
"HDSP9652",
|
|
||||||
"HDSP9632",
|
|
||||||
"Undefined",
|
|
||||||
};
|
|
||||||
|
|
||||||
char *freqs[10] = {
|
|
||||||
"32.0 kHz",
|
|
||||||
"44.1 kHz",
|
|
||||||
"48.0 kHz",
|
|
||||||
"64.0 kHz",
|
|
||||||
"88.2 kHz",
|
|
||||||
"96.0 kHz",
|
|
||||||
"-----",
|
|
||||||
"128.0 kHz",
|
|
||||||
"176.4 kHz",
|
|
||||||
"192.0 kHz",
|
|
||||||
};
|
|
||||||
|
|
||||||
char *ref[7] = {
|
|
||||||
"Word Clock",
|
|
||||||
"ADAT Sync",
|
|
||||||
"SPDIF",
|
|
||||||
"-----",
|
|
||||||
"ADAT1",
|
|
||||||
"ADAT2",
|
|
||||||
"ADAT3"
|
|
||||||
};
|
|
||||||
|
|
||||||
char *lock_status[3] = {
|
|
||||||
"No Lock",
|
|
||||||
"Lock",
|
|
||||||
"Sync"
|
|
||||||
};
|
|
||||||
|
|
||||||
static void refresh_cb(void *arg)
|
static void refresh_cb(void *arg)
|
||||||
{
|
{
|
||||||
Fl_Tabs *tabs = (Fl_Tabs *)arg;
|
Fl_Tabs *tabs = (Fl_Tabs *)arg;
|
||||||
|
|
@ -159,7 +122,6 @@ int main(int argc, char **argv)
|
||||||
int card;
|
int card;
|
||||||
HDSP_IO_Type hdsp_cards[4];
|
HDSP_IO_Type hdsp_cards[4];
|
||||||
int alsa_index[4];
|
int alsa_index[4];
|
||||||
snd_ctl_t *handle;
|
|
||||||
snd_ctl_card_info_t *info;
|
snd_ctl_card_info_t *info;
|
||||||
snd_pcm_info_t *pcminfo;
|
snd_pcm_info_t *pcminfo;
|
||||||
int cards = 0;
|
int cards = 0;
|
||||||
|
|
|
||||||
59
hdspconf/src/labels.cxx
Normal file
59
hdspconf/src/labels.cxx
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
/*
|
||||||
|
* HDSPConf
|
||||||
|
*
|
||||||
|
* Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "labels.h"
|
||||||
|
|
||||||
|
char *card_names[5] = {
|
||||||
|
"Digiface",
|
||||||
|
"Multiface",
|
||||||
|
"HDSP9652",
|
||||||
|
"HDSP9632",
|
||||||
|
"Undefined",
|
||||||
|
};
|
||||||
|
|
||||||
|
char *freqs[10] = {
|
||||||
|
"32.0 kHz",
|
||||||
|
"44.1 kHz",
|
||||||
|
"48.0 kHz",
|
||||||
|
"64.0 kHz",
|
||||||
|
"88.2 kHz",
|
||||||
|
"96.0 kHz",
|
||||||
|
"-----",
|
||||||
|
"128.0 kHz",
|
||||||
|
"176.4 kHz",
|
||||||
|
"192.0 kHz",
|
||||||
|
};
|
||||||
|
|
||||||
|
char *ref[7] = {
|
||||||
|
"Word Clock",
|
||||||
|
"ADAT Sync",
|
||||||
|
"SPDIF",
|
||||||
|
"-----",
|
||||||
|
"ADAT1",
|
||||||
|
"ADAT2",
|
||||||
|
"ADAT3"
|
||||||
|
};
|
||||||
|
|
||||||
|
char *lock_status[3] = {
|
||||||
|
"No Lock",
|
||||||
|
"Lock",
|
||||||
|
"Sync"
|
||||||
|
};
|
||||||
|
|
||||||
30
hdspconf/src/labels.h
Normal file
30
hdspconf/src/labels.h
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* HDSPConf
|
||||||
|
*
|
||||||
|
* Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LABELS_H
|
||||||
|
#define LABELS_H
|
||||||
|
|
||||||
|
extern char *card_names[5];
|
||||||
|
extern char *freqs[10];
|
||||||
|
extern char *ref[7];
|
||||||
|
extern char *lock_status[3];
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue