2004-03-22 17:24:57

by C.L. Tien - 田承禮

[permalink] [raw]
Subject: ANN: cmpci 6.64 released

Hi,

I made many changes for cmpci.c since last release. Changes are made as follows:

1. Fix the S/PDIF out programming bug appeared in 6.16.
2. Support 8338 4-channel playback.
3. S/PDIF loop can be used after AC3 playback.
4. Legacy devices (FM, MPU401 and gameport) are served by other modules.
Now the code is thinner.
5. Remove parameters setting from kernel configure menu, they can be
set easily when loading the module.
6. Add spdif_out to output 44.1K/48K 16-bit stereo to S/PDIF out.
7. Add hw_copy to duplicate audio of front speakers to surround speakers.
8. Change code to minimum patch for kernel 2.6.

The attached cmpci.c in cmpci-6.64.tar.bz2 is the updated driver, and 46.diff is the patch file that needed for kernel 2.6.

The cmpci-patch-2.4.25.tar.bz2 and cmpci-patch-2.6.4.tar.bz2 are patches for kernel 2.4.25/2.6.4 tree patch, they are needed to support legacy devices, otherwise you may ignore them.

The cmi8738.tar.bz2 contains CMI8738, which is modified from CMI8338. It describe the parameters cmi8738 can support.

Please feedback if you have any question, I will post to kernel maintaner if no serious problem with it.

Sincerely,
ChenLi Tien



Attachments:
cmpci-patch-2.4.25.tar.bz2 (1.96 kB)
cmpci-patch-2.4.25.tar.bz2
cmpci-patch-2.6.4.tar.bz2 (1.77 kB)
cmpci-patch-2.6.4.tar.bz2
cmpci-6.64.tar.bz2 (18.48 kB)
cmpci-6.64.tar.bz2
cmi8738.tar.bz2 (1.38 kB)
cmi8738.tar.bz2
Download all attachments

2004-03-22 17:53:31

by Jeff Garzik

[permalink] [raw]
Subject: Re: ANN: cmpci 6.64 released

C.L. Tien - ?Щ?§ wrote:
> Hi,
>
> I made many changes for cmpci.c since last release. Changes are made as follows:
>
> 1. Fix the S/PDIF out programming bug appeared in 6.16.
> 2. Support 8338 4-channel playback.
> 3. S/PDIF loop can be used after AC3 playback.
> 4. Legacy devices (FM, MPU401 and gameport) are served by other modules.
> Now the code is thinner.
> 5. Remove parameters setting from kernel configure menu, they can be
> set easily when loading the module.
> 6. Add spdif_out to output 44.1K/48K 16-bit stereo to S/PDIF out.
> 7. Add hw_copy to duplicate audio of front speakers to surround speakers.
> 8. Change code to minimum patch for kernel 2.6.

The driver looks pretty good, for both 2.4 and 2.6. And the listed
changes above sound OK. I see the driver is smaller now.

May I respectfully request that you submit your driver update in the
form of multiple patches, one patch per email? This is the normal
method of submitting changes to the Linux kernel. For example, create
and send 8 patches to Andrew Morton for inclusion in the 2.6.x kernel.
Each patch is applied after the last one, in succeeding order. Typical
email subjects would look like

[PATCH 1/8] cmpci: fix s/pdif out
[PATCH 2/8] cmpci: support 8338 4-channel
[PATCH 3/8] cmpci: s/pdif loop
etc.

Splitting up changes in this manner allows for better verification, and
makes it easier to narrow down bugs to a specific change. Large "one
big patch" updates often solve many bugs, and then add a few new bugs.

Best regards and thanks,

Jeff



2004-03-26 03:21:22

by C.L. Tien - 田承禮

[permalink] [raw]
Subject: RE: ANN: cmpci 6.64 released




-----Original Message-----
From: Jeff Garzik [mailto:[email protected]]
Sent: 2004/3/22 [?P???@] ?U?? 12:53
To: C.L. Tien - ?Щ?§
Cc: [email protected]; [email protected]; ???H?s??-???? Support ?H?c; Andrew Morton; Marcelo Tosatti
Subject: Re: ANN: cmpci 6.64 released
C.L. Tien - ?Щ?§ wrote:
> Hi,
>
> I made many changes for cmpci.c since last release. Changes are made as follows:
>
> 1. Fix the S/PDIF out programming bug appeared in 6.16.
> 2. Support 8338 4-channel playback.
> 3. S/PDIF loop can be used after AC3 playback.
> 4. Legacy devices (FM, MPU401 and gameport) are served by other modules.
> Now the code is thinner.
> 5. Remove parameters setting from kernel configure menu, they can be
> set easily when loading the module.
> 6. Add spdif_out to output 44.1K/48K 16-bit stereo to S/PDIF out.
> 7. Add hw_copy to duplicate audio of front speakers to surround speakers.
> 8. Change code to minimum patch for kernel 2.6.

The driver looks pretty good, for both 2.4 and 2.6. And the listed
changes above sound OK. I see the driver is smaller now.

May I respectfully request that you submit your driver update in the
form of multiple patches, one patch per email? This is the normal
method of submitting changes to the Linux kernel. For example, create
and send 8 patches to Andrew Morton for inclusion in the 2.6.x kernel.
Each patch is applied after the last one, in succeeding order. Typical
email subjects would look like

[PATCH 1/8] cmpci: fix s/pdif out
[PATCH 2/8] cmpci: support 8338 4-channel
[PATCH 3/8] cmpci: s/pdif loop
etc.

Splitting up changes in this manner allows for better verification, and
makes it easier to narrow down bugs to a specific change. Large "one
big patch" updates often solve many bugs, and then add a few new bugs.

Best regards and thanks,

Jeff


The driver I sent is for general user that they can replace existed driver with the file.

Now I attach the diff files since 6.16 and please verify them, please note that the 6.16 driver appear in kernel 2.4.25 tree doesn't match the 6.16 in my CVS tree. Please use kernel-2.4.25-cltien.diff before use other patches between versions.

Please refer to logs for changes between versions. Most changes are for HW function and I already change the code to meet kernel 2.4 requirements. Please revise them and let me know the changes.

The cmpci in kernel 2.6.x is still 5.64, which maintain kernel 2.2.x compatiblibility. I hope kernel 2.4.x and 2.6.x use the same version and only use the 46.diff to change for 2.4->2.6.

Sincerely,
ChenLi Tien



Attachments:
cvs-patchs.tar.bz2 (23.05 kB)
cvs-patchs.tar.bz2