Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 809519] New: Swap HDMI and SB audio on Asus EeePC 1215b [solved]
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 15 Mar 2013 02:27:16 +0000
  • Message-id: <bug-809519-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=809519

https://bugzilla.novell.com/show_bug.cgi?id=809519#c0


Summary: Swap HDMI and SB audio on Asus EeePC 1215b [solved]
Classification: openSUSE
Product: openSUSE 12.3
Version: Final
Platform: x86-64
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sound
AssignedTo: tiwai@xxxxxxxx
ReportedBy: bernd.paysan@xxxxxx
QAContact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.32 (KHTML,
like Gecko) Chrome/27.0.1425.0 Safari/537.32 SUSE/27.0.1425.0

The Asus EeePC has two sound drivers, one for HDMI, the other for analog (SB).
Both use the snd_hda_intel. By default, Linux assigns the HDMI as card 0 and
the SB as card 1:

root@xxxx:~# cat /proc/asound/cards
0 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfeb44000 irq 44
1 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xfeb40000 irq 16
root@xxxx:~# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: Generic [HD-Audio Generic], Gerät 3: HDMI 0 [HDMI 0]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: SB [HDA ATI SB], Gerät 0: ALC269VB Analog [ALC269VB Analog]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

This doesn't work very well, too many programs simply assume that the default
Alsa device is card 0 device 0 (mplayer, Adobe flash, etc.). The order you
setup the two devices in Yast doesn't matter, and since it's the same driver
for both, it doesn't even help if you configure only one of the two - both of
them will be found and active. I've googled for the problem, it happens on all
Linux systems, and nobody in the top 10 Google results was intelligent enough
to find a solution. So I had to find one myself (which is pretty frustrating
if Google doesn't help):

Add the following option to /etc/modprobe.d/50-alsa.conf:

options snd-hda-intel index=1,0

This swaps both cards. The resulting aplay -l gives:
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: SB [HDA ATI SB], Gerät 0: ALC269VB Analog [ALC269VB Analog]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: Generic [HD-Audio Generic], Gerät 3: HDMI 0 [HDMI 0]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

This then works out of the box, the HDMI sound isn't the most important feature
of a laptop, which usually is not plugged into a TV.

Suggestion: Yast should add this line if the user configures two devices which
use the same driver in the reverse order as they appeared during the hardware
detection. Yast also should add this by default for AMD's netbook APUs, which
all have the same chipset.

Reproducible: Always

Steps to Reproduce:
1. Get a device like the Asus EeePC 1215b, which has two different soundcards
with the same driver
2. Try to use Yast to set the order in which these cards are mapped
3. Watch it being uneffective



As I found a workaround, I should probably severity to "minor". However, it is
frustrating to search for this. This additional configuration line should
quite likely be default on E-350/E-450 APUs from AMD, which all share that
problem, and Yast's approach to add an option line like this:

options snd slots=snd-hda-intel,snd-hda-intel
alias snd-card-0 snd-hda-intel
alias snd-card-1 snd-hda-intel

is stupid and for obvious reasons doesn't (and can't) work. So this is really
a bug, and it should be fixed.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
< Previous Next >
Follow Ups