All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Problems with multiple simultaneous ac97 quirks
Date: Thu, 15 Sep 2005 21:28:58 +0100	[thread overview]
Message-ID: <20050915202858.GA5169@srcf.ucam.org> (raw)
In-Reply-To: <s5h4q8mm7qi.wl%tiwai@suse.de>

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

On Thu, Sep 15, 2005 at 09:49:41PM +0200, Takashi Iwai wrote:

> I think the new quirk is the only solution in this case.
> And there won't be so many combinations in the real world, I'd
> expect.

Ok. Something like the following patch? It introduces 
AC97_TUNE_HP_MUTE_LED (yes, it's a poor name...) which is identical to 
AC97_TUNE_MUTE_LED except it calls bind_hp_volsw_put instead of 
snd_ac97_put_volsw and removes the headphone mixer controls.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

[-- Attachment #2: ac97.diff --]
[-- Type: text/plain, Size: 599 bytes --]

--- sound/pci/ac97/ac97_codec.c.orig	2005-09-13 15:45:35.000000000 +0100
+++ linux/sound/pci/ac97/ac97_codec.c	2005-09-13 15:46:05.000000000 +0100
@@ -2551,9 +2551,10 @@ int snd_ac97_tune_hardware(ac97_t *ac97,
 				continue;
 			snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device);
 			result = apply_quirk(ac97, quirk->type);
-			if (result < 0)
+			if (result < 0) {
 				snd_printk(KERN_ERR "applying quirk type %d for %s failed (%d)\n", quirk->type, quirk->name, result);
-			return result;
+				return result;
+			}
 		}
 	}
 	return 0;

  reply	other threads:[~2005-09-15 20:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15 18:04 Problems with multiple simultaneous ac97 quirks Matthew Garrett
2005-09-15 19:49 ` Takashi Iwai
2005-09-15 20:28   ` Matthew Garrett [this message]
2005-09-16  9:52     ` Takashi Iwai
2005-09-16 10:41     ` Matthew Garrett
2005-09-16 12:37       ` John W. Linville
2005-09-16 14:25         ` Matthew Garrett
2005-09-16 17:52           ` Takashi Iwai
2005-09-16 18:20       ` 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=20050915202858.GA5169@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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.