wct4xxp: VPM companding switch print is now debug only.
This print happened when the linemode was changed via sysfs, but it didn't really add much extra information that a user could act on. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
parent
43ad3eeb65
commit
a5a52dbe94
@ -183,7 +183,7 @@ static inline int t4_queue_work(struct workqueue_struct *wq, struct work_struct
|
||||
"CONFIG_NOEXTENDED_RESET."
|
||||
#endif
|
||||
|
||||
static int debug=0;
|
||||
int debug = 0;
|
||||
static int timingcable = 0;
|
||||
static int t1e1override = -1; /* deprecated */
|
||||
static char *default_linemode = "auto";
|
||||
|
@ -256,8 +256,10 @@ void vpm450m_set_alaw_companding(struct vpm450m *vpm450m, int channel,
|
||||
pr_notice("Failed to apply echo can changes on channel %d %d %08x!\n",
|
||||
vpm450m->aulEchoChanHndl[channel], channel, ulResult);
|
||||
} else {
|
||||
pr_info("Changed companding on channel %d to %s.\n", channel,
|
||||
(alaw) ? "alaw" : "ulaw");
|
||||
if (debug) {
|
||||
pr_info("Changed companding on channel %d to %s.\n",
|
||||
channel, (alaw) ? "alaw" : "ulaw");
|
||||
}
|
||||
if (alaw)
|
||||
vpm450m->chanflags[channel] |= FLAG_ALAW;
|
||||
else
|
||||
|
@ -42,4 +42,6 @@ void release_vpm450m(struct vpm450m *instance);
|
||||
void vpm450m_set_alaw_companding(struct vpm450m *vpm450m,
|
||||
int channel, bool alaw);
|
||||
|
||||
extern int debug;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user