LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   default device on sound card (https://www.linuxquestions.org/questions/linux-newbie-8/default-device-on-sound-card-4175491904/)

pete91 01-20-2014 08:51 AM

default device on sound card
 
hi,

how do i set a default devices on a soundcard

here is the result of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

i want to make device 1, the digital output, default.

Thanks.

ukiuki 01-20-2014 05:03 PM

This thread have the answers you seek!

Regards

pete91 01-21-2014 09:06 AM

i think i am getting there but still need more help!

i have got this

pete@pete-media:/proc/asound$ cat pcm
00-00: ALC889 Analog : ALC889 Analog : playback 1 : capture 1
00-01: ALC889 Digital : ALC889 Digital : playback 1
00-02: ALC889 Alt Analog : ALC889 Alt Analog : capture 2
00-03: HDMI 0 : HDMI 0 : playback 1

now what do i need to do?

ukiuki 01-21-2014 12:50 PM

What exactly are you trying to do?
Could you post the result of:
Code:

lspci -k | grep -A3 -i audio
Regards

pete91 01-22-2014 05:23 AM

here are the results

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
Subsystem: Gigabyte Technology Co., Ltd Device a002
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)

when i start up i want it to use the digital output, card 0 device 1

here is the result of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

aus9 01-22-2014 06:16 AM

as per link
show us the output to
cat /proc/asound/pcm

but it looks like it should be the same as your aplay as in hw:0,3 so

copy and paste this into a terminal logged in as a local user

Code:

echo "pcm.!default {
type hw
card 0
device3
}
" > .asoundrc

log out then log back in

if you still have issues consider installing pulseaudio which allows on-the-swapping of output devices

good luck

pete91 01-23-2014 03:42 AM

pcm output

00-00: ALC889 Analog : ALC889 Analog : playback 1 : capture 1
00-01: ALC889 Digital : ALC889 Digital : playback 1
00-02: ALC889 Alt Analog : ALC889 Alt Analog : capture 2
00-03: HDMI 0 : HDMI 0 : playback 1

aus9 01-23-2014 05:29 PM

yep looks good card 0 device 3---sorry for not reading post 3

when you create the (dot).asoundrc do a logout login or a full reboot
before playing test sound

if you don't like commands use your text editor so contents are

pcm.!default {
type hw
card 0
device3
}

save as .asoundrc (relative to your /home/pete

good luck


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