You are not logged in.

#1 2020-09-07 10:23:45

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

No sound after new Installation

Hey
I have installed new installation of archlinux but i dont know whats wrong i tried everything sound not working, My other installation after installing alsa-utils and unmute sound work ok.

My asound.conf:

pcm.!default {
    type hw
    card 1
}

ctl.!default {
    type hw
    card 1
}
pcm.!default {
    type plug
    slave.pcm "softvol"
}

pcm.softvol {
    type softvol
    slave {
        pcm "dmix"
    }
    control {
        name "Pre-Amp"
        card 0
    }
    min_dB -5.0
    max_dB 20.0
    resolution 6
}

Speaker test not working also:

jwtiyar@Arch-Jwtiyar ~> speaker-test -c 2

speaker-test 1.2.3

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

Aplay -l Outpu:

jwtiyar@Arch-Jwtiyar ~ [1]> aplay -l
**** 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: ALC282 Analog [ALC282 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
jwtiyar@Arch-Jwtiyar ~> 

Whats iam missing?

Offline

#2 2020-09-07 10:45:37

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

Re: No sound after new Installation

You break the default device twice, and then reference the dmix node that references your hdmi card. a ! in ALSA configuration completely replaces prior definitions for the specified node, so what you will end up with is a softvol referencing your hdmi hw:0,0 card as the default.

Where did you get that config from, it doesn't really make much sense as written. If you just want to change the default device to go to card 1 the entire asound.conf you need for this is

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

Last edited by V1del (2020-09-07 10:46:41)

Offline

#3 2020-09-07 12:00:43

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: No sound after new Installation

Thank you, Fixed
I searched too much and got this config from:
https://wiki.archlinux.org/index.php/Ad … ive_method


Best Rgeards.

Offline

Board footer

Powered by FluxBB