Page 1 of 1

How to inspect one variable in a driver?

Posted: Wed Jul 09, 2008 3:16 pm
by elisej
Ich driver on my computer with Intel 845 chipset and Solaris 10 plays audio at a higher speed than what is expected in spite of intelpci_rate_tuning value in ich.conf. Moreover, the value has no influence on play speed.
So, I want to inspect the value of intelpci_rate_tuning global variable used in ich_audio_prepare_for_input function and others .
What is the simplest way to do this?

Elisej Babenko

Posted: Sat Jul 12, 2008 10:16 pm
by Ionic
Hi,

the easiest method of doing this (to my mind) is adding something like 'cmn_err (CE_WARN, "intelpci_rate_tuning is %d\n", intelpci_rate_tuning);' (example only) in the appropriative sections of your driver's file.

Best regards,

Mihai