Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: dapm: Use card_list during DAPM shutdown
@ 2012-11-08 18:03 Misael Lopez Cruz
  2012-11-09 16:02 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Misael Lopez Cruz @ 2012-11-08 18:03 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: alsa-devel, Misael Lopez Cruz

DAPM shutdown incorrectly uses "list" field of codec struct while
iterating over probed components (codec_dev_list). "list" field
refers to codecs registered in the system, "card_list" field is
used for probed components.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
---
 sound/soc/soc-dapm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index d0a4be3..6e35bca 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3745,7 +3745,7 @@ void snd_soc_dapm_shutdown(struct snd_soc_card *card)
 {
 	struct snd_soc_codec *codec;
 
-	list_for_each_entry(codec, &card->codec_dev_list, list) {
+	list_for_each_entry(codec, &card->codec_dev_list, card_list) {
 		soc_dapm_shutdown_codec(&codec->dapm);
 		if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY)
 			snd_soc_dapm_set_bias_level(&codec->dapm,
-- 
1.7.4.1

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

* Re: [PATCH] ASoC: dapm: Use card_list during DAPM shutdown
  2012-11-08 18:03 [PATCH] ASoC: dapm: Use card_list during DAPM shutdown Misael Lopez Cruz
@ 2012-11-09 16:02 ` Mark Brown
  2012-11-09 16:17   ` Liam Girdwood
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-11-09 16:02 UTC (permalink / raw)
  To: Misael Lopez Cruz; +Cc: alsa-devel, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 580 bytes --]

On Thu, Nov 08, 2012 at 12:03:12PM -0600, Misael Lopez Cruz wrote:
> DAPM shutdown incorrectly uses "list" field of codec struct while
> iterating over probed components (codec_dev_list). "list" field
> refers to codecs registered in the system, "card_list" field is
> used for probed components.

> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
> Signed-off-by: Liam Girdwood <lrg@ti.com>

Applied, with Liam's signoff changed to an ack - please don't add
signoffs for other people, the signoff means something fairly specific.
Please see SubmittingPatches for details.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCH] ASoC: dapm: Use card_list during DAPM shutdown
  2012-11-09 16:02 ` Mark Brown
@ 2012-11-09 16:17   ` Liam Girdwood
  2012-11-09 16:32     ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Liam Girdwood @ 2012-11-09 16:17 UTC (permalink / raw)
  To: Mark Brown; +Cc: Misael Lopez Cruz, alsa-devel

On 09/11/12 16:02, Mark Brown wrote:
> On Thu, Nov 08, 2012 at 12:03:12PM -0600, Misael Lopez Cruz wrote:
>> DAPM shutdown incorrectly uses "list" field of codec struct while
>> iterating over probed components (codec_dev_list). "list" field
>> refers to codecs registered in the system, "card_list" field is
>> used for probed components.
>
>> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
>> Signed-off-by: Liam Girdwood <lrg@ti.com>
>
> Applied, with Liam's signoff changed to an ack - please don't add
> signoffs for other people, the signoff means something fairly specific.
> Please see SubmittingPatches for details.
>

Fwiw, We both worked on this hence the dual sign-off, I would have complained 
anyway if my ack/sob had been added by mistake.

Liam

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

* Re: [PATCH] ASoC: dapm: Use card_list during DAPM shutdown
  2012-11-09 16:17   ` Liam Girdwood
@ 2012-11-09 16:32     ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-11-09 16:32 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: Misael Lopez Cruz, alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 317 bytes --]

On Fri, Nov 09, 2012 at 04:17:08PM +0000, Liam Girdwood wrote:

> Fwiw, We both worked on this hence the dual sign-off, I would have
> complained anyway if my ack/sob had been added by mistake.

Ah, OK - normally for that the Signoffs will be the other way around
(the person sending the mail last).  I'll change it.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2012-11-09 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 18:03 [PATCH] ASoC: dapm: Use card_list during DAPM shutdown Misael Lopez Cruz
2012-11-09 16:02 ` Mark Brown
2012-11-09 16:17   ` Liam Girdwood
2012-11-09 16:32     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox