summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2010-02-02 10:56:07 +0100
committerSegher Boessenkool <segher@kernel.crashing.org>2010-02-02 10:56:07 +0100
commit5441606eab14754b232772bfd4a41a2ac9d135e9 (patch)
treeb4fa8546b65bc0df1066e4fda94950356b9736d4 /audio.c
parent00d457612969f64738934b6cda3fe087b2856f4f (diff)
Handle audio DAC disable
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio.c b/audio.c
index 95fa9e3..e29337c 100644
--- a/audio.c
+++ b/audio.c
@@ -132,6 +132,9 @@ static u16 next_sample(void)
static s16 next_host_sample(void)
{
+ if (mem[0x3d20] & 0x0002) // audio DAC disable
+ return 0;
+
return 0;
u32 acc = 0;
u32 i;