| .. | .. |
|---|
| 333 | 333 | unsigned int *deltaarray) |
|---|
| 334 | 334 | { |
|---|
| 335 | 335 | unsigned int mnpcount; |
|---|
| 336 | | - unsigned int pixel_vco; |
|---|
| 337 | 336 | const struct matrox_pll_limits* pi; |
|---|
| 338 | 337 | struct matrox_pll_cache* ci; |
|---|
| 339 | 338 | |
|---|
| 340 | | - pixel_vco = 0; |
|---|
| 341 | 339 | switch (pll) { |
|---|
| 342 | 340 | case M_PIXEL_PLL_A: |
|---|
| 343 | 341 | case M_PIXEL_PLL_B: |
|---|
| .. | .. |
|---|
| 420 | 418 | |
|---|
| 421 | 419 | mnp = matroxfb_DAC_in(minfo, M1064_XPIXPLLCM) << 16; |
|---|
| 422 | 420 | mnp |= matroxfb_DAC_in(minfo, M1064_XPIXPLLCN) << 8; |
|---|
| 423 | | - pixel_vco = g450_mnp2vco(minfo, mnp); |
|---|
| 424 | 421 | matroxfb_DAC_unlock_irqrestore(flags); |
|---|
| 425 | 422 | } |
|---|
| 426 | 423 | pi = &minfo->limits.video; |
|---|
| .. | .. |
|---|
| 441 | 438 | unsigned int delta; |
|---|
| 442 | 439 | |
|---|
| 443 | 440 | vco = g450_mnp2vco(minfo, mnp); |
|---|
| 444 | | -#if 0 |
|---|
| 445 | | - if (pll == M_VIDEO_PLL) { |
|---|
| 446 | | - unsigned int big, small; |
|---|
| 447 | | - |
|---|
| 448 | | - if (vco < pixel_vco) { |
|---|
| 449 | | - small = vco; |
|---|
| 450 | | - big = pixel_vco; |
|---|
| 451 | | - } else { |
|---|
| 452 | | - small = pixel_vco; |
|---|
| 453 | | - big = vco; |
|---|
| 454 | | - } |
|---|
| 455 | | - while (big > small) { |
|---|
| 456 | | - big >>= 1; |
|---|
| 457 | | - } |
|---|
| 458 | | - if (big == small) { |
|---|
| 459 | | - continue; |
|---|
| 460 | | - } |
|---|
| 461 | | - } |
|---|
| 462 | | -#endif |
|---|
| 463 | 441 | delta = pll_freq_delta(fout, g450_vco2f(mnp, vco)); |
|---|
| 464 | 442 | for (idx = mnpcount; idx > 0; idx--) { |
|---|
| 465 | 443 | /* == is important; due to nextpll algorithm we get |
|---|