All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Jens Axboe <axboe@kernel.dk>, alsa-devel@alsa-project.org
Subject: Re: [PATCH v2 1/2] ALSA: hda: Reduce udelay() at SKL+ position reporting
Date: Wed, 29 Sep 2021 09:53:48 -0500	[thread overview]
Message-ID: <e23c5525-790e-bd04-42cc-334af16d8af0@linux.intel.com> (raw)
In-Reply-To: <s5h4ka3monj.wl-tiwai@suse.de>



On 9/29/21 9:39 AM, Takashi Iwai wrote:
> On Wed, 29 Sep 2021 16:15:44 +0200,
> Pierre-Louis Bossart wrote:
>>
>>
>>> @@ -874,11 +896,7 @@ static unsigned int azx_get_pos_skl(struct azx *chip, struct azx_dev *azx_dev)
>>>  	if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
>>>  		return azx_skl_get_dpib_pos(chip, azx_dev);
>>>  
>>> -	/* For capture, we need to read posbuf, but it requires a delay
>>> -	 * for the possible boundary overlap; the read of DPIB fetches the
>>> -	 * actual posbuf
>>> -	 */
>>> -	udelay(20);
>>> +	/* read of DPIB fetches the actual posbuf */
>>>  	azx_skl_get_dpib_pos(chip, azx_dev);
>>
>> I don't think extra read has any effect, it could be removed....
>>
>>>  	return azx_get_pos_posbuf(chip, azx_dev);
>>>  }
>>
>> The suggestion was to further simplify with
>>
>> static unsigned int azx_get_pos_skl(struct azx *chip, struct azx_dev
>> *azx_dev)
>> {
>> 	return azx_get_pos_posbuf(chip, azx_dev);
>> }
>>
>> i.e. same behavior on playback and capture. that's the recommendation
>> from Intel hw folks.
> 
> It's achieved in the second patch.

Ah ok. the additional comment made me think it was there to stay.

  reply	other threads:[~2021-09-29 14:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29  7:29 [PATCH v2 0/2] ALSA: hda: Reduce CPU hog with SKL+ position reporting Takashi Iwai
2021-09-29  7:29 ` [PATCH v2 1/2] ALSA: hda: Reduce udelay() at " Takashi Iwai
2021-09-29 14:15   ` Pierre-Louis Bossart
2021-09-29 14:39     ` Takashi Iwai
2021-09-29 14:53       ` Pierre-Louis Bossart [this message]
2021-09-29  7:29 ` [PATCH v2 2/2] ALSA: hda: Use position buffer for SKL+ again Takashi Iwai
2021-09-29 14:54 ` [PATCH v2 0/2] ALSA: hda: Reduce CPU hog with SKL+ position reporting Pierre-Louis Bossart
2021-09-30 11:50 ` Takashi Iwai

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=e23c5525-790e-bd04-42cc-334af16d8af0@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=axboe@kernel.dk \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.