--8323328-1136156973-979849430=:5753
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
A patch for the via82cxxx_audio sound driver against 2.4.1-pre8.
It includes:
1. Support for variable fragment size and variable fragment number
2. Fixes for the SPEED, STEREO, CHANNELS, FMT ioctls when in read & write
mode
2.1 Mmaped sound is now fully functional.
The patch is fairly tested (xmms, quake3, oss-test) but it might
still have some bugs. Also there is almost no documentation update...
sorry.
The remaining issue with the driver (that I can see) are the
click/pops that happen when playback is started/stopped. I guess some
of the channel setting/resetting is just a bit too harsh.
Rui Sousa
--8323328-1136156973-979849430=:5753
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="via-2.4.1-pre8.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.30.0101182123500.5753@localhost.localdomain>
Content-Description: via patch
Content-Disposition: attachment; filename="via-2.4.1-pre8.patch"
LS0tIGxpbnV4LTIuNC4xLXByZTgvZHJpdmVycy9zb3VuZC92aWE4MmN4eHhf
YXVkaW8uYwlTYXQgRGVjIDMwIDA1OjI1OjQ3IDIwMDANCisrKyBsaW51eC0y
LjQuMS1wcmU4Lm5ldy9kcml2ZXJzL3NvdW5kL3ZpYTgyY3h4eF9hdWRpby5j
CVRodSBKYW4gMTggMjE6MjI6MTcgMjAwMQ0KQEAgLTc2LDggKzc2LDE2IEBA
DQogI2RlZmluZSBWSUFfQ09VTlRFUl9MSU1JVAkxMDAwMDANCiANCiAvKiBz
aXplIG9mIERNQSBidWZmZXJzICovDQotI2RlZmluZSBWSUFfRE1BX0JVRkZF
UlMJCTE2DQotI2RlZmluZSBWSUFfRE1BX0JVRl9TSVpFCVBBR0VfU0laRQ0K
KyNkZWZpbmUgVklBX01BWF9CVUZGRVJfRE1BX1BBR0VTCTMyDQorDQorLyog
YnVmZmVyaW5nIGRlZmF1bHQgdmFsdWVzIGluIG1zICovDQorI2RlZmluZSBW
SUFfREVGQVVMVF9GUkFHX1RJTUUJCTIwDQorI2RlZmluZSBWSUFfREVGQVVM
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iKTsNCiB9DQogDQogDQpAQCAtMzEzMyw3ICszMjkyLDcgQEANCiANCiAJ
CSk7DQogDQotCURQUklOVEsoIkVYSVQsIHJldHVybmluZyAlZFxuIiwgbGVu
KTsNCisJRFBSSU5USyAoIkVYSVQsIHJldHVybmluZyAlZFxuIiwgbGVuKTsN
CiAJcmV0dXJuIGxlbjsNCiANCiAjdW5kZWYgWU4NCg==
--8323328-1136156973-979849430=:5753--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/