--1920110659-756053209-1002702892=:28053
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.NEB.4.40.0110101046361.28094@mimas.fachschaften.tu-muenchen.de>
On 9 Oct 2001, Thomas Hood wrote:
> > Two things that might perhaps have influence:
> > 2.4.10-ac9
> > ...
> > o Clean up ad1816 resource handling (Arnaldo Carvalho de Melo)
> > ...
>
> I think you've got it.
>...
Yes, that was it. Sound works again for me after I've reversed the
attached patch to drivers/sound/ad1816.c.
cu
Adrian
--Get my GPG key: finger bunk@debian.org | gpg --import
Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400
--1920110659-756053209-1002702892=:28053 Content-Type: TEXT/PLAIN; NAME="patch-ad1816.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.NEB.4.40.0110101034520.28053@mimas.fachschaften.tu-muenchen.de> Content-Description: Content-Disposition: ATTACHMENT; FILENAME="patch-ad1816.c"
LS0tIGxpbnV4LmFjL2RyaXZlcnMvc291bmQvYWQxODE2LmMNCisrKyBsaW51 eC5hYy9kcml2ZXJzL3NvdW5kL2FkMTgxNi5jDQpAQCAtMjgsNiArMjgsOCBA QA0KICAqCUNocmlzdG9waCBIZWxsd2lnOiBBZGFwdGVkIHRvIG1vZHVsZV9p bml0L21vZHVsZV9leGl0LgkyMDAwLzAzLzAzDQogICoNCiAgKglDaHJpc3Rv cGggSGVsbHdpZzogQWRkZWQgaXNhcG5wIHN1cHBvcnQJCQkyMDAwLzAzLzE1 DQorICoNCisgKglBcm5hbGRvIENhcnZhbGhvIGRlIE1lbG86IGdldCByaWQg b2YgY2hlY2tfcmVnaW9uCTIwMDEvMTAvMDcNCiAgKi8NCiANCiAjaW5jbHVk ZSA8bGludXgvY29uZmlnLmg+DQpAQCAtNDgsNyArNTAsNyBAQA0KICAgICAg ICAgICB0aW1lb3V0LS07IFwNCiAgIH0gXA0KICAgaWYgKHRpbWVvdXQ9PTAp IHtcDQotICAgICAgICAgIHByaW50aygiYWQxOD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iAoZGV2Yy0+ZG1hX2NhcHR1cmUgPj0g MCkNCisJICAgICAgICBzb3VuZF9mcmVlX2RtYShod19jb25maWctPmRtYTIp Ow0KK291dF9mcmVlX2RtYToNCisJc291bmRfZnJlZV9kbWEoaHdfY29uZmln LT5kbWEpOw0KK291dF9mcmVlX2lycToNCisJZnJlZV9pcnEoaHdfY29uZmln LT5pcnEsaHdfY29uZmlnLT5vc3ApOw0KK291dF9yZWxlYXNlX3JlZ2lvbjoN CisJcmVsZWFzZV9yZWdpb24oaHdfY29uZmlnLT5pb19iYXNlLCAxNik7DQor CWdvdG8gb3V0Ow0KIH0NCiANCiBzdGF0aWMgdm9pZCBfX2V4aXQgdW5sb2Fk X2NhcmQoYWQxODE2X2luZm8gKmRldmMpDQpAQCAtMTI0Miw5ICsxMjQ3LDgg QEANCiAJCQ0KIAkJREVCVUdMT0cgKHByaW50aygiYWQxODE2OiBVbmxvYWRp bmcgY2FyZCBhdCBiYXNlPSV4IHdhcyBzdWNjZXNzZnVsXG4iLGRldmMtPmJh c2UpKTsNCiAJCQ0KLQl9IGVsc2Ugew0KLQkJcHJpbnRrICgiYWQxODE2OiBu byBkZXZpY2UvY2FyZCBzcGVjaWZpZWRcbiIpOw0KLQl9DQorCX0gZWxzZQ0K KwkJcHJpbnRrKEtFUk5fV0FSTklORyAiYWQxODE2OiBubyBkZXZpY2UvY2Fy ZCBzcGVjaWZpZWRcbiIpOw0KIH0NCiANCiBzdGF0aWMgc3RydWN0IGFkZHJl c3NfaW5mbyBjZmc7DQo= --1920110659-756053209-1002702892=:28053-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/