You are not logged in.

#1 2015-09-19 22:39:17

outfit
Member
Registered: 2015-09-02
Posts: 18

[SOLVED] Alsa sound not working

I am having a hard time finding documentation on how to get my sound working.
The things I find I do not understand.
I am on a Asus Zenbook UX305

I installed alsa-utils package

$ amixer sset Master unmute
amixer: Unable to find simple control 'Master',0
$ alsamixer

I get the alsamixer menu with three choices:

   00             00              00
S/PDIF     S/PDIF 1     S/PDIF 2

I hit f6 and get 4 choices:
- (default)
0 HDA Intel HDMI
1 HDA Intel PCH
enter device name...

The choice that brings me to the Alsa menu I am used to is the HDA intel PCH option
Now I can select the different options:
Master, Headphone, hit f5 for the mic stuff.....

Note: I unmuted beep and did get the computer to beep

When I escape the menu and return back to it I am presented with the
original S/PDIF options.

$ speaker-test -c x
Stream parameters are 48000Hz S16_LE, x channels
Using 16 octaves of pink noise
Alsa lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
$ aplay -L | grep :CARD
hdmi:CARD=HDMI, DEV=0
hdmi:CARD=HDMI, DEV=1
hdmi:CARD=HDMI, DEV=2
default:CARD=PCH
sysdefault:CARD=PCH
front:CARD=PCH, DEV=0
surround21:CARD=PCH,DEV=0
surround40:CARD=PCH,DEV=0
surround41:CARD=PCH,DEV=0
surround50:CARD=PCH,DEV=0
surround51:CARD=PCH,DEV=0
surround71:CARD=PCH,DEV=0
$ speaker-test -D front

speaker-test 1.0.29

Playback device if front
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory
$ lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi      53248   1
snd_hda_codec_conexant  24576   1
snd_hda_codec_generic   69632   1   snd_hda_codec_conexant
snd_soc_rt5640          86016   0
snd_soc_rl6231          16384   1   snd_soc_rt5640
snd_soc_core            159744  1   snd_soc_rt5640
snd_hda_intel           28672   0
snd_compress            20480   1   snd_soc_core
snd_hda_controller      28672   1   snd_hda_intel
snd_pcm_dmaengine       16384   1   snd_soc_core
snd_hda_codec           98304   5   snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hda_core            28672   5   snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_codec,snd_hda_controller
snd_hwdep               16384   1   snd_hda_codec
snd_pcm                 90112   7   snd_soc_rt5640,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller,snd_pcm_dmaengine
snd_timer               28672   1   snd_pcm
snd                     69632   10  snd_soc_core,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_compress
snd_soc_sst_acpi        16384   0
$ mplayer test.mp3
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1583:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: No such file or directory
AO: [pulse] Init failed: Connection refused
connect(2) call to /dev/shm/jack-1001/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s161e
[AO_ALSA] alsa-lib: pcm_hw.c:1583:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
[AO_ALSA] alsa-lib: pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s161e (2 bytes per sample)
....
$ ls -l /dev/snd
by-path
controlC0
controlC1
hwC0D0
hwC1D0
pcmC0D3p
pcmC0D7p
pcmC0D8p
pcmC1D0c
pcmC1D0p
seq
timer

Any Ideas?
thanks

Last edited by outfit (2015-09-19 23:30:58)

Offline

#2 2015-09-19 23:17:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] Alsa sound not working

HDMI is set as your default - you need to set PCH to be the default:
https://wiki.archlinux.org/index.php/Ad … sound_card
https://bbs.archlinux.org/viewtopic.php?id=200836


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-09-19 23:30:23

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] Alsa sound not working

Thank You so Much!

# echo "options snd-hda-intel index=1" > /etc/modprobe.d/alsa.conf

Offline

Board footer

Powered by FluxBB