View previous topic :: View next topic |
Author |
Message |
UberPinguin Guru
Joined: 20 Nov 2005 Posts: 510 Location: 2416.94 Miles From Home
|
Posted: Thu May 30, 2013 4:45 am Post subject: No Audio with snd_hda_intel, Realtek ALC892 [SOLVED] |
|
|
EDIT: Updating the BIOS and power cycling (not simply rebooting) the box did the trick.
I've been working on the audio for this box for over 6 hours, and still can't get more than a 'pop' when I mute/unmute the Master channel in alsamixer.
I know there are several other posts for nearly-identical hardware (same card, but slightly different codecs, or in a slightly different overall system), but nothing from those threads has helped me.
The system is based on an AMD E-350 APU, for which I am using the radeon kernel driver and xf86-video-ati xorg driver. It has both HDMI audio, and analog audio over a 3.5mm stereo-mini jack on the front bezel.
I have:
- Unmuted all channels on both cards.
- Muted only the SPDIF channels on either and both cards.
- Made sure my user is in the audio group.
- Tried as root.
- Made sure the 'HDA ATI SB Realtek ALC892' card is the default in ALSA.
- Tried 'model=auto' and 'model=generic' options on the snd_intel_hda module.
- Tested with 'speaker-test' and 'aplay'.
- Tried enabling and disabling automatic jack detection in the kernel driver.
- Manually probed the jack registers with 'hda-verb'.
- Tried with audio=0 and audio=1 parameters to the radeon module.
System: Zotac AD03
uname -a: Linux showoff 3.9.4-gentoo #10 SMP PREEMPT Wed May 29 23:33:00 EDT 2013 x86_64 AMD E-350 Processor AuthenticAMD GNU/Linux
lspci -vvnk: | 00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio [Radeon HD 6250/6310] [1002:1314]
Subsystem: ZOTAC International (MCO) Ltd. Device [19da:a176]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 41
Region 0: Memory at feb44000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [58] Express (v2) Root Complex Integrated Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
ExtTag+ RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-, OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee0300c Data: 4191
Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
Subsystem: ZOTAC International (MCO) Ltd. Device [19da:a176]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at feb40000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel |
alsa-info
alsamixer: | ┌──────────────────────────────────── AlsaMixer v1.0.27.1 ────────────────────────────────────┐
│ Card: HD-Audio Generic F1: Help │
│ Chip: ATI R6xx HDMI F2: System information │
│ View: F3: Playback F4: Capture F5:[All] F6: Select sound card │
│ Item: S/PDIF [Off] Esc: Exit │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ ┌──┐ │
│ │MM│ │
│ └──┘ │
│ < S/PDIF > │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────┘ |
alsamixer: | ┌──────────────────────────────────── AlsaMixer v1.0.27.1 ────────────────────────────────────┐
│ Card: HDA ATI SB F1: Help │
│ Chip: Realtek ALC892 F2: System information │
│ View: F3: Playback F4: Capture F5:[All] F6: Select sound card │
│ Item: Master [dB gain: -12.00, -12.00] Esc: Exit │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │ │ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ ├──┤ └──┘ ├──┤ └──┘ └──┘ ┌──┐ ┌──┐ └──┘ │
│ │OO│ │OO│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ │
│ ------- │
│ 60<>60 100<>100 60<>60 0<>0 0<>0 0<>0 │
│ < Master > PCM Mic Mic Boost Mic Boost S/PDIF S/PDIF Def Capture │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────┘ |
_________________
aidanjt wrote: | You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines. |
Last edited by UberPinguin on Fri May 31, 2013 1:46 pm; edited 1 time in total |
|
Back to top |
|
|
Knute Guru
Joined: 28 Jun 2004 Posts: 362 Location: Fargo, ND
|
Posted: Thu May 30, 2013 5:24 am Post subject: |
|
|
Is this one where the hdmi and the stereo speakers can "share" the connection? I'm confused, because how you wrote it it looks like you have 2 cards.
If it's a "sharing" issue, I would seriously take a look in the bios and see if there is an option to change that feature.
Another thing that may be happening, is that with multiple audio devices, they can sometimes swap places, and that can drive you seriously batty trying to keep track. The option to fix that is index=(0 or 1). I discovered that when I got a camera that had a microphone on it.
Not sure if this is good info for you or not, but good luck on it. _________________ Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain
If you want proof of that, take a look at windows sometime. |
|
Back to top |
|
|
UberPinguin Guru
Joined: 20 Nov 2005 Posts: 510 Location: 2416.94 Miles From Home
|
Posted: Thu May 30, 2013 1:02 pm Post subject: |
|
|
I don't think they share a connection. There are separate outputs for HDMI and SPDIF. I didn't see anything in the BIOS related to that, other than an option to disable an audio device. I don't recall which device it was.
The analog output device is card 1, and I did try index=1. While that got alsamixer to default to the correct device, and aplay didn't complain, it did not result in any audio. _________________
aidanjt wrote: | You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines. |
|
|
Back to top |
|
|
Knute Guru
Joined: 28 Jun 2004 Posts: 362 Location: Fargo, ND
|
Posted: Thu May 30, 2013 2:10 pm Post subject: |
|
|
Has it ever worked? If so, what changed? _________________ Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain
If you want proof of that, take a look at windows sometime. |
|
Back to top |
|
|
UberPinguin Guru
Joined: 20 Nov 2005 Posts: 510 Location: 2416.94 Miles From Home
|
Posted: Thu May 30, 2013 2:11 pm Post subject: |
|
|
It hasn't, for me. I just got the box 2 days ago, and am doing the initial setup. Everything except audio works right now.
EDIT: Also, I should note that I don't own any HDMI or S/PDIF capable hardware, so I cannot verify whether audio is being routed over those interfaces instead. _________________
aidanjt wrote: | You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines. |
|
|
Back to top |
|
|
Knute Guru
Joined: 28 Jun 2004 Posts: 362 Location: Fargo, ND
|
Posted: Thu May 30, 2013 2:22 pm Post subject: |
|
|
Ok. Well, that helps some, I guess. Have you tried a live cd that automatically initializes the sound?
That way, if it sets it up ok, then you can look at how it was set up to see what you missed. I'm guessing it's probably something small if it's a software issue. _________________ Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain
If you want proof of that, take a look at windows sometime. |
|
Back to top |
|
|
UberPinguin Guru
Joined: 20 Nov 2005 Posts: 510 Location: 2416.94 Miles From Home
|
Posted: Thu May 30, 2013 7:02 pm Post subject: |
|
|
I noticed that my BIOS is 5 revisions, or 2 years, out of date. I'll apply the update when I get home and see if that helps.
Collected some tips from a couple of blogs and wikis, and put together this script for building my BIOS flashing image from Zotac's zip:
Code: | #!/usr/bin/bash
#
# Create a bootable floppy image with FreeDOS and the files
# needed to update your BIOS. Bootable from GRUB-2
#
# Assumes the presence of syslinux and makebootfat on your system
## You want to configure these variables:
# name of the image to create
BOOTIMAGE_NAME="bios.img"
# path in which to create the image
BOOTIMAGE_PATH="/boot"
# location of BIOS update files.
# You should organize these files as you want them to appear
# in the finished image.
BIOS_PATH="/tmp/zboxbios"
# size of the disk image, in MB.
FLOPPY_SIZE=10
# build a "floppy disk" image
dd if=/dev/zero of="$BOOTIMAGE_PATH"/"$BOOTIMAGE_NAME" bs=1440K count=$FLOPPY_SIZE
## from http://www.fladi.at/posts/large-freedos-boot-image/:
# get source files:
mkdir /tmp/freedos/
pushd /tmp/freedos/
SOURCES="http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/commandx.zip http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/kernels.zip http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/substx.zip http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/unstablx.zip"
for source in "$SOURCES"; do wget "$source"; done
for ZIP in *.zip; do unzip "$ZIP"; done
# setup filesystem
mkdir /tmp/fs-root/
cp bin/command.com /tmp/fs-root/
cp bin/kernel.sys /tmp/fs-root/
cp -a "$BIOS_PATH"/* /tmp/fs-root/
# write filesystem to image
loopDevice=$(losetup -f --show "$BOOTIMAGE_PATH"/"$BOOTIMAGE_NAME")
makebootfat -o $loopDevice -E 255 -1 /tmp/freedos/source/ukernel/boot/fat12.bin -2 /tmp/freedos/source/ukernel/boot/fat16.bin -3 /tmp/freedos/source/ukernel/boot/fat32lba.bin -m /usr/share/syslinux/mbr.bin /tmp/fs-root/
losetup -d $loopDevice
popd
rm -rf /tmp/freedos
rm -rf /tmp/fs-root
# make memdisk available to grub2
cp /usr/share/syslinux/memdisk /boot/
## /etc/grub.d/40-custom menu entry
## from http://wiki.debian.org/DualBoot/FreeDOS
# menuentry "FreeDOS (flash bios)" {
# insmod fat
# set root='(hd0,msdos2)'
# linux16 /memdisk
# initrd16 /bios.img
# }
##
grub2-mkconfig -o /boot/grub2/grub.cfg |
_________________
aidanjt wrote: | You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines. |
|
|
Back to top |
|
|
UberPinguin Guru
Joined: 20 Nov 2005 Posts: 510 Location: 2416.94 Miles From Home
|
Posted: Fri May 31, 2013 1:38 pm Post subject: |
|
|
The BIOS update, combined with a power cycle (not a warm reboot) seems to have cleared the issue up. I now have audio working reliably.
Thanks for taking a look and for your suggestions, Knute. _________________
aidanjt wrote: | You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines. |
|
|
Back to top |
|
|
Knute Guru
Joined: 28 Jun 2004 Posts: 362 Location: Fargo, ND
|
Posted: Fri May 31, 2013 5:39 pm Post subject: |
|
|
You are very welcome. I'm glad that it turned out to be just a bios update to fix it. _________________ Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain
If you want proof of that, take a look at windows sometime. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|