[alsa-devel] [PATCH V3 3/4] ASoC: SPEAr spdif_out: Add spdif out support

Mark Brown broonie at opensource.wolfsonmicro.com
Sat Jun 30 20:35:58 CEST 2012

On Fri, Jun 29, 2012 at 01:05:13PM +0530, Vipin Kumar wrote:
> On 6/28/2012 5:57 PM, Mark Brown wrote:

> >>+	.ops = (struct snd_soc_dai_ops *)&spdif_out_dai_ops,

> >Why do you need this cast?

> It was a const I think

So you've just introduced a bug, then - you're using a const variable in
a non-const context.  Don't cast away the const, either arrange for the
ops pointer in the dai to be const or remove the const.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120630/77201328/attachment-0001.sig 

More information about the Alsa-devel mailing list