Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Lin, Mengdong" <mengdong.lin@intel.com>
Cc: "Yang, Libin" <libin.yang@intel.com>,
	"Li, Jocelyn" <jocelyn.li@intel.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: Re: [PATCH] ALSA: hda - using POS_FIX_LPIB on Broadwell HDMI Audio
Date: Thu, 08 May 2014 11:42:47 +0200	[thread overview]
Message-ID: <s5htx90r4h4.wl%tiwai@suse.de> (raw)
In-Reply-To: <F46914AEC2663F4A9BB62374E5EEF8F82B40DA9C@SHSMSX101.ccr.corp.intel.com>

At Thu, 8 May 2014 09:37:13 +0000,
Lin, Mengdong wrote:
> 
> Hi Takashi,
> 
> Is it possible to accept this patch as a quick fix?

Well, the question is whether this is specific to this board, or it's
a generic issue of BDW HDMI controller.  In the latter case, the fix
is done in a wrong place.

> It seems that a driver regression triggers this issue, since we don't have this problem two weeks ago.
> We're still trying to locate the regression and checking the root cause. 

If it's a recent regression, I don't think it's good to apply a
bandaid.  There must be a cause (e.g. something changed in the
graphics side) to fix properly.

> This patch could avoid audio degradation atm before we have a better solution.

The workaround can be applied easily via module option, and the
machine isn't in the market yet.  So I see no point to hurry too much
for now...


thanks,

Takashi


> Thanks
> Mengdong
> 
> > -----Original Message-----
> > From: Takashi Iwai [mailto:tiwai@suse.de]
> > Sent: Thursday, May 08, 2014 2:40 PM
> > To: Yang, Libin
> > Cc: alsa-devel@alsa-project.org; Lin, Mengdong; Pierre-Louis Bossart
> > Subject: Re: [PATCH] ALSA: hda - using POS_FIX_LPIB on Broadwell HDMI Audio
> > 
> > At Thu, 8 May 2014 06:28:17 +0000,
> > Yang, Libin wrote:
> > >
> > > Hi Takashi,
> > >
> > > > -----Original Message-----
> > > > From: Takashi Iwai [mailto:tiwai@suse.de]
> > > > Sent: Thursday, May 8, 2014 2:20 PM
> > > > To: Yang, Libin
> > > > Cc: alsa-devel@alsa-project.org; Lin, Mengdong; Pierre-Louis Bossart
> > > > Subject: Re: [PATCH] ALSA: hda - using POS_FIX_LPIB on Broadwell
> > > > HDMI Audio
> > > >
> > > > At Thu, 8 May 2014 06:13:31 +0000,
> > > > Yang, Libin wrote:
> > > > >
> > > > > Hi Takashi,
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Takashi Iwai [mailto:tiwai@suse.de]
> > > > > > Sent: Thursday, May 8, 2014 1:51 PM
> > > > > > To: Yang, Libin
> > > > > > Cc: alsa-devel@alsa-project.org; Lin, Mengdong; Pierre-Louis
> > > > > > Bossart
> > > > > > Subject: Re: [PATCH] ALSA: hda - using POS_FIX_LPIB on Broadwell
> > > > > > HDMI Audio
> > > > > >
> > > > > > At Thu, 8 May 2014 05:48:04 +0000, Yang, Libin wrote:
> > > > > > >
> > > > > > > Hi Takashi,
> > > > > > >
> > > > > > > I checked the wallclock counter. The counter is OK. But it
> > > > > > > failed to correct
> > > > > > the position.
> > > > > >
> > > > > > So, how wrong the position buffer is?  Is the problem intermittent?
> > > > > > Please elaborate more.
> > > > >
> > > > > The issue is the position is almost always inaccurate. You will
> > > > > hear there is
> > > > intermittent noise in the sound. And the sound is played faster than
> > > > it should be.
> > > > >
> > > > > The following message is what I got from dmesg:
> > > > >
> > > > > [ 73.278117] snd_hda_intel 0000:00:03.0: IRQ timing workaround is
> > > > activated for card #0. Suggest a bigger bdl_pos_adj.
> > > > > [ 73.528575] snd_hda_intel 0000:00:03.0: Unstable LPIB (26240 >=
> > > > > 24064); disabling LPIB delay counting
> > > > >
> > > > > Do you think the print of wallclk and position information in the
> > > > > function
> > > > azx_position_ok() is useful to you? If yes, I will add debug code to
> > > > print the info.
> > > >
> > > > It'd better to have the raw values of posbuf, lpib and wallclock for
> > > > further analysis, yes.
> > > >
> > > > BTW, did you try non-snoop mode via snoop=0 option?
> > >
> > > I haven't tried non-snoop. Do I use `modprobe snd-hda-intel snoop=0` to use
> > non-snoop mode?
> > 
> > Yes.
> > 
> > Takashi
> 

      reply	other threads:[~2014-05-08  9:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 18:03 [PATCH] ALSA: hda - using POS_FIX_LPIB on Broadwell HDMI Audio libin.yang
2014-05-08  5:09 ` Takashi Iwai
2014-05-08  5:48   ` Yang, Libin
2014-05-08  5:51     ` Takashi Iwai
2014-05-08  6:13       ` Yang, Libin
2014-05-08  6:19         ` Takashi Iwai
2014-05-08  6:28           ` Yang, Libin
2014-05-08  6:39             ` Takashi Iwai
2014-05-08  7:58               ` Yang, Libin
2014-05-08 16:06                 ` David Henningsson
2014-05-09 10:08                   ` Lin, Mengdong
2014-05-09 10:20                     ` Takashi Iwai
2014-05-12  8:22                       ` Lin, Mengdong
2014-05-12  8:31                         ` Takashi Iwai
2014-05-12  9:46                           ` Lin, Mengdong
2014-05-12  9:51                             ` Takashi Iwai
2014-05-13  4:37                               ` Lin, Mengdong
2014-05-13  7:19                                 ` Takashi Iwai
2014-05-13  9:00                                   ` Lin, Mengdong
2014-05-09 14:58                     ` Pierre-Louis Bossart
2014-05-08  9:37               ` Lin, Mengdong
2014-05-08  9:42                 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5htx90r4h4.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=jocelyn.li@intel.com \
    --cc=libin.yang@intel.com \
    --cc=mengdong.lin@intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox