summaryrefslogtreecommitdiffstats
path: root/hdlcutil/fl/xfsmmixer_main.cxx
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 00:57:38 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:11:30 +0200
commit1245fbd2a8d60bab7b16b8a1d3c0122fee72f53f (patch)
tree6dcf938b1472a9b5cac35648ffb0f3d185c39590 /hdlcutil/fl/xfsmmixer_main.cxx
parent0b4425760be1f92a1f25daeb5d3dc91814a98622 (diff)
Nuke trailing whitespace.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'hdlcutil/fl/xfsmmixer_main.cxx')
-rw-r--r--hdlcutil/fl/xfsmmixer_main.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/hdlcutil/fl/xfsmmixer_main.cxx b/hdlcutil/fl/xfsmmixer_main.cxx
index 5569e7c..83774a0 100644
--- a/hdlcutil/fl/xfsmmixer_main.cxx
+++ b/hdlcutil/fl/xfsmmixer_main.cxx
@@ -52,7 +52,7 @@ static int do_mix_ioctl(int cmd, struct sm_mixer_data *mixdat)
{
struct sm_ioctl par;
int i;
-
+
par.cmd = cmd;
par.data.mix = *mixdat;
i = hdrvc_sm_ioctl(cmd, &par);
@@ -120,7 +120,7 @@ void update_ad1848(Fl_Widget *widget, void *udata)
mdata |= 0x20;
}
mval *= 0.666666;
- if (mval > 15)
+ if (mval > 15)
mval = 15;
mdata |= (int)mval;
set_mixer_reg(0x00, mdata);
@@ -139,7 +139,7 @@ void update_ad1848(Fl_Widget *widget, void *udata)
mdata |= 0x20;
}
mval *= 0.666666;
- if (mval > 15)
+ if (mval > 15)
mval = 15;
mdata |= (int)mval;
set_mixer_reg(0x01, mdata);
@@ -150,12 +150,12 @@ void update_ad1848(Fl_Widget *widget, void *udata)
mval = ad1848_outl->value();
if (mval < -95)
set_mixer_reg(0x06, 0x80);
- else
+ else
set_mixer_reg(0x06, (unsigned char)(mval * (-0.66666666)));
mval = ad1848_outr->value();
if (mval < -95)
set_mixer_reg(0x07, 0x80);
- else
+ else
set_mixer_reg(0x07, (unsigned char)(mval * (-0.66666666)));
set_mixer_reg(0x0d, 0x00);
}
@@ -272,7 +272,7 @@ void update_ct1745(Fl_Widget *widget, void *udata)
if (ct1745_srcl_midil->value())
mdata |= 0x40;
if (ct1745_srcl_midir->value())
- mdata |= 0x20;
+ mdata |= 0x20;
set_mixer_reg(0x3d, mdata); /* input sources left */
mdata = 0;
if (ct1745_srcr_mic->value())
@@ -288,7 +288,7 @@ void update_ct1745(Fl_Widget *widget, void *udata)
if (ct1745_srcr_midil->value())
mdata |= 0x40;
if (ct1745_srcr_midir->value())
- mdata |= 0x20;
+ mdata |= 0x20;
set_mixer_reg(0x3e, mdata); /* input sources right*/
}
@@ -301,7 +301,7 @@ void cb_quit(Fl_Button *, long)
/* ---------------------------------------------------------------------- */
-static const char *usage_str =
+static const char *usage_str =
"[-i smif]\n"
" -i: specify the name of the soundmodem kernel driver interface\n\n";
@@ -312,7 +312,7 @@ int main(int argc, char *argv[])
int c, i;
struct sm_mixer_data mixdat;
unsigned char mdata;
-
+
progname = *argv;
printf("%s: Version 0.3; (C) 1996,1997,2000 by Thomas Sailer HB9JNX/AE4WA\n", progname);
hdrvc_args(&argc, argv, "sm0");
@@ -352,7 +352,7 @@ int main(int argc, char *argv[])
case SM_MIXER_AD1848:
case SM_MIXER_CRYSTAL:
- printf("Mixer device: %s\n", mixdevice == SM_MIXER_CRYSTAL ?
+ printf("Mixer device: %s\n", mixdevice == SM_MIXER_CRYSTAL ?
"CS423x" : "AD1848");
create_form_ad1848();
mdata = get_mixer_reg(0);