LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-21-2015, 04:53 AM   #1
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Rep: Reputation: 22
(Almost) no sound from alsa.


I have a newish PC with onboard audio and pci card:
Code:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
03:02.0 Multimedia audio controller: Cirrus Logic Crystal CS4281 PCI Audio (rev 01)
I know they work because I had them both working under Centos with pulseaudio. 2 movies playing, each sending sound to a different card. Then I upgraded pa and everything broke.

I moved on to Arch and just installed the alsa stuff:
Code:
alsa-firmware-1.0.29-1-any.pkg.tar.xz
alsa-lib-1.0.29-1-i686.pkg.tar.xz
alsa-oss-1.0.28-1-i686.pkg.tar.xz
alsa-plugins-1.0.29-2-i686.pkg.tar.xz
alsa-tools-1.0.29-1-i686.pkg.tar.xz
alsa-utils-1.0.29-1-i686.pkg.tar.xz
alsaplayer-0.99.81-6-i686.pkg.tar.xz
I'm pretty sure I don't need the firmware pkg, but, what the heck. I just want sound.

modules:
Code:
snd_hda_codec_analog    16384  1
snd_hda_codec_generic    65536  1 snd_hda_codec_analog
snd_cs4281             20480  1
snd_opl3_lib           20480  1 snd_cs4281
snd_ac97_codec         98304  1 snd_cs4281
ac97_bus               16384  1 snd_ac97_codec
gameport               16384  2 snd_cs4281
snd_rawmidi            24576  1 snd_cs4281
snd_seq_device         16384  2 snd_rawmidi,snd_opl3_lib
snd_hda_intel          28672  0
snd_hda_controller     28672  1 snd_hda_intel
snd_hda_codec          98304  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_controller,snd_hda_codec_analog
snd_hwdep              16384  2 snd_hda_codec,snd_opl3_lib
snd_pcm                77824  5 snd_ac97_codec,snd_hda_codec,snd_hda_intel,snd_hda_controller,snd_cs4281
snd_timer              28672  2 snd_pcm,snd_opl3_lib
snd                    57344  14 snd_ac97_codec,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_s
soundcore              16384  2 snd,snd_hda_codec
Here's /dev/snd:
Code:
total 0
drwxr-xr-x  2 root root       80 Jun 20 06:12 by-path
crw-rw----+ 1 root audio 116,  2 Jun 20 06:12 controlC0
crw-rw----+ 1 root audio 116,  8 Jun 20 06:12 controlC1
crw-rw----+ 1 root audio 116,  7 Jun 20 06:12 hwC0D0
crw-rw----+ 1 root audio 116, 12 Jun 20 06:12 hwC1D0
crw-rw----+ 1 root audio 116, 11 Jun 20 06:12 midiC1D0
crw-rw----+ 1 root audio 116,  4 Jun 20 06:12 pcmC0D0c
crw-rw----+ 1 root audio 116,  3 Jun 21 02:08 pcmC0D0p
crw-rw----+ 1 root audio 116,  6 Jun 20 06:12 pcmC0D2c
crw-rw----+ 1 root audio 116,  5 Jun 20 06:12 pcmC0D2p
crw-rw----+ 1 root audio 116, 10 Jun 20 06:12 pcmC1D0c
crw-rw----+ 1 root audio 116,  9 Jun 20 06:12 pcmC1D0p
crw-rw----+ 1 root audio 116,  1 Jun 20 06:12 seq
crw-rw----+ 1 root audio 116, 33 Jun 20 06:12 timer
Seems reasonable.

aplay -l:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1984 Analog [AD1984 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: AD1984 Alt Analog [AD1984 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CS4281 [Cirrus Logic CS4281], device 0: CS4281 [CS4281]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
aplay -L:
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=Intel
    HDA Intel, AD1984 Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, AD1984 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
default:CARD=CS4281
    Cirrus Logic CS4281, CS4281
    Default Audio Device
sysdefault:CARD=CS4281
    Cirrus Logic CS4281, CS4281
    Default Audio Device
Does that look right? 2 default devices and 2 sysdefaults?
I'm sure this is a simple config thing. That Intel card output looks pretty fancy for something with only a mic jack and combo lineout/headphone jack. Where's all that extra stuff come from?

when I do 'aplay -D default file.wav' it plays out my pc speaker, that little thing inside the tower that usually never does anything. I guess it's good to know I even have one. So I 'rmmod pcspkr' and it still does it. Odd.

When I go 'aplay -D front file.wav' I get no sound, but this pops up:
Code:
Playing WAVE 'doorslam.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S16_LE
- S32_LE
But no sound from the speakers plugged in. Everything is un-muted and cranked up. I get a bump from the speakers on startup and shutdown when the soundcard is initialized.

Any ideas?

I'm new to alsa. I haven't done anything with any config files. The documentation has left me a bit mystified. My last box still had /dev/dsp. I've read pretty much everything about alsa on the internet over the last few days and still no closer to a solution.

Thank you in advance.
 
Old 06-21-2015, 05:15 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Post the output of:
Code:
lspci -k|grep -iA2 audio
I take it you have read this page:
https://wiki.archlinux.org/index.php...ult_sound_card
 
1 members found this post helpful.
Old 06-22-2015, 12:49 AM   #3
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
Thank you for the response:
Code:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
        Subsystem: Dell Optiplex 755
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
03:02.0 Multimedia audio controller: Cirrus Logic Crystal CS4281 PCI Audio (rev 01)
        Kernel driver in use: snd_cs4281
        Kernel modules: snd_cs4281
Yes, I had read that page. That's one of the ones that left me a bit mystified.
Quote:
"But if you need to use the microphone it is a good idea to select full-duplex PCM as default."
Huh? I know what full-duplex is, but they don't say HOW to select it. The configs are a bit grotty.

Anyway, because you posted that link, I went back and had a closer look at the page. Guess what? I had named the main config file
/etc/asoundrc
instead of
/etc/asound.conf
which is what it should be. I just now changed the name and my problem is solved. I knew it was some silly config thing.

Thank you very much.

BTW, it's not my PC Speaker that works, it's something called "Beep" in alsamixer. I can turn it down, but even muting it won't turn it off. Strange. In vanilla linux term I used "setterm --bfreq 0" and setterm --blength 0" in .bashrc to turn of the annoying beeps, and now they've proliferated into my xterms. <TAB> BEEP! <TAB><TAB> BEEP!BEEP! I guess it's some kind of fancy Dell feature. Inside the case just behind the front bezel in the line of airflow to the GPU is this cylindrical object about 1" dia with a circuit board attached. BEEP! BEEP! It's a Dell Beep Model #BB4-QBZY-A04 (C)2001! It has BLKWHTREDGRN harness going to 4pin socket on the MB labeled INT SPKR.

This is no accident. It's BEEP in stereo! Woo hoo! :LOL: This is easily the fanciest Beep I've ever owned. It reminds me of the buzz module in my van. It made unpleasant noises for the seatbelt, keys, door, domelight, and about 6 other events. I unplugged it shortly after I bought the vehicle and kept it in the console for that theoretical time when I might want to hear annoying beeps. Alas, it went missing a few years back. What ever will I do?

Thanks again. Take care. Now I'm going to play some Tchaikovsky...

... I wonder if Beep can handle Tchaikovsky? There must be a config setting for that...

Last edited by mdooligan; 06-22-2015 at 12:50 AM.
 
Old 06-22-2015, 05:47 AM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Glad you got it working

Please mark the thread [SOLVED] using the forum tools for the benefit of others who may have this problem.
 
Old 06-23-2015, 08:29 PM   #5
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
Yes indeed. Done.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 12 + ALC268 + Alsa-driver 1.0.18 = ALSA Error =No Sound (Tried erverything) morphynoman Slackware 9 12-04-2008 07:29 AM
Slackware 12 + ALC268 + Alsa-driver 1.0.18 = ALSA Error =No Sound (Tried erverything) morphynoman Linux - Hardware 2 11-12-2008 12:48 PM
problem with ALSA, no sound through alsa, oss works SB Live! 5.1 Michalxo Linux - Hardware 2 01-21-2007 05:24 AM
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration