All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org,
	Richard Fitzgerald <rf@opensource.wolfsonmicro.com>,
	Vinod Koul <vinod.koul@linux.jf.intel.com>
Subject: Re: [PATCH] ALSA: core: don't return uninitialized snd_compr_tstamp
Date: Wed, 30 Jan 2013 18:53:54 -0800	[thread overview]
Message-ID: <20130131025354.GA3143@intel.com> (raw)
In-Reply-To: <1359599832-6210-1-git-send-email-broonie@opensource.wolfsonmicro.com>

On Thu, Jan 31, 2013 at 10:37:12AM +0800, Mark Brown wrote:
> From: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
> 
> The snd_compr_update_tstamp() can only fill in the snd_compr_tstamp
> if the codec implements the pointer() function. If that happened
> the code was previously returning uninitialized garbage in the
> tstamp because it wasn't initialized anywhere.
> 
> This change zero-fills the tstamp in the two places it is used
> before calling snd_compr_update_tstamp(), and also has
> snd_compr_update_tstamp() return an error indication if it
> can't provide a tstamp. For the case of snd_compr_calc_avail()
> it ignores this error because we still need to return info on
> the available buffer space even if we can't provide tstamp
> info - when the tstamp is not valid all fields are now
> guaranteed to be zero.
> 
> Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>

--
~Vinod

  reply	other threads:[~2013-01-31  3:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-31  2:37 [PATCH] ALSA: core: don't return uninitialized snd_compr_tstamp Mark Brown
2013-01-31  2:53 ` Vinod Koul [this message]
2013-02-04 14:23 ` Pierre-Louis Bossart
2013-02-04 14:43   ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2013-02-11 13:44 Mark Brown
2013-02-11 14:05 ` 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=20130131025354.GA3143@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=rf@opensource.wolfsonmicro.com \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@linux.jf.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 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.