View previous topic :: View next topic |
Author |
Message |
mid-kid n00b
Joined: 24 Aug 2014 Posts: 16
|
Posted: Sun Aug 24, 2014 10:35 am Post subject: [Solved] Sound card doesn't work |
|
|
Hello, I'm using ArchLinux and decided to try compiling my own kernel.
Well, I'm trying to figure out how to get my sound card working, and figured this was the best place to ask for help.
All I know is this:
On the default -ARCH kernel, it used the snd-hda-intel module, and even though it crashed very often, at least it did something.
I use x86_64_defconfig as a base for my kernel config. snd-hda-intel is compiled in the kernel by default (not as a module). I tried editing some stuff there, but nothing worked. I eventually reverted the changed options.
lspci | grep Audio:
Code: | 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01) |
aplay -l:
Code: | **** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC271X Analog [ALC271X Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0 |
cat /etc/asound.conf: (It set the default sound card to HDMI, had to change that.)
Code: | pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
} |
When I try 'speaker-test -c 2', it plays the front-left speaker, but stays there until I CTRL-C:
Code: |
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
^C 1 - Front Right
Time per period = 15,401206 |
'aplay < /dev/urandom' doesn't work:
Code: | Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S16_LE
- S32_LE |
Am I missing some kernel configuration (I think that's the case)? If so, which?
Or is something else the problem?
Last edited by mid-kid on Tue Aug 26, 2014 6:23 am; edited 1 time in total |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Aug 24, 2014 6:18 pm Post subject: |
|
|
Drop that asound.conf first. You probably need at most to set defaults.pcm.card (and perhaps defaults.ctl.card). |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Sun Aug 24, 2014 6:44 pm Post subject: |
|
|
mid-kid,
Welcome to the Gentoo Forums
Moved from Kernel & Hardware to Unsupported Software ss we don't want to mislead Gentoo users if there is an Arch specific solution.
Unsupported Software does not mean you won't get help.
Look in /dev/snd. If it exists and is populated, your kernel is probably good.
The root cause of your problem looks to be that your default sound card is HDMI, so all your sounds are going there.
You need to tell ALSA to use sound card 1, (with the analogue outputs) as the default. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mid-kid n00b
Joined: 24 Aug 2014 Posts: 16
|
Posted: Tue Aug 26, 2014 6:21 am Post subject: |
|
|
Sorry I haven't replied in a while, been busy.
NeddySeagoon wrote: | Look in /dev/snd. If it exists and is populated, your kernel is probably good.
The root cause of your problem looks to be that your default sound card is HDMI, so all your sounds are going there.
You need to tell ALSA to use sound card 1, (with the analogue outputs) as the default. |
/dev/snd was populated, and I had set the default sound card to 1 (Not HDMI) through /etc/asound.conf.
However, I haven't done anything besides update some packages and the like, and yesterday it suddently started working.
I have no idea how, and would love to know. :/
VoidMage wrote: | Drop that asound.conf first. You probably need at most to set defaults.pcm.card (and perhaps defaults.ctl.card). |
Thanks for the tip, just changed it right now. Looks way simpler. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|