|
@@ -687,7 +687,7 @@ static const char *const nrv10_meter_labels[] = {
|
|
|
static int
|
|
|
normal_meter_get(struct snd_bebob *bebob, u32 *buf, unsigned int size)
|
|
|
{
|
|
|
- struct snd_bebob_meter_spec *spec = bebob->spec->meter;
|
|
|
+ const struct snd_bebob_meter_spec *spec = bebob->spec->meter;
|
|
|
unsigned int c, channels;
|
|
|
int err;
|
|
|
|
|
@@ -712,85 +712,85 @@ end:
|
|
|
}
|
|
|
|
|
|
/* for special customized devices */
|
|
|
-static struct snd_bebob_rate_spec special_rate_spec = {
|
|
|
+static const struct snd_bebob_rate_spec special_rate_spec = {
|
|
|
.get = &special_get_rate,
|
|
|
.set = &special_set_rate,
|
|
|
};
|
|
|
-static struct snd_bebob_clock_spec special_clk_spec = {
|
|
|
+static const struct snd_bebob_clock_spec special_clk_spec = {
|
|
|
.num = ARRAY_SIZE(special_clk_types),
|
|
|
.types = special_clk_types,
|
|
|
.get = &special_clk_get,
|
|
|
};
|
|
|
-static struct snd_bebob_meter_spec special_meter_spec = {
|
|
|
+static const struct snd_bebob_meter_spec special_meter_spec = {
|
|
|
.num = ARRAY_SIZE(special_meter_labels),
|
|
|
.labels = special_meter_labels,
|
|
|
.get = &special_meter_get
|
|
|
};
|
|
|
-struct snd_bebob_spec maudio_special_spec = {
|
|
|
+const struct snd_bebob_spec maudio_special_spec = {
|
|
|
.clock = &special_clk_spec,
|
|
|
.rate = &special_rate_spec,
|
|
|
.meter = &special_meter_spec
|
|
|
};
|
|
|
|
|
|
/* Firewire 410 specification */
|
|
|
-static struct snd_bebob_rate_spec usual_rate_spec = {
|
|
|
+static const struct snd_bebob_rate_spec usual_rate_spec = {
|
|
|
.get = &snd_bebob_stream_get_rate,
|
|
|
.set = &snd_bebob_stream_set_rate,
|
|
|
};
|
|
|
-static struct snd_bebob_meter_spec fw410_meter_spec = {
|
|
|
+static const struct snd_bebob_meter_spec fw410_meter_spec = {
|
|
|
.num = ARRAY_SIZE(fw410_meter_labels),
|
|
|
.labels = fw410_meter_labels,
|
|
|
.get = &normal_meter_get
|
|
|
};
|
|
|
-struct snd_bebob_spec maudio_fw410_spec = {
|
|
|
+const struct snd_bebob_spec maudio_fw410_spec = {
|
|
|
.clock = NULL,
|
|
|
.rate = &usual_rate_spec,
|
|
|
.meter = &fw410_meter_spec
|
|
|
};
|
|
|
|
|
|
/* Firewire Audiophile specification */
|
|
|
-static struct snd_bebob_meter_spec audiophile_meter_spec = {
|
|
|
+static const struct snd_bebob_meter_spec audiophile_meter_spec = {
|
|
|
.num = ARRAY_SIZE(audiophile_meter_labels),
|
|
|
.labels = audiophile_meter_labels,
|
|
|
.get = &normal_meter_get
|
|
|
};
|
|
|
-struct snd_bebob_spec maudio_audiophile_spec = {
|
|
|
+const struct snd_bebob_spec maudio_audiophile_spec = {
|
|
|
.clock = NULL,
|
|
|
.rate = &usual_rate_spec,
|
|
|
.meter = &audiophile_meter_spec
|
|
|
};
|
|
|
|
|
|
/* Firewire Solo specification */
|
|
|
-static struct snd_bebob_meter_spec solo_meter_spec = {
|
|
|
+static const struct snd_bebob_meter_spec solo_meter_spec = {
|
|
|
.num = ARRAY_SIZE(solo_meter_labels),
|
|
|
.labels = solo_meter_labels,
|
|
|
.get = &normal_meter_get
|
|
|
};
|
|
|
-struct snd_bebob_spec maudio_solo_spec = {
|
|
|
+const struct snd_bebob_spec maudio_solo_spec = {
|
|
|
.clock = NULL,
|
|
|
.rate = &usual_rate_spec,
|
|
|
.meter = &solo_meter_spec
|
|
|
};
|
|
|
|
|
|
/* Ozonic specification */
|
|
|
-static struct snd_bebob_meter_spec ozonic_meter_spec = {
|
|
|
+static const struct snd_bebob_meter_spec ozonic_meter_spec = {
|
|
|
.num = ARRAY_SIZE(ozonic_meter_labels),
|
|
|
.labels = ozonic_meter_labels,
|
|
|
.get = &normal_meter_get
|
|
|
};
|
|
|
-struct snd_bebob_spec maudio_ozonic_spec = {
|
|
|
+const struct snd_bebob_spec maudio_ozonic_spec = {
|
|
|
.clock = NULL,
|
|
|
.rate = &usual_rate_spec,
|
|
|
.meter = &ozonic_meter_spec
|
|
|
};
|
|
|
|
|
|
/* NRV10 specification */
|
|
|
-static struct snd_bebob_meter_spec nrv10_meter_spec = {
|
|
|
+static const struct snd_bebob_meter_spec nrv10_meter_spec = {
|
|
|
.num = ARRAY_SIZE(nrv10_meter_labels),
|
|
|
.labels = nrv10_meter_labels,
|
|
|
.get = &normal_meter_get
|
|
|
};
|
|
|
-struct snd_bebob_spec maudio_nrv10_spec = {
|
|
|
+const struct snd_bebob_spec maudio_nrv10_spec = {
|
|
|
.clock = NULL,
|
|
|
.rate = &usual_rate_spec,
|
|
|
.meter = &nrv10_meter_spec
|