From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: Re: exynos4412: Audio dies after one day on kernel 4.0 Date: Tue, 23 Jun 2015 08:57:03 +0900 Message-ID: <5588A0CF.6000807@samsung.com> References: <5569F435.5040708@unseen.is> <556E0931.9030703@unseen.is> <556E44B7.10303@samsung.com> <5576CD40.8060301@unseen.is> <557B53C6.8070600@unseen.is> <557BC3DB.1030906@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mailout3.w1.samsung.com ([210.118.77.13]:55462 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502AbbFVX5I (ORCPT ); Mon, 22 Jun 2015 19:57:08 -0400 In-reply-to: Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Anand Moon Cc: Vinod Koul , gabriel@unseen.is, "linux-samsung-soc@vger.kernel.org" , dmaengine@vger.kernel.org, sylvester.nawrocki@gmail.com, Robert Baldyga , Marek Szyprowski On 23.06.2015 01:00, Anand Moon wrote: > Hi Krzysztof >=20 > On 13 June 2015 at 13:45, Krzysztof Kozlowski > wrote: >=20 > 2015-06-13 14:47 GMT+09:00 Krzysztof Kozlowski > >: > > W dniu 13.06.2015 o 06:48, gabriel@unseen.is > pisze: > >> On 06/10/2015 10:22 AM, Krzysztof Kozlowski wrote: > >>> > >>> Gabriel, > >>> > >>> I sent a patch which should fix the issue. Could you give it = a > try? Of > >>> course don't revert the other patches and don't use other > workarounds. > >>> Just apply the patch on clean (vanilla would be the best) ker= nel. > >>> [RFT PATCH] dmaengine: Fix choppy sound because of unimplemen= ted > resume > >>> > >> > >> hi krzysztof, > >> > >> thanks a lot for your work. having only that patch applied > unfortunately > >> brought back the problem after something more than one day. th= e sound > >> became choppy/noisy again. I will now compile the -next kernel > and give > >> it a try. > > > > Thanks, I'll try to reproduce the issue on my Odroid. Can you > share more > > details how to reproduce it? The audio must play continuously o= r just > > from time to time but the board must be turned on for more than > one day? >=20 > I bought some audio cables and successfully reproduced similar is= sue > (choppy sound) on Odroid XU3-Lite. On current linux-next > (next-20150612) the sound is awful (choppy) after few seconds of = play. > For example first four of: > $ aplay /usr/share/sounds/alsa/Front_Right.wav > work fine. But then it just gets worse and underruns are reported= : > $ Playing WAVE '/usr/share/sounds/alsa/Front_Right.wav' : Signed = 16 > bit Little Endian, Rate 48000 Hz, Mono > $ underrun!!! (at least 0.095 ms long) >=20 > Reverting the commit aee4d1fac887 ("dmaengine: pl330: improve > pl330_tx_status() function") fixes this issue so this is not rela= ted > to missing "resume" function. At least this particular issue on m= y > Odroid is not related to missing resume but I did not try to play > sound for 24 hours. > My fix does not solve this. Probably "cc-stable" and "fixes" tags > should be dropped. >=20 > Anyway I'll try to investigate it more. If anyone has any ideas, > please share. >=20 > Best regards, > Krzysztof > -- > To unsubscribe from this list: send the line "unsubscribe > linux-samsung-soc" in > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.htm= l >=20 >=20 > =E2=80=8BI gave it a try by enabling following config=E2=80=8B flags. >=20 > CONFIG_SND_SEQUENCER=3Dm > CONFIG_SND_SEQ_DUMMY=3Dm > CONFIG_SND_USB_AUDIO=3Dm >=20 > I am able to play mp3 songs on Odroid-XU3 boards on vlc. > Could you give it a try. What do you mean? Which patch are you talking about? Are you aware that I tried to fix this two times? I already tested the latest fix on Odroid XU3 - which I mentioned in commit. However it would be nice to get confirmation for fixing origina= l bug report (that specific conditions on that board which Gabriel report= ed). Best regards, Krzysztof