mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 01:52:35 -05:00
Fix accidental C++ style comments from r28341
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28494 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
981a639ade
commit
6d59785024
1 changed files with 4 additions and 4 deletions
|
|
@ -320,19 +320,19 @@ void audiohw_set_recvol(int left, int right, int type)
|
||||||
void audiohw_set_monitor(bool enable)
|
void audiohw_set_monitor(bool enable)
|
||||||
{
|
{
|
||||||
if (enable) {
|
if (enable) {
|
||||||
// set volume to 0 dB
|
/* set volume to 0 dB */
|
||||||
wm8975_regs[LOUTMIX1] &= ~LOUTMIX1_LI2LOVOL_MASK;
|
wm8975_regs[LOUTMIX1] &= ~LOUTMIX1_LI2LOVOL_MASK;
|
||||||
wm8975_regs[LOUTMIX1] |= LOUTMIX1_LI2LOVOL(2);
|
wm8975_regs[LOUTMIX1] |= LOUTMIX1_LI2LOVOL(2);
|
||||||
wm8975_regs[ROUTMIX2] &= ~ROUTMIX2_RI2ROVOL_MASK;
|
wm8975_regs[ROUTMIX2] &= ~ROUTMIX2_RI2ROVOL_MASK;
|
||||||
wm8975_regs[ROUTMIX2] |= ROUTMIX2_RI2ROVOL(2);
|
wm8975_regs[ROUTMIX2] |= ROUTMIX2_RI2ROVOL(2);
|
||||||
// set mux to line input
|
/* set mux to line input */
|
||||||
wm8975_write_and(LOUTMIX1, ~7);
|
wm8975_write_and(LOUTMIX1, ~7);
|
||||||
wm8975_write_and(ROUTMIX1, ~7);
|
wm8975_write_and(ROUTMIX1, ~7);
|
||||||
// enable bypass
|
/* enable bypass */
|
||||||
wm8975_write_or(LOUTMIX1, LOUTMIX1_LI2LO);
|
wm8975_write_or(LOUTMIX1, LOUTMIX1_LI2LO);
|
||||||
wm8975_write_or(ROUTMIX2, ROUTMIX2_RI2RO);
|
wm8975_write_or(ROUTMIX2, ROUTMIX2_RI2RO);
|
||||||
} else {
|
} else {
|
||||||
// disable bypass
|
/* disable bypass */
|
||||||
wm8975_write_and(LOUTMIX1, ~LOUTMIX1_LI2LO);
|
wm8975_write_and(LOUTMIX1, ~LOUTMIX1_LI2LO);
|
||||||
wm8975_write_and(ROUTMIX2, ~ROUTMIX2_RI2RO);
|
wm8975_write_and(ROUTMIX2, ~ROUTMIX2_RI2RO);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue