Description of problem: The Audio driver does not work well on Trevally board(RS690 + SB700) which uses AD1984 as its HDAudio codec chip/PCM device. The symptom is: The audio is abnormal, when a ".wav" file is being played, usually there are many(10 or more or endless) abnormal loops of middle PART of its audio, which make the audio turn out to be NOISE, here are some examples: [root@localhost ~]# aplay /usr/share/sounds/startup3.wav Playing WAVE '/usr/share/sounds/startup3.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: pcm_write:1115: write error: Input/output error [root@localhost ~]# aplay XP_startup.wav Playing WAVE 'XP_startup.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo aplay: pcm_write:1115: write error: Input/output error [root@localhost ~]# aplay /usr/share/sounds/KDE_Startup.wav Playing WAVE '/usr/share/sounds/KDE_Startup.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono (comment by Shane: endless loop playing of KDE_Startup.wav) Additional info: Sound card seems can be recognized correctly: [root@localhost ~]# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: SB [HDA ATI SB], device 0: AD198x Analog [AD198x Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: SB [HDA ATI SB], device 1: AD198x Digital [AD198x Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 [root@localhost ~]#
this BZ was created with the comment #32 of BZ# 280381
Created attachment 290693 [details] update the position_fix
Created attachment 290694 [details] unmute the output nids in ad1984 codec
I have uploaded 2 patches for this bug. The two patches can fix this bug. Please check.
These patches are for R4.7. Russ, please add to 4.7 master bug tracker. Libin, is the Intel fix necessary for the Trevally board to work?
Yes, the two patches are both needed. The patch "update the position_fix" is the root cause. This such bug has already been fixed by ALSA long before. Actually you will find the code "azx_dev->period_intr++;" in hda_intel.patch is included in the current ALSA 1.0.15. This code is missed when back porting.
Devel ACK for 4.7 on condition that ALSA 1.0.15 works properly on this hardware. The assumption here is that it does.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
This bug has been fixed by kernel-smp-2.6.9-70.EL.x86_64.rpm and kernel-smp-2.6.9-70.EL.i686.rpm Thanks
Committed in 70.EL. RPMS are available at http://people.redhat.com/vgoyal/
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2008-0665.html
Partners, I would like to thank you all for your participation in assuring the quality of this RHEL 4.7 Update Release. My hat's off to you all. Thanks.