All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lrg@ti.com>
Subject: Re: [PATCH v6] ASoC: Apply msbits constraint for sample size bigger than the msbits
Date: Thu, 19 Jan 2012 17:51:47 +0000	[thread overview]
Message-ID: <20120119175147.GJ3178@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1326989163-5187-1-git-send-email-peter.ujfalusi@ti.com>

On Thu, Jan 19, 2012 at 05:06:03PM +0100, Peter Ujfalusi wrote:

> Let's try this way.
> I think this implementation is quete clear for the first look to understand what
> it is doing.

>  	for (i = 0; i < ARRAY_SIZE(sample_sizes); i++) {
> +		if (sample_sizes[i] > bits) {
> +			ret = snd_pcm_hw_constraint_msbits(substream->runtime,
> +						      0, sample_sizes[i], bits);
> +			if (ret != 0)
> +				dev_warn(dai->dev,
> +					 "Failed to set MSB %d/%d: %d\n",
> +					 bits, sample_sizes[i], ret);
> +		} else {
> +			/*
> +			 * The remaining sample sizes are smaller than the
> +			 * requested msbits, we can bail out from the loop.
> +			 */
> +			break;
> +		}

*sigh*  I think from the tone of the above you know that's not really
addressing the issue.

My yak is getting pretty bald now and I'm running out of razors.

  reply	other threads:[~2012-01-19 17:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-19 16:06 [PATCH v6] ASoC: Apply msbits constraint for sample size bigger than the msbits Peter Ujfalusi
2012-01-19 17:51 ` Mark Brown [this message]
2012-01-19 18:23   ` Peter Ujfalusi

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=20120119175147.GJ3178@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@ti.com \
    --cc=peter.ujfalusi@ti.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.