Fixed
Created: Mar 11, 2015
Updated: Dec 3, 2018
Resolved Date: Apr 19, 2015
Found In Version: 6.0.0.19
Fix Version: 6.0.0.20
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel
Unexpected results observed when attempting to play audio on the Eurotech Dev Kit (Catalyst TC Dev Kit). Customer did not see this type of behavior on WRL 4.
"-tsine -l1" should play a sine-wave tone for roughly 3 seconds. Instead, it plays the sine wave with periodic clicking and does not terminate until ^C is used to kill speaker-test.
The process seems to be in S-state: Interruptible sleep (waiting for an event to complete):
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 4179 0.0 0.0 3476 1324 pts/0 S+ 20:24 0:00 speaker-test -tsine -l1
Looking at /proc/interrupts after the test shows that no interrupts to the hda_intel driver occurred.
CPU0 CPU1
0: 55 0 IO-APIC-edge timer
1: 642 0 IO-APIC-edge i8042
3: 29 0 IO-APIC-edge
4: 29 0 IO-APIC-edge
6: 0 0 IO-APIC-edge catalyst_pps
7: 0 0 IO-APIC-edge catalyst
8: 1 0 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
12: 5 0 IO-APIC-edge i8042
16: 0 0 IO-APIC-fasteoi gpio_pch, ehci_hcd:usb2, ohci_hcd:usb6, ohci_hcd:usb7, ohci_hcd:usb8
18: 5720 0 IO-APIC-fasteoi i2c_eg20t, mmc1, spi_topcliff_pch
19: 54 0 IO-APIC-fasteoi ehci_hcd:usb1, ohci_hcd:usb3, ohci_hcd:usb4, ohci_hcd:usb5, pch_udc
21: 6 0 IO-APIC-fasteoi
86: 127 0 PCI-MSI-edge pch_uart
87: 11 0 PCI-MSI-edge
89: 0 0 PCI-MSI-edge ahci
91: 0 0 PCI-MSI-edge snd_hda_intel
92: 8276 0 PCI-MSI-edge eth0
NMI: 0 0 Non-maskable interrupts
LOC: 9045 25010 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
IWI: 0 0 IRQ work interrupts
RTR: 0 0 APIC ICR read retries
RES: 3933 6038 Rescheduling interrupts
CAL: 501 11 Function call interrupts
TLB: 243 194 TLB shootdowns
ERR: 0
MIS: 0
Using the enable_msi=0 module parameter for snd-hda-intel had no effect.
This is the stock software as provided by WindRiver, with no patches applied on customer's part.
Customer did not see this type of failure on WRLinux 4. So this is a new failure on the same hardware.
Attached are the package list and config log for the customer's platform.
1. Connect headphones to socket J23
2. Run alsamixer and unmute the audio (M)
3. Attempt to play audio:
-bash-3.2# speaker-test -tsine -l1
speaker-test 1.0.25
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
*** Expected Result:
Plays a sine-wave tone for roughly 3 seconds and then terminates. No clicking or or other noise expected.
*** Actual Result:
Plays the sine wave with periodic clicking and does not terminate until ^C is used to kill speaker-test.