Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[Solved] Sound card doesn't work

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
mid-kid
n00b
n00b
Posts: 26
Joined: Sun Aug 24, 2014 9:51 am

[Solved] Sound card doesn't work

  • Quote

Post by mid-kid » Sun Aug 24, 2014 10:35 am

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: Select all

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: Select all

**** 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: Select all

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: Select all

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: Select all

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.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Sun Aug 24, 2014 6:18 pm

Drop that asound.conf first. You probably need at most to set defaults.pcm.card (and perhaps defaults.ctl.card).
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Aug 24, 2014 6:44 pm

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.
Top
mid-kid
n00b
n00b
Posts: 26
Joined: Sun Aug 24, 2014 9:51 am

  • Quote

Post by mid-kid » Tue Aug 26, 2014 6:21 am

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.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic