o***@lilltiger.se
2010-11-29 04:54:11 UTC
When calling:
ioctl(device_, SNDCTL_MIX_WRITE, &vr);
to fast the device will act up but not reporting any errors, atleast
when changing the volume.
The result is that the values written becomes random (often 0, but seen
other values as well).
This is realy bad for GUI apps using slider to change the values as
they will spam writes extreamly fast and this will mess upp the values.
ossinfo:
Version info: OSS 4.2 (b 2002/200911201634) (0x00040100) OSS_HG
Hg revision: changeset: 874:3c6677155802, tag: tip, date: Sat Nov 07
10:17:46 2009 +0200, summary: Changed build ID to v4.2-build2002
Platform: Linux/x86_64 2.6.35-gentoo-r1 #1 SMP Thu Aug 26 04:04:44 CEST
2010 (orion)
Number of audio devices: 12
Number of audio engines: 17
Number of MIDI devices: 0
Number of mixer devices: 2
Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=1132412466 (1132412466)
HD Audio controller Intel HD Audio
Vendor ID 0x8086293e
Subvendor ID 0x10438277
Codec 0: AD1988B (0x11d4198b/0x1043829c)
2: oss_usb0 USB audio core services
3: usb046d08ad-0 USB sound device
4: usb046d08ad-1 USB sound device
MIDI devices (/dev/midi*)
Mixer devices
0: High Definition Audio AD1988B (Mixer 0 of device object 1)
1: USB sound device (Mixer 0 of device object 3)
Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device
index 0)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm1 (device
index 1)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm2 (device
index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device
index 3)
HD Audio play headphone /dev/oss/oss_hdaudio0/pcm4 (device
index 4)
HD Audio play spdifout-mix /dev/oss/oss_hdaudio0/spdout0
(device index 5)
HD Audio rec rec1-src /dev/oss/oss_hdaudio0/pcmin0 (device
index 6)
HD Audio rec rec2-src /dev/oss/oss_hdaudio0/pcmin1 (device
index 7)
HD Audio rec rec3-src /dev/oss/oss_hdaudio0/pcmin2 (device
index 8)
HD Audio rec spdif-in /dev/oss/oss_hdaudio0/spdin0 (device
index 9)
HD Audio play front (vmix) loopback record /dev/oss/oss_hdaudio0/loop0
(device index 10)
USB sound device rec /dev/oss/usb046d08ad-1/pcmin0
(device index 11)
Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
ioctl(device_, SNDCTL_MIX_WRITE, &vr);
to fast the device will act up but not reporting any errors, atleast
when changing the volume.
The result is that the values written becomes random (often 0, but seen
other values as well).
This is realy bad for GUI apps using slider to change the values as
they will spam writes extreamly fast and this will mess upp the values.
ossinfo:
Version info: OSS 4.2 (b 2002/200911201634) (0x00040100) OSS_HG
Hg revision: changeset: 874:3c6677155802, tag: tip, date: Sat Nov 07
10:17:46 2009 +0200, summary: Changed build ID to v4.2-build2002
Platform: Linux/x86_64 2.6.35-gentoo-r1 #1 SMP Thu Aug 26 04:04:44 CEST
2010 (orion)
Number of audio devices: 12
Number of audio engines: 17
Number of MIDI devices: 0
Number of mixer devices: 2
Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=1132412466 (1132412466)
HD Audio controller Intel HD Audio
Vendor ID 0x8086293e
Subvendor ID 0x10438277
Codec 0: AD1988B (0x11d4198b/0x1043829c)
2: oss_usb0 USB audio core services
3: usb046d08ad-0 USB sound device
4: usb046d08ad-1 USB sound device
MIDI devices (/dev/midi*)
Mixer devices
0: High Definition Audio AD1988B (Mixer 0 of device object 1)
1: USB sound device (Mixer 0 of device object 3)
Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device
index 0)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm1 (device
index 1)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm2 (device
index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device
index 3)
HD Audio play headphone /dev/oss/oss_hdaudio0/pcm4 (device
index 4)
HD Audio play spdifout-mix /dev/oss/oss_hdaudio0/spdout0
(device index 5)
HD Audio rec rec1-src /dev/oss/oss_hdaudio0/pcmin0 (device
index 6)
HD Audio rec rec2-src /dev/oss/oss_hdaudio0/pcmin1 (device
index 7)
HD Audio rec rec3-src /dev/oss/oss_hdaudio0/pcmin2 (device
index 8)
HD Audio rec spdif-in /dev/oss/oss_hdaudio0/spdin0 (device
index 9)
HD Audio play front (vmix) loopback record /dev/oss/oss_hdaudio0/loop0
(device index 10)
USB sound device rec /dev/oss/usb046d08ad-1/pcmin0
(device index 11)
Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0