[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140204180625.GM22609@sirena.org.uk>
Date: Tue, 4 Feb 2014 18:06:25 +0000
From: Mark Brown <broonie@...nel.org>
To: Jean-Francois Moine <moinejf@...e.fr>
Cc: alsa-devel@...a-project.org, Dave Airlie <airlied@...il.com>,
dri-devel@...ts.freedesktop.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Rob Clark <robdclark@...il.com>,
Russell King - ARM Linux <linux@....linux.org.uk>
Subject: Re: [PATCH v3 4/5] ASoC: tda998x: adjust the audio hw parameters
from EDID
On Mon, Jan 27, 2014 at 09:48:54AM +0100, Jean-Francois Moine wrote:
> + /* change the snd_soc_pcm_stream values of the driver */
> + stream->rates = rate_mask;
> + stream->channels_max = max_channels;
> + stream->formats = formats;
> + /* copy the DAI driver to a writable area */
> + dai_drv = devm_kzalloc(&pdev->dev, sizeof(tda998x_dai), GFP_KERNEL);
> + if (!dai_drv)
> + return -ENOMEM;
> + memcpy(dai_drv, tda998x_dai, sizeof(tda998x_dai));
> +
The code should be doing this by setting constraints based on the
current setup rather than by editing the data structure - the expecation
is very much that the data won't change so this prevents surprises with
future work on the core.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists