After applying the following patch the tool produced some output but I'm
not sure if it as expected.


$ sudo /usr/bin/hda-jack-sense-test
Unable to find proc file '/proc/asound/card0/codec#0'
Pin 0x0a (Black HP Out): present = No
Pin 0x0e (Black Mic): present = No
Pin 0x0f (Black Line Out): present = No


$ diff -u usr/share/snd-hda-tools/hda_codec.py 
/usr/share/snd-hda-tools/hda_codec.py
--- usr/share/snd-hda-tools/hda_codec.py        2011-09-06 22:26:27.000000000 
+0100
+++ /usr/share/snd-hda-tools/hda_codec.py       2013-07-05 11:05:28.091270160 
+0100
@@ -905,7 +905,15 @@
       self.mcard = card
       self.card = card.card
     if not clonefd:
-      self.fd = os.open("/dev/snd/hwC%sD%s" % (card, device), os.O_RDWR)
+      dev_path="/dev/snd/hwC%sD%s" % (card, device)
+      if os.path.exists(dev_path):
+        self.fd = os.open(dev_path, os.O_RDWR)
+      else:
+        for dev in range(9):
+          dev_path="/dev/snd/hwC%sD%s" % (card, dev)
+          if os.path.exists(dev_path):
+            self.fd = os.open(dev_path, os.O_RDWR)
+            break
     else:
       self.fd = os.dup(clonefd)
     info = struct.pack('Ii64s80si64s', 0, 0, '', '', 0, '')

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1197290

Title:
  No sound on speakers with HDA Intel, SigmaTel STAC9228, kernel 3.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1197290/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to