Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124434
b: refs/heads/master
c: 57e24b6
h: refs/heads/master
v: v3
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 3c4cc90 commit b7e08a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15029b39bb95a765b57ad81f5062718b10422072
refs/heads/master: 57e24b629a5282bee24aaff44977270a3e462041
24 changes: 12 additions & 12 deletions trunk/drivers/media/video/cx18/cx18-av-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ static int set_audclk_freq(struct cx18 *cx, u32 freq)
cx18_av_write4(cx, 0x12c, 0x11202fff);

/*
* EN_AV_LOCK = 1
* EN_AV_LOCK = 0
* VID_COUNT = 0x0d2ef8 = 107999.000 * 8 =
* ((8 samples/32,000) * (13,500,000 * 8) * 4 - 1) * 8
*/
cx18_av_write4(cx, 0x128, 0xa10d2ef8);
cx18_av_write4(cx, 0x128, 0xa00d2ef8);
break;

case 44100:
Expand All @@ -82,11 +82,11 @@ static int set_audclk_freq(struct cx18 *cx, u32 freq)
cx18_av_write4(cx, 0x12c, 0x112092ff);

/*
* EN_AV_LOCK = 1
* EN_AV_LOCK = 0
* VID_COUNT = 0x1d4bf8 = 239999.000 * 8 =
* ((49 samples/44,100) * (13,500,000 * 8) * 2 - 1) * 8
*/
cx18_av_write4(cx, 0x128, 0xa11d4bf8);
cx18_av_write4(cx, 0x128, 0xa01d4bf8);
break;

case 48000:
Expand All @@ -107,11 +107,11 @@ static int set_audclk_freq(struct cx18 *cx, u32 freq)
cx18_av_write4(cx, 0x12c, 0x11205fff);

/*
* EN_AV_LOCK = 1
* EN_AV_LOCK = 0
* VID_COUNT = 0x1193f8 = 143999.000 * 8 =
* ((4 samples/48,000) * (13,500,000 * 8) * 16 - 1) * 8
*/
cx18_av_write4(cx, 0x128, 0xa11193f8);
cx18_av_write4(cx, 0x128, 0xa01193f8);
break;
}
} else {
Expand Down Expand Up @@ -141,11 +141,11 @@ static int set_audclk_freq(struct cx18 *cx, u32 freq)
cx18_av_write4(cx, 0x12c, 0x11201fff);

/*
* EN_AV_LOCK = 1
* EN_AV_LOCK = 0
* VID_COUNT = 0x0d2ef8 = 107999.000 * 8 =
* ((8 samples/32,000) * (13,500,000 * 8) * 4 - 1) * 8
*/
cx18_av_write4(cx, 0x128, 0xa10d2ef8);
cx18_av_write4(cx, 0x128, 0xa00d2ef8);
break;

case 44100:
Expand All @@ -170,11 +170,11 @@ static int set_audclk_freq(struct cx18 *cx, u32 freq)
cx18_av_write4(cx, 0x12c, 0x112061ff);

/*
* EN_AV_LOCK = 1
* EN_AV_LOCK = 0
* VID_COUNT = 0x1d4bf8 = 239999.000 * 8 =
* ((49 samples/44,100) * (13,500,000 * 8) * 2 - 1) * 8
*/
cx18_av_write4(cx, 0x128, 0xa11d4bf8);
cx18_av_write4(cx, 0x128, 0xa01d4bf8);
break;

case 48000:
Expand All @@ -199,11 +199,11 @@ static int set_audclk_freq(struct cx18 *cx, u32 freq)
cx18_av_write4(cx, 0x12c, 0x11203fff);

/*
* EN_AV_LOCK = 1
* EN_AV_LOCK = 0
* VID_COUNT = 0x1193f8 = 143999.000 * 8 =
* ((4 samples/48,000) * (13,500,000 * 8) * 16 - 1) * 8
*/
cx18_av_write4(cx, 0x128, 0xa11193f8);
cx18_av_write4(cx, 0x128, 0xa01193f8);
break;
}
}
Expand Down

0 comments on commit b7e08a6

Please sign in to comment.