Commit febf142f authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Clemens Ladisch <clemens@ladisch.de>

USB generic driver
show one decimal place of momentary frequency in proc file
parent 97467807
......@@ -1837,9 +1837,11 @@ static void proc_dump_substream_status(snd_usb_substream_t *subs, snd_info_buffe
snd_iprintf(buffer, "%d ", subs->dataurb[i].packets);
snd_iprintf(buffer, "]\n");
snd_iprintf(buffer, " Packet Size = %d\n", subs->curpacksize);
snd_iprintf(buffer, " Momentary freq = %d,%03d Hz\n",
subs->freqm >> 14,
((subs->freqm & ((1 << 14) - 1)) * 1000) / ((1 << 14) - 1));
snd_iprintf(buffer, " Momentary freq = %d.%d Hz\n",
(subs->freqm * 125) >> 11,
(subs->freqm >> 10) * 625
+ (((subs->freqm & ((1 << 10) - 1)) * 625) >> 10)
- 10 * ((subs->freqm * 125) >> 11));
} else {
snd_iprintf(buffer, " Status: Stop\n");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment