Skip to content

Commit

Permalink
[eDVBVolumeControl]
Browse files Browse the repository at this point in the history
* use eTrace for openMixer error log
  • Loading branch information
jbleyel committed Sep 3, 2024
1 parent 84d7b6d commit 05dac2b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/dvb/volume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,13 @@ void eDVBVolumecontrol::setVolume(int left, int right)
}
#endif
closeMixer(fd);
return;
}
else
{
eDebug("[eDVBVolumecontrol] Error: Unable to open mixer! (%m)");
eTrace("[eDVBVolumecontrol] Error: Unable to open mixer! (%m)");
// Workaround because the mixer is opened exclusive in the driver
CFile::writeInt("/proc/stb/avs/0/volume", left); /* in -1dB */
}

// HACK?
CFile::writeInt("/proc/stb/avs/0/volume", left); /* in -1dB */
#endif
}

Expand All @@ -206,7 +204,7 @@ void eDVBVolumecontrol::volumeMute()
}
muted = true;

// HACK?
// Workaround because the mixer is opened exclusive in the driver
CFile::writeInt("/proc/stb/audio/j1_mute", 1);
#endif
}
Expand All @@ -229,7 +227,7 @@ void eDVBVolumecontrol::volumeUnMute()
}
muted = false;

// HACK?
// Workaround because the mixer is opened exclusive in the driver
CFile::writeInt("/proc/stb/audio/j1_mute", 0);
#endif
}
Expand Down

0 comments on commit 05dac2b

Please sign in to comment.