You are not logged in.

#1 2020-05-31 19:45:05

amirzlf
Member
Registered: 2020-01-28
Posts: 2

[SOLVED] No sound after fresh install - unable to allocate memory

Hi,I've installed archlinux but cannot get any sound to work.
I have unmuted channels with alsamixer but speaker-test gave me this output:

speaker-test 1.2.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

I guessed audio is being outputted to the wrong device because I can hear some noises with

 speaker-test -D default:PCH -c 8 

So i followed the wiki and putted this on /etc/asound.conf

pcm.!default {
    type plug
    slave.pcm {
        @func getenv
        vars [ ALSAPCM ]
        default "hw:PCH"
    }
}

But i still cant hear anything with speaker-test.
here is it's new output:

speaker-test 1.2.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 8544000
Period size range from 32 to 4272000
Using max buffer size 8544000
Periods = 4
Unable to set hw params for playback: Cannot allocate memory
Setting of hwparams failed: Cannot allocate memory

and it is aplay -l output:

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

How can i fix it?

Last edited by amirzlf (2020-05-31 21:00:50)

Offline

#2 2020-05-31 20:22:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] No sound after fresh install - unable to allocate memory

That asound.conf looks weird I know it's in the wiki like that but I can't think of a usecase where that specific config will work like that. The minimal config you can do to fix this properly is

defaults.pcm.!card "PCH"
defaults.ctl.!card "PCH"

that way you'll also not lose dmix. Also make sure you really use the same speaker test invocations, lot's of cards can have issues which just a mono channel allocated use -c2 at the minimum for speaker tests.

Offline

#3 2020-05-31 21:00:31

amirzlf
Member
Registered: 2020-01-28
Posts: 2

Re: [SOLVED] No sound after fresh install - unable to allocate memory

V1del wrote:
defaults.pcm.!card "PCH"
defaults.ctl.!card "PCH"

It just worked.
Thank you.

Offline

#4 2020-09-12 21:57:39

cowlick
Banned
Registered: 2013-10-13
Posts: 73

Re: [SOLVED] No sound after fresh install - unable to allocate memory

God bless you Videl.


DELL Inspiron 14-3452, 32GB emmc, 4 GB RAM

Offline

#5 2020-09-12 22:40:30

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] No sound after fresh install - unable to allocate memory

Offline

Board footer

Powered by FluxBB