From: Takashi Iwai Subject: Re: [PATCH 1/1] ASoC: twl4030 - Fix build error Date: Mon, 16 Mar 2009 09:35:24 +0100 Message-ID: References: <4e1455be0903152013kf2158fdpc339a682111417c3@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 7CF2224345 for ; Mon, 16 Mar 2009 09:35:24 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jarkko Nikula Cc: alsa-devel@alsa-project.org, Joonyoung Shim , Mark Brown List-Id: alsa-devel@alsa-project.org At Mon, 16 Mar 2009 09:01:11 +0200, Jarkko Nikula wrote: > > > > > Signed-off-by: Joonyoung Shim > > --- > > sound/soc/codecs/twl4030.c | 12 +++++++----- > > 1 files changed, 7 insertions(+), 5 deletions(-) > > > > diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c > > index ce4b43b..5ed5f1b 100644 > > --- a/sound/soc/codecs/twl4030.c > > +++ b/sound/soc/codecs/twl4030.c > > @@ -1383,6 +1383,12 @@ static int twl4030_set_dai_fmt(struct > > snd_soc_dai *codec_dai, > > #define TWL4030_RATES (SNDRV_PCM_RATE_8000_48000) > > #define TWL4030_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | > > SNDRV_PCM_FORMAT_S24_LE) > > > > +static struct snd_soc_dai_ops twl4030_dai_ops = { > > + .hw_params = twl4030_hw_params, > > + .set_sysclk = twl4030_set_dai_sysclk, > > + .set_fmt = twl4030_set_dai_fmt, > > +}; > > + > > struct snd_soc_dai twl4030_dai = { > > .name = "twl4030", > > .playback = { > > @@ -1397,11 +1403,7 @@ struct snd_soc_dai twl4030_dai = { > > .channels_max = 2, > > .rates = TWL4030_RATES, > > .formats = TWL4030_FORMATS,}, > > - .ops = { > > - .hw_params = twl4030_hw_params, > > - .set_sysclk = twl4030_set_dai_sysclk, > > - .set_fmt = twl4030_set_dai_fmt, > > - } > > + .ops = &twl4030_dai_ops, > > }; > > EXPORT_SYMBOL_GPL(twl4030_dai); > > > > > Looks like a valid fix but note there is line wrapping and tabs are > converted > into spaces so patch doesn't apply. Right, please fix and repost. Meanwhile, I found also sound/soc/sh/hac.c and sound/soc/s3c24xx/s3c64xx-i2s.c have the same problem. Mark, care to fix them? thanks, Takashi