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 Desktop
Packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1197290

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

Status in “alsa-driver” package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 13.04 Raring with linux 3.10.0-031000-generic from kernel-ppa.

  Card: HDA Intel
  Chip: SigmaTel STAC9228      

  After booting the 3.10 kernel there was no sound on speakers although
  sound on headphones was fine.

  Using the sound control GUI in Unity I was unable to find any
  combination of options to enable sound to the speakers. Mute and
  volume controls for the Speaker output device were set correctly.

  I tried using "alasamixer" in a terminal and with "View: [All]"
  noticed a mixer control "<Auto-Mute>" which was set to "Enabled". I
  altered that to "Disabled" and speaker sound was enabled correctly.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to