Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Select Default ALSA Sound Card
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 637
Location: San Diego, CA

PostPosted: Sun Aug 17, 2014 4:40 am    Post subject: [Solved] Select Default ALSA Sound Card Reply with quote

I'm sure this has been asked multiple times in the past, so if I look hard enough, I should be able to figure it out on my own. But I haven't had much luck, so I'm going to shamelessly ask for your help.

My laptop has (I think) 2 sound cards, and the default is set to HDMI instead of the tiny speakers on the laptop. Thus I'm not getting any sound. How do I set the default sound card? Here is relevant info.
Code:
# lspci | grep -i audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 9840
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)

Code:
# aplay -l
**** 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: ALC282 Analog [ALC282 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
default:CARD=Generic_1
    HD-Audio Generic, ALC282 Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC282 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    Front speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

Code:
# cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0340000 irq 73
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0344000 irq 74


When I start "alsamixer" and press F6, I see the following list. I need to select "1" to see the usual Master, Headphone, Speaker, etc, controls.
Code:
Sound Card
- (default)
0 HD-Audio Generic
1 HD-Audio Generic


I remember there used to be a command called "alsaconf", but it doesn't seem to be included in alsa-utils anymore. I'd appreciate any suggestions.
__
sol


Last edited by solamour on Sun Aug 17, 2014 5:27 am; edited 1 time in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Sun Aug 17, 2014 4:53 am    Post subject: Reply with quote

I assume this is pure alsa? If not, then this might not work.

What you need is an .asoundrc file. This should probably work.
Code:
defaults.pcm.!card 1
More detail about using this file can be found here
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 637
Location: San Diego, CA

PostPosted: Sun Aug 17, 2014 5:26 am    Post subject: Reply with quote

Works perfectly now. Thank you for your help.
__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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