Can anyone explain the rationale behind the CX25843 baseband audio
processing path being run at 32000 samples/second for I2S audio?

Here's my commented version of the setup from the cx18 code (which has
it's roots in the cx25840 code):

For 44.1 ksps I2S audio:

                        /* src1_ctl */
                        /* 0x1.60cd = 44100/32000 */
                        cx18_av_write4(cx, 0x8f8, 0x080160cd);

                        /* src3/4/6_ctl */
                        /* 0x1.7385 = 2 * (32000/44100) */
                        cx18_av_write4(cx, 0x900, 0x08017385);
                        cx18_av_write4(cx, 0x904, 0x08017385);
                        cx18_av_write4(cx, 0x90c, 0x08017385);

For 48 ksps I2S audio:
                        /* src1_ctl */
                        /* 0x1.8000 = 48000/32000 */
                        cx18_av_write4(cx, 0x8f8, 0x08018000);

                        /* src3/4/6_ctl */
                        /* 0x1.5555 = 2 * (32000/48000) */
                        cx18_av_write4(cx, 0x900, 0x08015555);
                        cx18_av_write4(cx, 0x904, 0x08015555);
                        cx18_av_write4(cx, 0x90c, 0x08015555);

Regards,
Andy


_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to