alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
@ 2012-12-19  8:44 David Henningsson
  2012-12-19 10:24 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: David Henningsson @ 2012-12-19  8:44 UTC (permalink / raw)
  To: alsa-devel, 886975, tiwai; +Cc: David Henningsson

This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.

The original patch was meant to remove clicking, but in fact caused even
more clicking instead.

Thanks to c4pp4 for doing most of the work with this bug.

BugLink: https://bugs.launchpad.net/bugs/886975
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---

@c4pp4: Is this consistent with what you have done to reduce the clicking?
Will you recommend upstream Linux to take the patch below?

 sound/pci/hda/patch_conexant.c |   16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 60890bf..dd798c3 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -558,24 +558,12 @@ static int conexant_build_controls(struct hda_codec *codec)
 	return 0;
 }
 
-#ifdef CONFIG_PM
-static int conexant_suspend(struct hda_codec *codec)
-{
-	snd_hda_shutup_pins(codec);
-	return 0;
-}
-#endif
-
 static const struct hda_codec_ops conexant_patch_ops = {
 	.build_controls = conexant_build_controls,
 	.build_pcms = conexant_build_pcms,
 	.init = conexant_init,
 	.free = conexant_free,
 	.set_power_state = conexant_set_power,
-#ifdef CONFIG_PM
-	.suspend = conexant_suspend,
-#endif
-	.reboot_notify = snd_hda_shutup_pins,
 };
 
 #ifdef CONFIG_SND_HDA_INPUT_BEEP
@@ -4405,10 +4393,6 @@ static const struct hda_codec_ops cx_auto_patch_ops = {
 	.init = cx_auto_init,
 	.free = conexant_free,
 	.unsol_event = snd_hda_jack_unsol_event,
-#ifdef CONFIG_PM
-	.suspend = conexant_suspend,
-#endif
-	.reboot_notify = snd_hda_shutup_pins,
 };
 
 /*
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2012-12-19  8:44 [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs" David Henningsson
@ 2012-12-19 10:24 ` Takashi Iwai
  2012-12-19 10:34   ` David Henningsson
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2012-12-19 10:24 UTC (permalink / raw)
  To: David Henningsson; +Cc: alsa-devel, 886975

At Wed, 19 Dec 2012 09:44:47 +0100,
David Henningsson wrote:
> 
> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
> 
> The original patch was meant to remove clicking, but in fact caused even
> more clicking instead.
> 
> Thanks to c4pp4 for doing most of the work with this bug.
> 
> BugLink: https://bugs.launchpad.net/bugs/886975
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> ---
> 
> @c4pp4: Is this consistent with what you have done to reduce the clicking?
> Will you recommend upstream Linux to take the patch below?

So, it shouldn't be merged yet right now?
Now is the last chance for merging it to 3.8-rc1.


Takashi

> 
>  sound/pci/hda/patch_conexant.c |   16 ----------------
>  1 file changed, 16 deletions(-)
> 
> diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
> index 60890bf..dd798c3 100644
> --- a/sound/pci/hda/patch_conexant.c
> +++ b/sound/pci/hda/patch_conexant.c
> @@ -558,24 +558,12 @@ static int conexant_build_controls(struct hda_codec *codec)
>  	return 0;
>  }
>  
> -#ifdef CONFIG_PM
> -static int conexant_suspend(struct hda_codec *codec)
> -{
> -	snd_hda_shutup_pins(codec);
> -	return 0;
> -}
> -#endif
> -
>  static const struct hda_codec_ops conexant_patch_ops = {
>  	.build_controls = conexant_build_controls,
>  	.build_pcms = conexant_build_pcms,
>  	.init = conexant_init,
>  	.free = conexant_free,
>  	.set_power_state = conexant_set_power,
> -#ifdef CONFIG_PM
> -	.suspend = conexant_suspend,
> -#endif
> -	.reboot_notify = snd_hda_shutup_pins,
>  };
>  
>  #ifdef CONFIG_SND_HDA_INPUT_BEEP
> @@ -4405,10 +4393,6 @@ static const struct hda_codec_ops cx_auto_patch_ops = {
>  	.init = cx_auto_init,
>  	.free = conexant_free,
>  	.unsol_event = snd_hda_jack_unsol_event,
> -#ifdef CONFIG_PM
> -	.suspend = conexant_suspend,
> -#endif
> -	.reboot_notify = snd_hda_shutup_pins,
>  };
>  
>  /*
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2012-12-19 10:24 ` Takashi Iwai
@ 2012-12-19 10:34   ` David Henningsson
  2012-12-19 10:38     ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: David Henningsson @ 2012-12-19 10:34 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, 886975

On 12/19/2012 11:24 AM, Takashi Iwai wrote:
> At Wed, 19 Dec 2012 09:44:47 +0100,
> David Henningsson wrote:
>>
>> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
>>
>> The original patch was meant to remove clicking, but in fact caused even
>> more clicking instead.
>>
>> Thanks to c4pp4 for doing most of the work with this bug.
>>
>> BugLink: https://bugs.launchpad.net/bugs/886975
>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
>> ---
>>
>> @c4pp4: Is this consistent with what you have done to reduce the clicking?
>> Will you recommend upstream Linux to take the patch below?
>
> So, it shouldn't be merged yet right now?
> Now is the last chance for merging it to 3.8-rc1.

If we don't have time waiting for c4pp4's confirmation without missing 
the entire 3.8 cycle, then I think we should merge it.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2012-12-19 10:34   ` David Henningsson
@ 2012-12-19 10:38     ` Takashi Iwai
  2013-01-03 16:04       ` David Henningsson
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2012-12-19 10:38 UTC (permalink / raw)
  To: David Henningsson; +Cc: alsa-devel, 886975

At Wed, 19 Dec 2012 11:34:46 +0100,
David Henningsson wrote:
> 
> On 12/19/2012 11:24 AM, Takashi Iwai wrote:
> > At Wed, 19 Dec 2012 09:44:47 +0100,
> > David Henningsson wrote:
> >>
> >> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
> >>
> >> The original patch was meant to remove clicking, but in fact caused even
> >> more clicking instead.
> >>
> >> Thanks to c4pp4 for doing most of the work with this bug.
> >>
> >> BugLink: https://bugs.launchpad.net/bugs/886975
> >> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> >> ---
> >>
> >> @c4pp4: Is this consistent with what you have done to reduce the clicking?
> >> Will you recommend upstream Linux to take the patch below?
> >
> > So, it shouldn't be merged yet right now?
> > Now is the last chance for merging it to 3.8-rc1.
> 
> If we don't have time waiting for c4pp4's confirmation without missing 
> the entire 3.8 cycle, then I think we should merge it.

It's no new feature, so it's fine to merge it at any time during 3.8
cycle, even after 3.8-rc1.

But such a fix should be merged with Cc to stable, so a bit more tests
would be better.


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2012-12-19 10:38     ` Takashi Iwai
@ 2013-01-03 16:04       ` David Henningsson
  2013-01-04  8:49         ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: David Henningsson @ 2013-01-03 16:04 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, 886975

On 12/19/2012 11:38 AM, Takashi Iwai wrote:
> At Wed, 19 Dec 2012 11:34:46 +0100,
> David Henningsson wrote:
>>
>> On 12/19/2012 11:24 AM, Takashi Iwai wrote:
>>> At Wed, 19 Dec 2012 09:44:47 +0100,
>>> David Henningsson wrote:
>>>>
>>>> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
>>>>
>>>> The original patch was meant to remove clicking, but in fact caused even
>>>> more clicking instead.
>>>>
>>>> Thanks to c4pp4 for doing most of the work with this bug.
>>>>
>>>> BugLink: https://bugs.launchpad.net/bugs/886975
>>>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
>>>> ---
>>>>
>>>> @c4pp4: Is this consistent with what you have done to reduce the clicking?
>>>> Will you recommend upstream Linux to take the patch below?
>>>
>>> So, it shouldn't be merged yet right now?
>>> Now is the last chance for merging it to 3.8-rc1.
>>
>> If we don't have time waiting for c4pp4's confirmation without missing
>> the entire 3.8 cycle, then I think we should merge it.
>
> It's no new feature, so it's fine to merge it at any time during 3.8
> cycle, even after 3.8-rc1.
>
> But such a fix should be merged with Cc to stable, so a bit more tests
> would be better.

Do you have a suggestion on how that should be tested? I have no 
conexant machines here currently.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2013-01-03 16:04       ` David Henningsson
@ 2013-01-04  8:49         ` Takashi Iwai
  2013-01-09  8:36           ` David Henningsson
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2013-01-04  8:49 UTC (permalink / raw)
  To: David Henningsson; +Cc: alsa-devel, 886975

At Thu, 03 Jan 2013 17:04:15 +0100,
David Henningsson wrote:
> 
> On 12/19/2012 11:38 AM, Takashi Iwai wrote:
> > At Wed, 19 Dec 2012 11:34:46 +0100,
> > David Henningsson wrote:
> >>
> >> On 12/19/2012 11:24 AM, Takashi Iwai wrote:
> >>> At Wed, 19 Dec 2012 09:44:47 +0100,
> >>> David Henningsson wrote:
> >>>>
> >>>> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
> >>>>
> >>>> The original patch was meant to remove clicking, but in fact caused even
> >>>> more clicking instead.
> >>>>
> >>>> Thanks to c4pp4 for doing most of the work with this bug.
> >>>>
> >>>> BugLink: https://bugs.launchpad.net/bugs/886975
> >>>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> >>>> ---
> >>>>
> >>>> @c4pp4: Is this consistent with what you have done to reduce the clicking?
> >>>> Will you recommend upstream Linux to take the patch below?
> >>>
> >>> So, it shouldn't be merged yet right now?
> >>> Now is the last chance for merging it to 3.8-rc1.
> >>
> >> If we don't have time waiting for c4pp4's confirmation without missing
> >> the entire 3.8 cycle, then I think we should merge it.
> >
> > It's no new feature, so it's fine to merge it at any time during 3.8
> > cycle, even after 3.8-rc1.
> >
> > But such a fix should be merged with Cc to stable, so a bit more tests
> > would be better.
> 
> Do you have a suggestion on how that should be tested? I have no 
> conexant machines here currently.

Well, at best, test 3.8-rc2 with the patch.  The content isn't too
intrusive so it should suffice for merge.  Alternatively, the tester
can try older kernel with the same patch.

The point is to confirm that the patch really works.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2013-01-04  8:49         ` Takashi Iwai
@ 2013-01-09  8:36           ` David Henningsson
  2013-01-09 10:04             ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: David Henningsson @ 2013-01-09  8:36 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, 886975

On 01/04/2013 09:49 AM, Takashi Iwai wrote:
> At Thu, 03 Jan 2013 17:04:15 +0100,
> David Henningsson wrote:
>>
>> On 12/19/2012 11:38 AM, Takashi Iwai wrote:
>>> At Wed, 19 Dec 2012 11:34:46 +0100,
>>> David Henningsson wrote:
>>>>
>>>> On 12/19/2012 11:24 AM, Takashi Iwai wrote:
>>>>> At Wed, 19 Dec 2012 09:44:47 +0100,
>>>>> David Henningsson wrote:
>>>>>>
>>>>>> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
>>>>>>
>>>>>> The original patch was meant to remove clicking, but in fact caused even
>>>>>> more clicking instead.
>>>>>>
>>>>>> Thanks to c4pp4 for doing most of the work with this bug.
>>>>>>
>>>>>> BugLink: https://bugs.launchpad.net/bugs/886975
>>>>>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
>>>>>> ---
>>>>>>
>>>>>> @c4pp4: Is this consistent with what you have done to reduce the clicking?
>>>>>> Will you recommend upstream Linux to take the patch below?
>>>>>
>>>>> So, it shouldn't be merged yet right now?
>>>>> Now is the last chance for merging it to 3.8-rc1.
>>>>
>>>> If we don't have time waiting for c4pp4's confirmation without missing
>>>> the entire 3.8 cycle, then I think we should merge it.
>>>
>>> It's no new feature, so it's fine to merge it at any time during 3.8
>>> cycle, even after 3.8-rc1.
>>>
>>> But such a fix should be merged with Cc to stable, so a bit more tests
>>> would be better.
>>
>> Do you have a suggestion on how that should be tested? I have no
>> conexant machines here currently.
>
> Well, at best, test 3.8-rc2 with the patch.  The content isn't too
> intrusive so it should suffice for merge.  Alternatively, the tester
> can try older kernel with the same patch.
>
> The point is to confirm that the patch really works.

This has now been confirmed by c4pp4. Please commit the patch.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
  2013-01-09  8:36           ` David Henningsson
@ 2013-01-09 10:04             ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2013-01-09 10:04 UTC (permalink / raw)
  To: David Henningsson; +Cc: alsa-devel, 886975

At Wed, 09 Jan 2013 09:36:24 +0100,
David Henningsson wrote:
> 
> On 01/04/2013 09:49 AM, Takashi Iwai wrote:
> > At Thu, 03 Jan 2013 17:04:15 +0100,
> > David Henningsson wrote:
> >>
> >> On 12/19/2012 11:38 AM, Takashi Iwai wrote:
> >>> At Wed, 19 Dec 2012 11:34:46 +0100,
> >>> David Henningsson wrote:
> >>>>
> >>>> On 12/19/2012 11:24 AM, Takashi Iwai wrote:
> >>>>> At Wed, 19 Dec 2012 09:44:47 +0100,
> >>>>> David Henningsson wrote:
> >>>>>>
> >>>>>> This reverts commit 697c373e34613609cb5450f98b91fefb6e910588.
> >>>>>>
> >>>>>> The original patch was meant to remove clicking, but in fact caused even
> >>>>>> more clicking instead.
> >>>>>>
> >>>>>> Thanks to c4pp4 for doing most of the work with this bug.
> >>>>>>
> >>>>>> BugLink: https://bugs.launchpad.net/bugs/886975
> >>>>>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> >>>>>> ---
> >>>>>>
> >>>>>> @c4pp4: Is this consistent with what you have done to reduce the clicking?
> >>>>>> Will you recommend upstream Linux to take the patch below?
> >>>>>
> >>>>> So, it shouldn't be merged yet right now?
> >>>>> Now is the last chance for merging it to 3.8-rc1.
> >>>>
> >>>> If we don't have time waiting for c4pp4's confirmation without missing
> >>>> the entire 3.8 cycle, then I think we should merge it.
> >>>
> >>> It's no new feature, so it's fine to merge it at any time during 3.8
> >>> cycle, even after 3.8-rc1.
> >>>
> >>> But such a fix should be merged with Cc to stable, so a bit more tests
> >>> would be better.
> >>
> >> Do you have a suggestion on how that should be tested? I have no
> >> conexant machines here currently.
> >
> > Well, at best, test 3.8-rc2 with the patch.  The content isn't too
> > intrusive so it should suffice for merge.  Alternatively, the tester
> > can try older kernel with the same patch.
> >
> > The point is to confirm that the patch really works.
> 
> This has now been confirmed by c4pp4. Please commit the patch.

OK, applied now.


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-09 13:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19  8:44 [PATCH] Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs" David Henningsson
2012-12-19 10:24 ` Takashi Iwai
2012-12-19 10:34   ` David Henningsson
2012-12-19 10:38     ` Takashi Iwai
2013-01-03 16:04       ` David Henningsson
2013-01-04  8:49         ` Takashi Iwai
2013-01-09  8:36           ` David Henningsson
2013-01-09 10:04             ` Takashi Iwai

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).