From: Steven Newbury <steve@snewbury.org.uk>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] ALSA: hda - HDMI Audio init all connectors
Date: Thu, 07 Jun 2012 06:52:59 +0100 [thread overview]
Message-ID: <1339048379.2910.9.camel@Nokia-N900> (raw)
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
When VGA_SWITCHEROO support is enabled hda_intel initialises the HDMI audio device on the current VGA device. When it's not enabled it only initialises the HDMI device on the default VGA adaptor, this means secondary cards get no audio support which is very unhelpful for multi-seat!
With this patch, when SUPPORT_VGA_SWITCHEROO is disabled hda_intel initialises all HDMI audio devices, not just the default VGA.
Signed-off-by: Steven Newbury <steve@snewbury.org.uk>
[-- Attachment #2: hdmi-audio-init.patch --]
[-- Type: text/x-patch, Size: 1610 bytes --]
commit 8989f0e53f7108d099fb7c5fdb76f58d3a63f85a
Author: Steven Newbury <steve@snewbury.org.uk>
Date: Wed Jun 6 23:52:13 2012 +0100
ALSA: hda - Always initialise all HDMI audio connectors
when SUPPORT_VGA_SWITCHEROO is disabled
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index e924722..f207549 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2484,9 +2484,9 @@ static void azx_notifier_unregister(struct azx *chip)
static int DELAYED_INIT_MARK azx_first_init(struct azx *chip);
static int DELAYED_INIT_MARK azx_probe_continue(struct azx *chip);
+#ifdef SUPPORT_VGA_SWITCHEROO
static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci);
-#ifdef SUPPORT_VGA_SWITCHEROO
static void azx_vs_set_state(struct pci_dev *pci,
enum vga_switcheroo_state state)
{
@@ -2641,6 +2641,7 @@ static int azx_dev_free(struct snd_device *device)
/*
* Check of disabled HDMI controller by vga-switcheroo
*/
+#ifdef SUPPORT_VGA_SWITCHEROO
static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci)
{
struct pci_dev *p;
@@ -2663,10 +2664,12 @@ static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci)
}
return NULL;
}
+#endif /* SUPPORT_VGA_SWITCHER */
static bool __devinit check_hdmi_disabled(struct pci_dev *pci)
{
bool vga_inactive = false;
+#ifdef SUPPORT_VGA_SWITCHEROO
struct pci_dev *p = get_bound_vga(pci);
if (p) {
@@ -2674,6 +2677,7 @@ static bool __devinit check_hdmi_disabled(struct pci_dev *pci)
vga_inactive = true;
pci_dev_put(p);
}
+#endif
return vga_inactive;
}
next reply other threads:[~2012-06-07 5:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 5:52 Steven Newbury [this message]
2012-06-07 8:47 ` [PATCH] ALSA: hda - HDMI Audio init all connectors Takashi Iwai
2012-06-07 9:00 ` Steven Newbury
2012-06-07 9:47 ` 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=1339048379.2910.9.camel@Nokia-N900 \
--to=steve@snewbury.org.uk \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox