You are not logged in.

#1 2020-05-21 21:08:01

danielscott886
Member
Registered: 2017-02-05
Posts: 1

Unable to get built in audio device to work using alsa

I am trying to get audio to work on my laptops built in intel audio using alsa.

When I run

aplay -l

I can see the device I want to use (PCH) listed as card 1

**** 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

And also running

aplay -L

I can see that it is set as the default audio device:

sysdefault:CARD=PCH
    HDA Intel PCH, ALC3232 Analog
    Default Audio Device

However audio is not working for any applications. When running speaker-test I get the following output:

[~] speaker-test

speaker-test 1.2.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

However if I specify the device it works and I can hear the audio output

[~] speaker-test -D sysdefault:CARD=PCH

speaker-test 1.2.2

Playback device is sysdefault:CARD=PCH
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
Time per period = 2.649069

I have tried setting the default audio device by creating ~/.asoundrc with the following:

defaults.pcm.card 1
defaults.pcm.device 0

but still there is no sound device 'default'.  Any help would be greatly appreciated
Thanks

Offline

#2 2020-05-21 23:53:19

piperdan
Member
From: Arizona
Registered: 2020-04-03
Posts: 23

Re: Unable to get built in audio device to work using alsa

Is pulseaudio and pulseaudio-alsa installed?

What do you get from:

pacman -Ss pulseaudio

pacman -Ss pulseaudio-alsa

https://wiki.archlinux.org/index.php/PulseAudio

Offline

#3 2020-05-22 12:08:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,378

Re: Unable to get built in audio device to work using alsa

If pulseaudio isn't installed and that's indeed your entire .asoundrc that should be sufficient and working, can you post the entire aplay -L output? Maybe for completeness sake throw in

strace aplay -L #Needs the strace package

Offline

Board footer

Powered by FluxBB