Changeset 65100 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jan 4, 2017 12:07:17 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r65038 r65100 905 905 * @returns IPRT status code. 906 906 * @param pThis AC'97 state. 907 * @param p StreamAC'97 stream to write to.908 * @param p MixSinkMixer sink to get audio data to write from.907 * @param pDstStream AC'97 stream to write to. 908 * @param pSrcMixSink Mixer sink to get audio data to write from. 909 909 * @param cbToWrite Number of bytes to write. 910 910 * @param pcbWritten Number of bytes written. Optional. … … 2361 2361 * @callback_method_impl{FNIOMIOPORTIN} 2362 2362 */ 2363 static DECLCALLBACK(int) ichac97IOPortNABMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32Val, unsigned cbVal)2363 static DECLCALLBACK(int) ichac97IOPortNABMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 2364 2364 { 2365 2365 RT_NOREF(pDevIns); … … 2367 2367 2368 2368 /* Get the index of the NABMBAR port. */ 2369 const uint32_t uPortIdx = Port - pThis->IOPortBase[1];2369 const uint32_t uPortIdx = uPort - pThis->IOPortBase[1]; 2370 2370 2371 2371 PAC97STREAM pStream = ichac97GetStreamFromIdx(pThis, AC97_PORT2IDX(uPortIdx)); … … 2382 2382 int rc = VINF_SUCCESS; 2383 2383 2384 switch (cb Val)2384 switch (cb) 2385 2385 { 2386 2386 case 1: … … 2391 2391 /* Codec Access Semaphore Register */ 2392 2392 Log3Func(("CAS %d\n", pThis->cas)); 2393 *pu32 Val= pThis->cas;2393 *pu32 = pThis->cas; 2394 2394 pThis->cas = 1; 2395 2395 break; … … 2398 2398 case MC_CIV: 2399 2399 /* Current Index Value Register */ 2400 *pu32 Val= pRegs->civ;2401 Log3Func(("CIV[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2400 *pu32 = pRegs->civ; 2401 Log3Func(("CIV[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2402 2402 break; 2403 2403 case PI_LVI: … … 2405 2405 case MC_LVI: 2406 2406 /* Last Valid Index Register */ 2407 *pu32 Val= pRegs->lvi;2408 Log3Func(("LVI[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2407 *pu32 = pRegs->lvi; 2408 Log3Func(("LVI[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2409 2409 break; 2410 2410 case PI_PIV: … … 2412 2412 case MC_PIV: 2413 2413 /* Prefetched Index Value Register */ 2414 *pu32 Val= pRegs->piv;2415 Log3Func(("PIV[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2414 *pu32 = pRegs->piv; 2415 Log3Func(("PIV[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2416 2416 break; 2417 2417 case PI_CR: … … 2419 2419 case MC_CR: 2420 2420 /* Control Register */ 2421 *pu32 Val= pRegs->cr;2422 Log3Func(("CR[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2421 *pu32 = pRegs->cr; 2422 Log3Func(("CR[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2423 2423 break; 2424 2424 case PI_SR: … … 2426 2426 case MC_SR: 2427 2427 /* Status Register (lower part) */ 2428 *pu32 Val= RT_LO_U8(pRegs->sr);2429 Log3Func(("SRb[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2428 *pu32 = RT_LO_U8(pRegs->sr); 2429 Log3Func(("SRb[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2430 2430 break; 2431 2431 default: 2432 *pu32 Val= UINT32_MAX;2433 LogFunc(("U nabm readb %#x -> %#x\n", Port, *pu32Val));2432 *pu32 = UINT32_MAX; 2433 LogFunc(("U nabm readb %#x -> %#x\n", uPort, *pu32)); 2434 2434 break; 2435 2435 } … … 2445 2445 case MC_SR: 2446 2446 /* Status Register */ 2447 *pu32 Val= pRegs->sr;2448 Log3Func(("SR[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2447 *pu32 = pRegs->sr; 2448 Log3Func(("SR[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2449 2449 break; 2450 2450 case PI_PICB: … … 2452 2452 case MC_PICB: 2453 2453 /* Position in Current Buffer */ 2454 *pu32 Val= pRegs->picb;2455 Log3Func(("PICB[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2454 *pu32 = pRegs->picb; 2455 Log3Func(("PICB[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2456 2456 break; 2457 2457 default: 2458 *pu32 Val= UINT32_MAX;2459 LogFunc(("U nabm readw %#x -> %#x\n", Port, *pu32Val));2458 *pu32 = UINT32_MAX; 2459 LogFunc(("U nabm readw %#x -> %#x\n", uPort, *pu32)); 2460 2460 break; 2461 2461 } … … 2471 2471 case MC_BDBAR: 2472 2472 /* Buffer Descriptor Base Address Register */ 2473 *pu32 Val= pRegs->bdbar;2474 Log3Func(("BMADDR[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32 Val));2473 *pu32 = pRegs->bdbar; 2474 Log3Func(("BMADDR[%d] -> %#x\n", AC97_PORT2IDX(uPortIdx), *pu32)); 2475 2475 break; 2476 2476 case PI_CIV: … … 2480 2480 * Last Valid Index Register + 2481 2481 * Status Register */ 2482 *pu32 Val= pRegs->civ | (pRegs->lvi << 8) | (pRegs->sr << 16); /** @todo r=andy Use RT_MAKE_U32_FROM_U8. */2482 *pu32 = pRegs->civ | (pRegs->lvi << 8) | (pRegs->sr << 16); /** @todo r=andy Use RT_MAKE_U32_FROM_U8. */ 2483 2483 Log3Func(("CIV LVI SR[%d] -> %#x, %#x, %#x\n", 2484 2484 AC97_PORT2IDX(uPortIdx), pRegs->civ, pRegs->lvi, pRegs->sr)); … … 2490 2490 * Prefetched Index Value Register + 2491 2491 * Control Register */ 2492 *pu32 Val= pRegs->picb | (pRegs->piv << 16) | (pRegs->cr << 24); /** @todo r=andy Use RT_MAKE_U32_FROM_U8. */2492 *pu32 = pRegs->picb | (pRegs->piv << 16) | (pRegs->cr << 24); /** @todo r=andy Use RT_MAKE_U32_FROM_U8. */ 2493 2493 Log3Func(("PICB PIV CR[%d] -> %#x %#x %#x %#x\n", 2494 AC97_PORT2IDX(uPortIdx), *pu32 Val, pRegs->picb, pRegs->piv, pRegs->cr));2494 AC97_PORT2IDX(uPortIdx), *pu32, pRegs->picb, pRegs->piv, pRegs->cr)); 2495 2495 break; 2496 2496 case AC97_GLOB_CNT: 2497 2497 /* Global Control */ 2498 *pu32 Val= pThis->glob_cnt;2499 Log3Func(("glob_cnt -> %#x\n", *pu32 Val));2498 *pu32 = pThis->glob_cnt; 2499 Log3Func(("glob_cnt -> %#x\n", *pu32)); 2500 2500 break; 2501 2501 case AC97_GLOB_STA: 2502 2502 /* Global Status */ 2503 *pu32 Val= pThis->glob_sta | AC97_GS_S0CR;2504 Log3Func(("glob_sta -> %#x\n", *pu32 Val));2503 *pu32 = pThis->glob_sta | AC97_GS_S0CR; 2504 Log3Func(("glob_sta -> %#x\n", *pu32)); 2505 2505 break; 2506 2506 default: 2507 *pu32 Val= UINT32_MAX;2508 LogFunc(("U nabm readl %#x -> %#x\n", Port, *pu32Val));2507 *pu32 = UINT32_MAX; 2508 LogFunc(("U nabm readl %#x -> %#x\n", uPort, *pu32)); 2509 2509 break; 2510 2510 } … … 2531 2531 * @callback_method_impl{FNIOMIOPORTOUT} 2532 2532 */ 2533 static DECLCALLBACK(int) ichac97IOPortNABMWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port,2534 uint32_t u32 Val, unsigned cbVal)2533 static DECLCALLBACK(int) ichac97IOPortNABMWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, 2534 uint32_t u32, unsigned cb) 2535 2535 { 2536 2536 RT_NOREF(pDevIns); … … 2538 2538 2539 2539 /* Get the index of the NABMBAR register. */ 2540 const uint32_t uPortIdx = Port - pThis->IOPortBase[1];2540 const uint32_t uPortIdx = uPort - pThis->IOPortBase[1]; 2541 2541 2542 2542 PAC97STREAM pStream = ichac97GetStreamFromIdx(pThis, AC97_PORT2IDX(uPortIdx)); … … 2551 2551 } 2552 2552 2553 switch (cb Val)2553 switch (cb) 2554 2554 { 2555 2555 case 1: … … 2573 2573 ichac97StreamFetchBDLE(pThis, pStream); 2574 2574 } 2575 pRegs->lvi = u32 Val% 32;2576 Log3Func(("[SD%RU8] LVI <- %#x\n", pStream->u8Strm, u32 Val));2575 pRegs->lvi = u32 % 32; 2576 Log3Func(("[SD%RU8] LVI <- %#x\n", pStream->u8Strm, u32)); 2577 2577 break; 2578 2578 } … … 2585 2585 case MC_CR: 2586 2586 { 2587 Log3Func(("[SD%RU8] CR <- %#x (cr %#x)\n", pStream->u8Strm, u32 Val, pRegs->cr));2588 2589 if (u32 Val& AC97_CR_RR) /* Busmaster reset. */2587 Log3Func(("[SD%RU8] CR <- %#x (cr %#x)\n", pStream->u8Strm, u32, pRegs->cr)); 2588 2589 if (u32 & AC97_CR_RR) /* Busmaster reset. */ 2590 2590 { 2591 2591 Log3Func(("[SD%RU8] Reset\n", pStream->u8Strm)); … … 2598 2598 else 2599 2599 { 2600 pRegs->cr = u32 Val& AC97_CR_VALID_MASK;2600 pRegs->cr = u32 & AC97_CR_VALID_MASK; 2601 2601 2602 2602 if (!(pRegs->cr & AC97_CR_RPBM)) … … 2633 2633 case MC_SR: 2634 2634 { 2635 pRegs->sr |= u32 Val& ~(AC97_SR_RO_MASK | AC97_SR_WCLEAR_MASK);2636 ichac97StreamUpdateSR(pThis, pStream, pRegs->sr & ~(u32 Val& AC97_SR_WCLEAR_MASK));2637 Log3Func(("[SD%RU8] SR <- %#x (sr %#x)\n", pStream->u8Strm, u32 Val, pRegs->sr));2635 pRegs->sr |= u32 & ~(AC97_SR_RO_MASK | AC97_SR_WCLEAR_MASK); 2636 ichac97StreamUpdateSR(pThis, pStream, pRegs->sr & ~(u32 & AC97_SR_WCLEAR_MASK)); 2637 Log3Func(("[SD%RU8] SR <- %#x (sr %#x)\n", pStream->u8Strm, u32, pRegs->sr)); 2638 2638 break; 2639 2639 } 2640 2640 2641 2641 default: 2642 LogFunc(("Unimplemented: %#x <- %#x (Byte)\n", Port, u32Val));2642 LogFunc(("Unimplemented: %#x <- %#x (Byte)\n", uPort, u32)); 2643 2643 break; 2644 2644 } … … 2654 2654 case MC_SR: 2655 2655 /* Status Register */ 2656 pRegs->sr |= u32 Val& ~(AC97_SR_RO_MASK | AC97_SR_WCLEAR_MASK);2657 ichac97StreamUpdateSR(pThis, pStream, pRegs->sr & ~(u32 Val& AC97_SR_WCLEAR_MASK));2658 Log3Func(("[SD%RU8] SR <- %#x (sr %#x)\n", pStream->u8Strm, u32 Val, pRegs->sr));2656 pRegs->sr |= u32 & ~(AC97_SR_RO_MASK | AC97_SR_WCLEAR_MASK); 2657 ichac97StreamUpdateSR(pThis, pStream, pRegs->sr & ~(u32 & AC97_SR_WCLEAR_MASK)); 2658 Log3Func(("[SD%RU8] SR <- %#x (sr %#x)\n", pStream->u8Strm, u32, pRegs->sr)); 2659 2659 break; 2660 2660 default: 2661 LogFunc(("Unimplemented: %#x <- %#x (Word)\n", Port, u32Val));2661 LogFunc(("Unimplemented: %#x <- %#x (Word)\n", uPort, u32)); 2662 2662 break; 2663 2663 } … … 2673 2673 case MC_BDBAR: 2674 2674 /* Buffer Descriptor list Base Address Register */ 2675 pRegs->bdbar = u32 Val& ~3;2676 Log3Func(("[SD%RU8] BDBAR <- %#x (bdbar %#x)\n", AC97_PORT2IDX(uPortIdx), u32 Val, pRegs->bdbar));2675 pRegs->bdbar = u32 & ~3; 2676 Log3Func(("[SD%RU8] BDBAR <- %#x (bdbar %#x)\n", AC97_PORT2IDX(uPortIdx), u32, pRegs->bdbar)); 2677 2677 break; 2678 2678 case AC97_GLOB_CNT: 2679 2679 /* Global Control */ 2680 if (u32 Val& AC97_GC_WR)2680 if (u32 & AC97_GC_WR) 2681 2681 ichac97WarmReset(pThis); 2682 if (u32 Val& AC97_GC_CR)2682 if (u32 & AC97_GC_CR) 2683 2683 ichac97ColdReset(pThis); 2684 if (!(u32 Val& (AC97_GC_WR | AC97_GC_CR)))2685 pThis->glob_cnt = u32 Val& AC97_GC_VALID_MASK;2686 Log3Func(("glob_cnt <- %#x (glob_cnt %#x)\n", u32 Val, pThis->glob_cnt));2684 if (!(u32 & (AC97_GC_WR | AC97_GC_CR))) 2685 pThis->glob_cnt = u32 & AC97_GC_VALID_MASK; 2686 Log3Func(("glob_cnt <- %#x (glob_cnt %#x)\n", u32, pThis->glob_cnt)); 2687 2687 break; 2688 2688 case AC97_GLOB_STA: 2689 2689 /* Global Status */ 2690 pThis->glob_sta &= ~(u32 Val& AC97_GS_WCLEAR_MASK);2691 pThis->glob_sta |= (u32 Val& ~(AC97_GS_WCLEAR_MASK | AC97_GS_RO_MASK)) & AC97_GS_VALID_MASK;2692 Log3Func(("glob_sta <- %#x (glob_sta %#x)\n", u32 Val, pThis->glob_sta));2690 pThis->glob_sta &= ~(u32 & AC97_GS_WCLEAR_MASK); 2691 pThis->glob_sta |= (u32 & ~(AC97_GS_WCLEAR_MASK | AC97_GS_RO_MASK)) & AC97_GS_VALID_MASK; 2692 Log3Func(("glob_sta <- %#x (glob_sta %#x)\n", u32, pThis->glob_sta)); 2693 2693 break; 2694 2694 default: 2695 LogFunc(("Unimplemented: %#x <- %#x (DWord)\n", Port, u32Val));2695 LogFunc(("Unimplemented: %#x <- %#x (DWord)\n", uPort, u32)); 2696 2696 break; 2697 2697 } … … 2700 2700 2701 2701 default: 2702 AssertMsgFailed(("Port=%#x cb=%d u32=%#x\n", Port, cbVal, u32Val));2702 AssertMsgFailed(("Port=%#x cb=%d u32=%#x\n", uPort, cb, u32)); 2703 2703 break; 2704 2704 } … … 2716 2716 * @callback_method_impl{FNIOMIOPORTIN} 2717 2717 */ 2718 static DECLCALLBACK(int) ichac97IOPortNAMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32Val, unsigned cbVal)2718 static DECLCALLBACK(int) ichac97IOPortNAMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 2719 2719 { 2720 2720 RT_NOREF(pDevIns); … … 2723 2723 int rc = VINF_SUCCESS; 2724 2724 2725 switch (cb Val)2725 switch (cb) 2726 2726 { 2727 2727 case 1: 2728 2728 { 2729 Log3Func(("U nam readb %#x\n", Port));2729 Log3Func(("U nam readb %#x\n", uPort)); 2730 2730 pThis->cas = 0; 2731 *pu32 Val= UINT32_MAX;2731 *pu32 = UINT32_MAX; 2732 2732 break; 2733 2733 } … … 2735 2735 case 2: 2736 2736 { 2737 uint32_t index = Port - pThis->IOPortBase[0];2738 *pu32 Val= UINT32_MAX;2737 uint32_t index = uPort - pThis->IOPortBase[0]; 2738 *pu32 = UINT32_MAX; 2739 2739 pThis->cas = 0; 2740 2740 switch (index) 2741 2741 { 2742 2742 default: 2743 *pu32 Val= ichac97MixerGet(pThis, index);2744 Log3Func(("nam readw %#x -> %#x\n", Port, *pu32Val));2743 *pu32 = ichac97MixerGet(pThis, index); 2744 Log3Func(("nam readw %#x -> %#x\n", uPort, *pu32)); 2745 2745 break; 2746 2746 } … … 2750 2750 case 4: 2751 2751 { 2752 Log3Func(("U nam readl %#x\n", Port));2752 Log3Func(("U nam readl %#x\n", uPort)); 2753 2753 pThis->cas = 0; 2754 *pu32 Val= UINT32_MAX;2754 *pu32 = UINT32_MAX; 2755 2755 break; 2756 2756 } … … 2769 2769 * @callback_method_impl{FNIOMIOPORTOUT} 2770 2770 */ 2771 static DECLCALLBACK(int) ichac97IOPortNAMWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32Val, unsigned cbVal)2771 static DECLCALLBACK(int) ichac97IOPortNAMWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 2772 2772 { 2773 2773 RT_NOREF(pDevIns); 2774 2774 PAC97STATE pThis = (PAC97STATE)pvUser; 2775 2775 2776 switch (cb Val)2776 switch (cb) 2777 2777 { 2778 2778 case 1: 2779 2779 { 2780 Log3Func(("U nam writeb %#x <- %#x\n", Port, u32Val));2780 Log3Func(("U nam writeb %#x <- %#x\n", uPort, u32)); 2781 2781 pThis->cas = 0; 2782 2782 break; … … 2785 2785 case 2: 2786 2786 { 2787 uint32_t index = Port - pThis->IOPortBase[0];2787 uint32_t index = uPort - pThis->IOPortBase[0]; 2788 2788 pThis->cas = 0; 2789 2789 switch (index) … … 2793 2793 break; 2794 2794 case AC97_Powerdown_Ctrl_Stat: 2795 u32 Val&= ~0xf;2796 u32 Val|= ichac97MixerGet(pThis, index) & 0xf;2797 ichac97MixerSet(pThis, index, u32 Val);2795 u32 &= ~0xf; 2796 u32 |= ichac97MixerGet(pThis, index) & 0xf; 2797 ichac97MixerSet(pThis, index, u32); 2798 2798 break; 2799 2799 case AC97_Master_Volume_Mute: … … 2803 2803 break; /* Register controls surround (rear), do nothing. */ 2804 2804 } 2805 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32 Val);2805 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32); 2806 2806 break; 2807 2807 case AC97_Headphone_Volume_Mute: … … 2811 2811 { 2812 2812 /* Register controls PCM (front) outputs. */ 2813 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32 Val);2813 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_VOLUME_MASTER, u32); 2814 2814 } 2815 2815 } 2816 2816 break; 2817 2817 case AC97_PCM_Out_Volume_Mute: 2818 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_FRONT, u32 Val);2818 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_FRONT, u32); 2819 2819 break; 2820 2820 case AC97_Line_In_Volume_Mute: 2821 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_LINE_IN, u32 Val);2821 ichac97MixerSetVolume(pThis, index, PDMAUDIOMIXERCTL_LINE_IN, u32); 2822 2822 break; 2823 2823 case AC97_Record_Select: 2824 ichac97MixerRecordSelect(pThis, u32 Val);2824 ichac97MixerRecordSelect(pThis, u32); 2825 2825 break; 2826 2826 case AC97_Vendor_ID1: 2827 2827 case AC97_Vendor_ID2: 2828 LogFunc(("Attempt to write vendor ID to %#x\n", u32 Val));2828 LogFunc(("Attempt to write vendor ID to %#x\n", u32)); 2829 2829 break; 2830 2830 case AC97_Extended_Audio_ID: 2831 LogFunc(("Attempt to write extended audio ID to %#x\n", u32 Val));2831 LogFunc(("Attempt to write extended audio ID to %#x\n", u32)); 2832 2832 break; 2833 2833 case AC97_Extended_Audio_Ctrl_Stat: 2834 if (!(u32 Val& AC97_EACS_VRA))2834 if (!(u32 & AC97_EACS_VRA)) 2835 2835 { 2836 2836 ichac97MixerSet(pThis, AC97_PCM_Front_DAC_Rate, 48000); … … 2843 2843 LogRel2(("AC97: Variable rate audio (VRA) is not supported\n")); 2844 2844 2845 if (!(u32 Val& AC97_EACS_VRM))2845 if (!(u32 & AC97_EACS_VRM)) 2846 2846 { 2847 2847 ichac97MixerSet(pThis, AC97_MIC_ADC_Rate, 48000); … … 2851 2851 LogRel2(("AC97: Variable rate microphone audio (VRM) is not supported\n")); 2852 2852 2853 LogFunc(("Setting extended audio control to %#x\n", u32 Val));2854 ichac97MixerSet(pThis, AC97_Extended_Audio_Ctrl_Stat, u32 Val);2853 LogFunc(("Setting extended audio control to %#x\n", u32)); 2854 ichac97MixerSet(pThis, AC97_Extended_Audio_Ctrl_Stat, u32); 2855 2855 break; 2856 2856 case AC97_PCM_Front_DAC_Rate: 2857 2857 if (ichac97MixerGet(pThis, AC97_Extended_Audio_Ctrl_Stat) & AC97_EACS_VRA) 2858 2858 { 2859 ichac97MixerSet(pThis, index, u32 Val);2860 LogFunc(("Set front DAC rate to %RU32\n", u32 Val));2859 ichac97MixerSet(pThis, index, u32); 2860 LogFunc(("Set front DAC rate to %RU32\n", u32)); 2861 2861 ichac97StreamReOpen(pThis, &pThis->StreamOut); 2862 2862 } 2863 2863 else 2864 AssertMsgFailed(("Attempt to set front DAC rate to %RU32, but VRA is not set\n", u32 Val));2864 AssertMsgFailed(("Attempt to set front DAC rate to %RU32, but VRA is not set\n", u32)); 2865 2865 break; 2866 2866 case AC97_MIC_ADC_Rate: 2867 2867 if (ichac97MixerGet(pThis, AC97_Extended_Audio_Ctrl_Stat) & AC97_EACS_VRM) 2868 2868 { 2869 ichac97MixerSet(pThis, index, u32 Val);2870 LogFunc(("Set MIC ADC rate to %RU32\n", u32 Val));2869 ichac97MixerSet(pThis, index, u32); 2870 LogFunc(("Set MIC ADC rate to %RU32\n", u32)); 2871 2871 ichac97StreamReOpen(pThis, &pThis->StreamMicIn); 2872 2872 } 2873 2873 else 2874 AssertMsgFailed(("Attempt to set MIC ADC rate to %RU32, but VRM is not set\n", u32 Val));2874 AssertMsgFailed(("Attempt to set MIC ADC rate to %RU32, but VRM is not set\n", u32)); 2875 2875 break; 2876 2876 case AC97_PCM_LR_ADC_Rate: 2877 2877 if (ichac97MixerGet(pThis, AC97_Extended_Audio_Ctrl_Stat) & AC97_EACS_VRA) 2878 2878 { 2879 ichac97MixerSet(pThis, index, u32 Val);2880 LogFunc(("Set front LR ADC rate to %RU32\n", u32 Val));2879 ichac97MixerSet(pThis, index, u32); 2880 LogFunc(("Set front LR ADC rate to %RU32\n", u32)); 2881 2881 ichac97StreamReOpen(pThis, &pThis->StreamLineIn); 2882 2882 } 2883 2883 else 2884 AssertMsgFailed(("Attempt to set LR ADC rate to %RU32, but VRA is not set\n", u32 Val));2884 AssertMsgFailed(("Attempt to set LR ADC rate to %RU32, but VRA is not set\n", u32)); 2885 2885 break; 2886 2886 default: 2887 LogFunc(("U nam writew %#x <- %#x\n", Port, u32Val));2888 ichac97MixerSet(pThis, index, u32 Val);2887 LogFunc(("U nam writew %#x <- %#x\n", uPort, u32)); 2888 ichac97MixerSet(pThis, index, u32); 2889 2889 break; 2890 2890 } … … 2894 2894 case 4: 2895 2895 { 2896 Log3Func(("U nam writel %#x <- %#x\n", Port, u32Val));2896 Log3Func(("U nam writel %#x <- %#x\n", uPort, u32)); 2897 2897 pThis->cas = 0; 2898 2898 break; … … 2900 2900 2901 2901 default: 2902 AssertMsgFailed(("Port=%#x cb=%d u32=%#x\n", Port, cbVal, u32Val));2902 AssertMsgFailed(("Port=%#x cb=%d u32=%#x\n", uPort, cb, u32)); 2903 2903 break; 2904 2904 } -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r65076 r65100 1193 1193 */ 1194 1194 static DECLCALLBACK(int) drvAudioStreamPlay(PPDMIAUDIOCONNECTOR pInterface, 1195 PPDMAUDIOSTREAM pStream, uint32_t *pc sPlayed)1195 PPDMAUDIOSTREAM pStream, uint32_t *pcSamplesPlayed) 1196 1196 { 1197 1197 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 1295 1295 if (RT_SUCCESS(rc)) 1296 1296 { 1297 if (pc sPlayed)1298 *pc sPlayed = csPlayed;1297 if (pcSamplesPlayed) 1298 *pcSamplesPlayed = csPlayed; 1299 1299 } 1300 1300 … … 2592 2592 * @copydoc FNPDMDRVCONSTRUCT 2593 2593 */ 2594 static DECLCALLBACK(int) drvAudioConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg Handle, uint32_t fFlags)2595 { 2596 LogFlowFunc(("pDrvIns=%#p, pCfgHandle=%#p, fFlags=%x\n", pDrvIns, pCfg Handle, fFlags));2594 static DECLCALLBACK(int) drvAudioConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 2595 { 2596 LogFlowFunc(("pDrvIns=%#p, pCfgHandle=%#p, fFlags=%x\n", pDrvIns, pCfg, fFlags)); 2597 2597 2598 2598 PDRVAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIO); … … 2654 2654 } 2655 2655 2656 rc = drvAudioInit(pDrvIns, pCfg Handle);2656 rc = drvAudioInit(pDrvIns, pCfg); 2657 2657 if (RT_SUCCESS(rc)) 2658 2658 { -
trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
r63749 r65100 1676 1676 1677 1677 /** 1678 * @interface_method_impl{PDMIHOSTAUDIO,pfn GetStatus}1678 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus} 1679 1679 */ 1680 1680 static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostALSAAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) -
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r64612 r65100 1932 1932 1933 1933 /** 1934 * @interface_method_impl{PDMIHOSTAUDIO, 1934 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture} 1935 1935 */ 1936 1936 static DECLCALLBACK(int) drvHostCoreAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, … … 2059 2059 2060 2060 /** 2061 * @interface_method_impl{PDMIHOSTAUDIO, 2061 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay} 2062 2062 */ 2063 2063 static DECLCALLBACK(int) drvHostCoreAudioStreamPlay(PPDMIHOSTAUDIO pInterface, … … 2249 2249 2250 2250 /** 2251 * @interface_method_impl{PDMIHOSTAUDIO, 2251 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig} 2252 2252 */ 2253 2253 static DECLCALLBACK(int) drvHostCoreAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg) … … 2270 2270 2271 2271 /** 2272 * @interface_method_impl{PDMIHOSTAUDIO, 2272 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetDevices} 2273 2273 */ 2274 2274 static DECLCALLBACK(int) drvHostCoreAudioGetDevices(PPDMIHOSTAUDIO pInterface, PPDMAUDIODEVICEENUM pDeviceEnum) … … 2307 2307 #ifdef VBOX_WITH_AUDIO_CALLBACKS 2308 2308 /** 2309 * @interface_method_impl{PDMIHOSTAUDIO, 2309 * @interface_method_impl{PDMIHOSTAUDIO,pfnSetCallback} 2310 2310 */ 2311 2311 static DECLCALLBACK(int) drvHostCoreAudioSetCallback(PPDMIHOSTAUDIO pInterface, PFNPDMHOSTAUDIOCALLBACK pfnCallback) … … 2342 2342 2343 2343 /** 2344 * @interface_method_impl{PDMIHOSTAUDIO, pfnStreamGetStatus}2344 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus} 2345 2345 */ 2346 2346 static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostCoreAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir) … … 2354 2354 2355 2355 /** 2356 * @interface_method_impl{PDMIHOSTAUDIO, 2356 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate} 2357 2357 */ 2358 2358 static DECLCALLBACK(int) drvHostCoreAudioStreamCreate(PPDMIHOSTAUDIO pInterface, … … 2428 2428 2429 2429 /** 2430 * @interface_method_impl{PDMIHOSTAUDIO, 2430 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy} 2431 2431 */ 2432 2432 static DECLCALLBACK(int) drvHostCoreAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) … … 2475 2475 2476 2476 /** 2477 * @interface_method_impl{PDMIHOSTAUDIO, 2477 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl} 2478 2478 */ 2479 2479 static DECLCALLBACK(int) drvHostCoreAudioStreamControl(PPDMIHOSTAUDIO pInterface, … … 2494 2494 2495 2495 /** 2496 * @interface_method_impl{PDMIHOSTAUDIO, 2496 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus} 2497 2497 */ 2498 2498 static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostCoreAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) … … 2528 2528 2529 2529 /** 2530 * @interface_method_impl{PDMIHOSTAUDIO, 2530 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate} 2531 2531 */ 2532 2532 static DECLCALLBACK(int) drvHostCoreAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) … … 2541 2541 2542 2542 /** 2543 * @interface_method_impl{PDMIHOSTAUDIO, 2543 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit} 2544 2544 */ 2545 2545 static DECLCALLBACK(int) drvHostCoreAudioInit(PPDMIHOSTAUDIO pInterface) … … 2584 2584 2585 2585 /** 2586 * @interface_method_impl{PDMIHOSTAUDIO, 2586 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown} 2587 2587 */ 2588 2588 static DECLCALLBACK(void) drvHostCoreAudioShutdown(PPDMIHOSTAUDIO pInterface) -
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r64741 r65100 1502 1502 1503 1503 /** 1504 * @interface_method_impl{PDMIHOSTAUDIO,pfnStream GetConfig}1504 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate} 1505 1505 */ 1506 1506 static DECLCALLBACK(int) drvHostPulseAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) … … 1536 1536 * Destructs a PulseAudio Audio driver instance. 1537 1537 * 1538 * @copydoc FNPDMDRV CONSTRUCT1538 * @copydoc FNPDMDRVDESTRUCT 1539 1539 */ 1540 1540 static DECLCALLBACK(void) drvHostPulseAudioDestruct(PPDMDRVINS pDrvIns)
Note:
See TracChangeset
for help on using the changeset viewer.