Changeset 89775 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jun 18, 2021 9:51:59 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145227
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r89773 r89775 589 589 STAMCOUNTER StatUnimplementedNabmReads; 590 590 STAMCOUNTER StatUnimplementedNabmWrites; 591 STAMCOUNTER StatUnimplementedNamReads; 592 STAMCOUNTER StatUnimplementedNamWrites; 591 593 #ifdef VBOX_WITH_STATISTICS 592 594 STAMPROFILE StatTimer; … … 2510 2512 default: 2511 2513 *pu32 = UINT32_MAX; 2512 Log Func(("U nabm readb %#x -> %#x\n", offPort, UINT32_MAX));2514 LogRel2(("AC97: Warning: Unimplemented NAMB read offPort=%#x LB 1 (line " RT_XSTR(__LINE__) ")\n", offPort)); 2513 2515 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmReads); 2514 2516 break; … … 2531 2533 default: 2532 2534 *pu32 = UINT32_MAX; 2533 Log Func(("U nabm readw %#x -> %#x\n", offPort, UINT32_MAX));2535 LogRel2(("AC97: Warning: Unimplemented NAMB read offPort=%#x LB 2 (line " RT_XSTR(__LINE__) ")\n", offPort)); 2534 2536 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmReads); 2535 2537 break; … … 2564 2566 default: 2565 2567 *pu32 = UINT32_MAX; 2566 Log Func(("U nabm readl %#x -> %#x\n", offPort, UINT32_MAX));2568 LogRel2(("AC97: Warning: Unimplemented NAMB read offPort=%#x LB 4 (line " RT_XSTR(__LINE__) ")\n", offPort)); 2567 2569 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmReads); 2568 2570 break; … … 2591 2593 default: 2592 2594 *pu32 = UINT32_MAX; 2593 Log Func(("U nabm readb %#x -> %#x\n", offPort, UINT32_MAX));2595 LogRel2(("AC97: Warning: Unimplemented NAMB read offPort=%#x LB 1 (line " RT_XSTR(__LINE__) ")\n", offPort)); 2594 2596 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmReads); 2595 2597 break; … … 2599 2601 case 2: 2600 2602 *pu32 = UINT32_MAX; 2601 Log Func(("U nabm readw %#x -> %#x\n", offPort, UINT32_MAX));2603 LogRel2(("AC97: Warning: Unimplemented NAMB read offPort=%#x LB 2 (line " RT_XSTR(__LINE__) ")\n", offPort)); 2602 2604 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmReads); 2603 2605 break; … … 2618 2620 default: 2619 2621 *pu32 = UINT32_MAX; 2620 Log Func(("U nabm readl %#x -> %#x\n", offPort, UINT32_MAX));2622 LogRel2(("AC97: Warning: Unimplemented NAMB read offPort=%#x LB 4 (line " RT_XSTR(__LINE__) ")\n", offPort)); 2621 2623 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmReads); 2622 2624 break; … … 2822 2824 2823 2825 default: 2824 LogRel2(("AC97: Warning: Unimplemented NABMWrite offPort=%#x <- %#x LB 1\n", offPort, u32)); 2826 /* Linux tries to write CIV. */ 2827 LogRel2(("AC97: Warning: Unimplemented NAMB write offPort=%#x%s <- %#x LB 1 (line " RT_XSTR(__LINE__) ")\n", 2828 offPort, (offPort & AC97_NABM_OFF_MASK) == AC97_NABM_OFF_CIV ? " (CIV)" : "" , u32)); 2825 2829 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmWrites); 2826 2830 break; … … 2838 2842 break; 2839 2843 default: 2840 LogRel2(("AC97: Warning: Unimplemented NA BMWrite offPort=%#x <- %#x LB 2\n", offPort, u32));2844 LogRel2(("AC97: Warning: Unimplemented NAMB write offPort=%#x <- %#x LB 2 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 2841 2845 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmWrites); 2842 2846 break; … … 2856 2860 break; 2857 2861 default: 2858 LogRel2(("AC97: Warning: Unimplemented NA BMWrite offPort=%#x <- %#x LB 4\n", offPort, u32));2862 LogRel2(("AC97: Warning: Unimplemented NAMB write offPort=%#x <- %#x LB 4 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 2859 2863 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmWrites); 2860 2864 break; … … 2872 2876 { 2873 2877 case 1: 2874 LogRel2(("AC97: Warning: Unimplemented NA BMWrite offPort=%#x <- %#x LB 1\n", offPort, u32));2878 LogRel2(("AC97: Warning: Unimplemented NAMB write offPort=%#x <- %#x LB 1 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 2875 2879 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmWrites); 2876 2880 break; 2877 2881 2878 2882 case 2: 2879 LogRel2(("AC97: Warning: Unimplemented NA BMWrite offPort=%#x <- %#x LB 2\n", offPort, u32));2883 LogRel2(("AC97: Warning: Unimplemented NAMB write offPort=%#x <- %#x LB 2 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 2880 2884 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmWrites); 2881 2885 break; … … 2905 2909 break; 2906 2910 default: 2907 LogRel2(("AC97: Warning: Unimplemented NA BMWrite offPort=%#x <- %#x LB 4\n", offPort, u32));2911 LogRel2(("AC97: Warning: Unimplemented NAMB write offPort=%#x <- %#x LB 4 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 2908 2912 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNabmWrites); 2909 2913 break; … … 3329 3333 { 3330 3334 case 1: 3331 LogRel2(("AC97: Warning: Unimplemented read (1 byte) offPort=%#x\n", offPort)); 3335 LogRel2(("AC97: Warning: Unimplemented NAM read offPort=%#x LB 1 (line " RT_XSTR(__LINE__) ")\n", offPort)); 3336 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNamReads); 3332 3337 pThis->cas = 0; 3333 3338 *pu32 = UINT32_MAX; … … 3340 3345 3341 3346 case 4: 3342 LogRel2(("AC97: Warning: Unimplemented read (4 bytes) offPort=%#x\n", offPort)); 3347 LogRel2(("AC97: Warning: Unimplemented NAM read offPort=%#x LB 4 (line " RT_XSTR(__LINE__) ")\n", offPort)); 3348 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNamReads); 3343 3349 pThis->cas = 0; 3344 3350 *pu32 = UINT32_MAX; … … 3373 3379 { 3374 3380 case 1: 3375 LogRel2(("AC97: Warning: Unimplemented NAMWrite (1 byte) offPort=%#x <- %#x\n", offPort, u32)); 3381 LogRel2(("AC97: Warning: Unimplemented NAM write offPort=%#x <- %#x LB 1 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 3382 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNamWrites); 3376 3383 pThis->cas = 0; 3377 3384 break; … … 3559 3566 break; 3560 3567 default: 3561 LogRel2(("AC97: Warning: Unimplemented NAMWrite (2 bytes) offPort=%#x <- %#x\n", offPort, u32)); 3568 /* Most of these are to register we don't care about like AC97_CD_Volume_Mute 3569 and AC97_Master_Volume_Mono_Mute or things we don't need to handle specially. 3570 Thus this is not a 'warning' but an 'info log message. */ 3571 LogRel2(("AC97: Info: Unimplemented NAM write offPort=%#x <- %#x LB 2 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 3572 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNamWrites); 3562 3573 ichac97MixerSet(pThis, offPort, u32); 3563 3574 break; … … 3567 3578 3568 3579 case 4: 3569 LogRel2(("AC97: Warning: Unimplemented 4 byte NAMWrite: offPort=%#x <- %#x\n", offPort, u32)); 3580 LogRel2(("AC97: Warning: Unimplemented NAM write offPort=%#x <- %#x LB 4 (line " RT_XSTR(__LINE__) ")\n", offPort, u32)); 3581 STAM_REL_COUNTER_INC(&pThis->StatUnimplementedNamWrites); 3570 3582 pThis->cas = 0; 3571 3583 break; 3572 3584 3573 3585 default: 3574 AssertMsgFailed(("Unhandled NAM Write offPort=%#x, cb=%u u32=%#x\n", offPort, cb, u32));3586 AssertMsgFailed(("Unhandled NAM write offPort=%#x, cb=%u u32=%#x\n", offPort, cb, u32)); 3575 3587 break; 3576 3588 } … … 4514 4526 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatUnimplementedNabmReads, STAMTYPE_COUNTER, "UnimplementedNabmReads", STAMUNIT_OCCURENCES, "Unimplemented NABM register reads."); 4515 4527 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatUnimplementedNabmWrites, STAMTYPE_COUNTER, "UnimplementedNabmWrites", STAMUNIT_OCCURENCES, "Unimplemented NABM register writes."); 4528 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatUnimplementedNamReads, STAMTYPE_COUNTER, "UnimplementedNamReads", STAMUNIT_OCCURENCES, "Unimplemented NAM register reads."); 4529 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatUnimplementedNamWrites, STAMTYPE_COUNTER, "UnimplementedNamWrites", STAMUNIT_OCCURENCES, "Unimplemented NAM register writes."); 4516 4530 # ifdef VBOX_WITH_STATISTICS 4517 4531 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatTimer, STAMTYPE_PROFILE, "Timer", STAMUNIT_TICKS_PER_CALL, "Profiling ichac97Timer.");
Note:
See TracChangeset
for help on using the changeset viewer.