All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: 3.1-rc5 is the worst
Date: Wed, 14 Sep 2011 09:03:10 +0200	[thread overview]
Message-ID: <CAC9WiBivf2HCVAe-d9ah+mpA50pwjH8ga6w5O4rAq9U2CTa8HA@mail.gmail.com> (raw)
In-Reply-To: <s5hmxe8vntc.wl%tiwai@suse.de>

Hello,

On Tue, Sep 13, 2011 at 10:39 AM, Takashi Iwai <tiwai@suse.de> wrote:
>
> The patch below should fix the problem.  Give it a try.
>

Yes it does, thanks !

>
> ---
> From: Takashi Iwai <tiwai@suse.de>
> Subject: [PATCH] ALSA: hda - Terminate the recursive connection search properly
>
> The recursive search of widget connections in snd_hda_get_conn_index()
> must be terminated at the pin and the audio-out widgets.  Otherwise
> you'll get "too deep connection" warnings unnecessarily.
>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
>  sound/pci/hda/hda_codec.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
> index 3e7850c..f3aefef 100644
> --- a/sound/pci/hda/hda_codec.c
> +++ b/sound/pci/hda/hda_codec.c
> @@ -579,9 +579,13 @@ int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux,
>                return -1;
>        }
>        recursive++;
> -       for (i = 0; i < nums; i++)
> +       for (i = 0; i < nums; i++) {
> +               unsigned int type = get_wcaps_type(get_wcaps(codec, conn[i]));
> +               if (type == AC_WID_PIN || type == AC_WID_AUD_OUT)
> +                       continue;
>                if (snd_hda_get_conn_index(codec, conn[i], nid, recursive) >= 0)
>                        return i;
> +       }
>        return -1;
>  }
>  EXPORT_SYMBOL_HDA(snd_hda_get_conn_index);
> --
> 1.7.6.1
>
>



-- 
Francis

  reply	other threads:[~2011-09-14  7:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-10  9:57 3.1-rc5 is the worst Francis Moreau
2011-09-10 15:11 ` Keith Packard
2011-09-10 19:42   ` Francis Moreau
2011-09-11  7:09     ` Sitsofe Wheeler
2011-09-11 18:32       ` Francis Moreau
2011-09-11 18:33   ` Francis Moreau
2011-09-20 17:18     ` Keith Packard
2011-09-20 20:55       ` Francis Moreau
2011-09-21  7:57         ` Francis Moreau
2011-09-21 14:47           ` Keith Packard
2011-09-21 18:56       ` Hugh Dickins
2011-09-21 19:16         ` Keith Packard
2011-09-12  9:05 ` Clemens Ladisch
2011-09-12  9:05   ` Clemens Ladisch
2011-09-12  9:24 ` Takashi Iwai
2011-09-12 13:14   ` Francis Moreau
2011-09-12 14:25     ` Francis Moreau
2011-09-13  8:39       ` Takashi Iwai
2011-09-14  7:03         ` Francis Moreau [this message]
2011-09-15 20:00           ` Linus Torvalds
2011-09-16  4:56             ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAC9WiBivf2HCVAe-d9ah+mpA50pwjH8ga6w5O4rAq9U2CTa8HA@mail.gmail.com \
    --to=francis.moro@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.