diff options
author | Hellmuth Michaelis <hm@FreeBSD.org> | 2002-06-09 14:20:17 +0000 |
---|---|---|
committer | Hellmuth Michaelis <hm@FreeBSD.org> | 2002-06-09 14:20:17 +0000 |
commit | 30d12b5c8696be0f0f417009bdb15fd111bd087f (patch) | |
tree | b4cae764694cbfa06e080b178393e15e81537374 /sys/dev/sound/isa | |
parent | 7aca952dcad91922516d568978870c8a31a18c18 (diff) | |
download | src-30d12b5c8696be0f0f417009bdb15fd111bd087f.tar.gz src-30d12b5c8696be0f0f417009bdb15fd111bd087f.zip |
Fix driver to re-enable sound output on AD1816 based cards caused by an
obviously bogous return value of ad1816chan_setformat().
PR: 37932
Submitted by: Martin Kaeske <Martin.Kaeske@Stud.TU-Ilmenau.DE>
Reviewed by: hm
MFC after: 10 days
Notes
Notes:
svn path=/head/; revision=98068
Diffstat (limited to 'sys/dev/sound/isa')
-rw-r--r-- | sys/dev/sound/isa/ad1816.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/isa/ad1816.c b/sys/dev/sound/isa/ad1816.c index 7371b899450c..ba8059f00a22 100644 --- a/sys/dev/sound/isa/ad1816.c +++ b/sys/dev/sound/isa/ad1816.c @@ -368,7 +368,11 @@ ad1816chan_setformat(kobj_t obj, void *data, u_int32_t format) if (format & AFMT_STEREO) fmt |= AD1816_STEREO; io_wr(ad1816, reg, fmt); ad1816_unlock(ad1816); +#if 0 return format; +#else + return 0; +#endif } static int |