mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-01 22:58:48 -04:00
hdspconf: fix some string constant conversions
Signed-off-by: Tim Blechmann <tim@klingt.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8f446f99e5
commit
e6c8241752
8 changed files with 43 additions and 43 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_BreakoutCable.h"
|
#include "HC_BreakoutCable.h"
|
||||||
|
|
||||||
static void setXlrStatus(char *ctl_name, int val, int card_index)
|
static void setXlrStatus(const char *ctl_name, int val, int card_index)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
char card_name[6];
|
char card_name[6];
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_CardPane.h"
|
#include "HC_CardPane.h"
|
||||||
|
|
||||||
extern char *card_names[5];
|
extern const char *card_names[5];
|
||||||
|
|
||||||
HC_CardPane::HC_CardPane(int alsa_idx, int idx, HDSP_IO_Type t):Fl_Group(PANE_X, PANE_Y, PANE_W, PANE_H)
|
HC_CardPane::HC_CardPane(int alsa_idx, int idx, HDSP_IO_Type t):Fl_Group(PANE_X, PANE_Y, PANE_W, PANE_H)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_ClockSource.h"
|
#include "HC_ClockSource.h"
|
||||||
|
|
||||||
extern char *freqs[10];
|
extern const char *freqs[10];
|
||||||
|
|
||||||
void clock_source_cb(Fl_Widget *w, void *arg)
|
void clock_source_cb(Fl_Widget *w, void *arg)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_SpdifFreq.h"
|
#include "HC_SpdifFreq.h"
|
||||||
|
|
||||||
extern char *freqs[10];
|
extern const char *freqs[10];
|
||||||
|
|
||||||
HC_SpdifFreq::HC_SpdifFreq(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "SPDIF Freq.")
|
HC_SpdifFreq::HC_SpdifFreq(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "SPDIF Freq.")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_SyncCheck.h"
|
#include "HC_SyncCheck.h"
|
||||||
|
|
||||||
extern char *lock_status[3];
|
extern const char *lock_status[3];
|
||||||
|
|
||||||
HC_SyncCheck::HC_SyncCheck(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "SyncCheck")
|
HC_SyncCheck::HC_SyncCheck(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "SyncCheck")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
#pragma implementation
|
#pragma implementation
|
||||||
#include "HC_SystemClock.h"
|
#include "HC_SystemClock.h"
|
||||||
|
|
||||||
extern char *freqs[10];
|
extern const char *freqs[10];
|
||||||
|
|
||||||
HC_SystemClock::HC_SystemClock(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "System Clock")
|
HC_SystemClock::HC_SystemClock(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "System Clock")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include "labels.h"
|
#include "labels.h"
|
||||||
|
|
||||||
char *card_names[5] = {
|
const char *card_names[5] = {
|
||||||
"Digiface",
|
"Digiface",
|
||||||
"Multiface",
|
"Multiface",
|
||||||
"HDSP9652",
|
"HDSP9652",
|
||||||
|
|
@ -28,7 +28,7 @@ char *card_names[5] = {
|
||||||
"Undefined",
|
"Undefined",
|
||||||
};
|
};
|
||||||
|
|
||||||
char *freqs[10] = {
|
const char *freqs[10] = {
|
||||||
"32.0 kHz",
|
"32.0 kHz",
|
||||||
"44.1 kHz",
|
"44.1 kHz",
|
||||||
"48.0 kHz",
|
"48.0 kHz",
|
||||||
|
|
@ -41,7 +41,7 @@ char *freqs[10] = {
|
||||||
"192.0 kHz",
|
"192.0 kHz",
|
||||||
};
|
};
|
||||||
|
|
||||||
char *ref[7] = {
|
const char *ref[7] = {
|
||||||
"Word Clock",
|
"Word Clock",
|
||||||
"ADAT Sync",
|
"ADAT Sync",
|
||||||
"SPDIF",
|
"SPDIF",
|
||||||
|
|
@ -51,7 +51,7 @@ char *ref[7] = {
|
||||||
"ADAT3"
|
"ADAT3"
|
||||||
};
|
};
|
||||||
|
|
||||||
char *lock_status[3] = {
|
const char *lock_status[3] = {
|
||||||
"No Lock",
|
"No Lock",
|
||||||
"Lock",
|
"Lock",
|
||||||
"Sync"
|
"Sync"
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
#ifndef LABELS_H
|
#ifndef LABELS_H
|
||||||
#define LABELS_H
|
#define LABELS_H
|
||||||
|
|
||||||
extern char *card_names[5];
|
extern const char *card_names[5];
|
||||||
extern char *freqs[10];
|
extern const char *freqs[10];
|
||||||
extern char *ref[7];
|
extern const char *ref[7];
|
||||||
extern char *lock_status[3];
|
extern const char *lock_status[3];
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue