WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Intel hdmi Alsa users please read if sound issues  (Read 2384 times)

gordon64

  • Guest
Intel hdmi Alsa users please read if sound issues
« on: June 26, 2015, 10:23:34 PM »
Hi

I currently exceed attachement size and I forget which size to embed images....feel free to remind me

I have just installed this 64 bit distro and had no sound ....error message for using the legacy method for sound was
"something went wrong, sound not set up"



1) I have a new PC with onboard HDMI and onboard normal sound 3.5 mm outputs

2) When I ran the command
Code: [Select]
aplay -l  it was not showing me the first card.....remember Alsa counts sound thingee by zero then 1,2 etc

3) when I ran lspci -vvv.....I can see 2 major sound things are discovered.....so the fault lay with my sound config
snip for hdmi is
Quote
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
        Subsystem: ASUSTeK Computer Inc. Device 8534
        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-
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7c34000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel

snip for 3.5 mm sound jacks is
Quote
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
        Subsystem: ASUSTeK Computer Inc. Device 8630
        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 A routed to IRQ 45
        Region 0: Memory at f7c30000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel

The trick of course is to recognise that if your kernel is using the same module for both sound features.....use the index=number to force alsa to resolve the conflict.

###############

what follows is my current solution......there may be other ways.

1)  I chose not to have any blacklist option in my boot loader ......as its another distro booting TC at the moment.
2) I elected not to have any dot asoundrc file in my /home/tc as I am not using HDMI for output
3)  Using root powers I have this entry in my /opt/bootlocal.sh

Quote
#!/bin/sh
# put other system startup commands here

/sbin/modprobe -r snd_hda_intel
/sbin/modprobe snd_hda_intel index=1

4) either log out to prompt or reboot and I currently have alsa-config in onboot list but I will test having alsa later.
5) I unmute and set volumes using alsamixer using the command

Code: [Select]
alsamixer -c1

6) Don't forget to store your new levels and look at persistence 

Hope that helps someone


gordon64

  • Guest
Re: Intel hdmi Alsa users please read if sound issues
« Reply #1 on: June 27, 2015, 02:30:19 AM »
Ok before I tidy up top post.....I deleted all saved volume files and swapped alsa into the onboot list and removed alsa-config,
no other changes

can not play a wav file  as per code box
Code: [Select]
tc@box:~/Downloads$ aplay *.wav
ALSA lib conf.c:3512:(snd_config_hook_load) cannot stat file/directory /usr/local/share/alsa/cards/aliases.conf
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
aplay: main:722: audio open error: No such file or directory

I then manually loaded alsa-config and could then play a wav file. 
Code: [Select]
tc@box:~/Downloads$ tce-load -i alsa-config
libpci.tcz: OK
pciutils.tcz: OK
alsa-config.tcz: OK

tc@box:~/Downloads$ aplay *.wav
Playing WAVE 'Yamaha-EX5-Stereo-String-C4.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

tc@box:~/Downloads$  (meaning success)

for me, I had to put alsa-config back into onboot and remove alsa as its a dependency of alsa-config

###################
2)  without any volumes saved and with alsa-config loading on full reboot I do get unmuted sound and some volume as per image
so all is not lost having to load one extra TCZ.



thats enough testing for today.