* [PATCH RESEND] ASoC: Remove impossible case from wm8994_hw_params
@ 2011-10-05 23:39 Axel Lin
2011-10-11 10:00 ` Axel Lin
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2011-10-05 23:39 UTC (permalink / raw)
To: linux-kernel; +Cc: alsa-devel, Mark Brown, Liam Girdwood
We set hw_params callback for wm8994_aif3_dai_ops to wm8994_aif3_hw_params.
Thus no need to check wm8994-aif3 in wm8994_hw_params.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
sound/soc/codecs/wm8994.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 16542de..68e769e 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2235,7 +2235,6 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{
struct snd_soc_codec *codec = dai->codec;
- struct wm8994 *control = codec->control_data;
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
int aif1_reg;
int aif2_reg;
@@ -2278,15 +2277,6 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
dev_dbg(codec->dev, "AIF2 using split LRCLK\n");
}
break;
- case 3:
- switch (control->type) {
- case WM1811:
- case WM8958:
- aif1_reg = WM8958_AIF3_CONTROL_1;
- break;
- default:
- return 0;
- }
default:
return -EINVAL;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] ASoC: Remove impossible case from wm8994_hw_params
2011-10-05 23:39 [PATCH RESEND] ASoC: Remove impossible case from wm8994_hw_params Axel Lin
@ 2011-10-11 10:00 ` Axel Lin
2011-10-11 14:03 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2011-10-11 10:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Mark Brown, Liam Girdwood, alsa-devel
2011/10/6 Axel Lin <axel.lin@gmail.com>:
> We set hw_params callback for wm8994_aif3_dai_ops to wm8994_aif3_hw_params.
> Thus no need to check wm8994-aif3 in wm8994_hw_params.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
hi Mark,
Seems this patch is missed. This resend should be appliable to current code.
Thanks,
Axel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] ASoC: Remove impossible case from wm8994_hw_params
2011-10-11 10:00 ` Axel Lin
@ 2011-10-11 14:03 ` Mark Brown
2011-10-11 14:15 ` Axel Lin
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2011-10-11 14:03 UTC (permalink / raw)
To: Axel Lin; +Cc: alsa-devel, linux-kernel, Liam Girdwood
On Tue, Oct 11, 2011 at 06:00:55PM +0800, Axel Lin wrote:
> Seems this patch is missed. This resend should be appliable to current code.
I'll have ignored the original patch because it was flagged as a resend,
there's no point in resending patches unless there's been some noticable
interval.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] ASoC: Remove impossible case from wm8994_hw_params
2011-10-11 14:03 ` Mark Brown
@ 2011-10-11 14:15 ` Axel Lin
0 siblings, 0 replies; 4+ messages in thread
From: Axel Lin @ 2011-10-11 14:15 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-kernel, Liam Girdwood, alsa-devel
2011/10/11 Mark Brown <broonie@opensource.wolfsonmicro.com>:
> On Tue, Oct 11, 2011 at 06:00:55PM +0800, Axel Lin wrote:
>
>> Seems this patch is missed. This resend should be appliable to current code.
>
> I'll have ignored the original patch because it was flagged as a resend,
> there's no point in resending patches unless there's been some noticable
> interval.
>
It's because the original one does not applied to your tree.
https://lkml.org/lkml/2011/10/5/235
So. I resent the patch. ( Maybe I should just mark it as v2 )
Regards,
Axel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-11 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 23:39 [PATCH RESEND] ASoC: Remove impossible case from wm8994_hw_params Axel Lin
2011-10-11 10:00 ` Axel Lin
2011-10-11 14:03 ` Mark Brown
2011-10-11 14:15 ` Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).