You are not logged in.

#1 2012-09-19 21:45:14

colbert
Member
Registered: 2007-12-16
Posts: 809

Onboard sound (snd_hda_intel) + soundcard only working in VLC

I have an M-Audio Revolution 7.1 card that's worked fine for a long time with my /etc/asound.conf, but now I am dual booting into Windows frequently and would like to have my onboard audio enabled as well (Revo does my surround great in linux, driver is terrible in Win7 x64 so I use onboard).

Now I have sound working in VLC, as I have chosen the output, here is the list I get: http://i.imgur.com/PI7yi.png   But I can't get any speaker-test to work, no sound in Chrome or mplayer or anything other than VLC.

Here is my /etc/asound.conf:

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1

defaults.pcm.rate_converter "samplerate_best"

# 6 channel dmix:
pcm.dmix6 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false
        ipc_perm 0666
        slave {
                pcm "hw:0,0"
                rate 48000
                format "S32_LE"
                channels 6
                period_time 0
                period_size 1024
                buffer_time 0
                buffer_size 8192
        }
     }

# upmixing: 
pcm.ch51dup {
        type route
        slave.pcm dmix6
        slave.channels 6
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 0.6
        ttable.1.3 0.6
        ttable.0.4 0.5
        ttable.1.4 0.5
        ttable.0.5 0.5
        ttable.1.5 0.5
   }

pcm.duplex {
     type asym
     playback.pcm "ch51dup" # upmix first
     capture.pcm "hw:0"
}

# change default device:
pcm.!default {
     type plug 
     slave {
        pcm "duplex"
        }
}

# for aoss
pcm.dsp "duplex"

pcm.dsp1 "duplex"

pcm.10to20 {
        type route
        slave.pcm default
        slave.channels 2
        ttable.0.0 1
        ttable.0.1 1
}

#------------------------end of working file

I do have the modules loaded and all:

 lsmod | grep '^snd' | column -t
snd_hrtimer           1700    1
snd_seq               50881   1
snd_hda_codec_analog  79856   1
snd_ice1724           116834  0
snd_ak4113            7384    1   snd_ice1724
snd_pt2258            3156    1   snd_ice1724
snd_i2c               4106    2   snd_pt2258,snd_ice1724
snd_ak4114            7685    1   snd_ice1724
snd_ice17xx_ak4xxx    2436    1   snd_ice1724
snd_ak4xxx_adda       8069    2   snd_ice1724,snd_ice17xx_ak4xxx
snd_ac97_codec        113300  1   snd_ice1724
snd_rawmidi           18479   1   snd_ice1724
snd_seq_device        5300    2   snd_seq,snd_rawmidi
snd_hda_intel         25700   2
snd_hda_codec         97432   2   snd_hda_intel,snd_hda_codec_analog
snd_hwdep             6300    1   snd_hda_codec
snd_pcm               74926   7   snd_ice1724,snd_ac97_codec,snd_hda_codec,snd_hda_intel,snd_ak4113,snd_ak4114
snd_page_alloc        7217    2   snd_pcm,snd_hda_intel
snd_timer             18966   4   snd_hrtimer,snd_pcm,snd_seq
snd                   60021   19  snd_pt2258,snd_ice1724,snd_ac97_codec,snd_hwdep,snd_timer,snd_i2c,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_ak4xxx_adda,snd_hda_intel,snd_seq_device,snd_ak4113,snd_ak4114,snd_hda_codec_analog

snd_ice1724 is my M-Audio card:

 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Revolution71 [M Audio Revolution-7.1], device 0: ICE1724 [ICE1724]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Revolution71 [M Audio Revolution-7.1], device 1: ICE1724 IEC958 [ICE1724 IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Revolution71 [M Audio Revolution-7.1], device 2: ICE1724 Surrounds [ICE1724 Surround PCM]
  Subdevices: 3/3
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2

Appreciate any help with this, as a last resort I'll disable onboard sound in BIOS but I'd really like to have both enabled and working fine if possible. Thanks for any help!

EDIT: Okay, I got my M-Audio card working with "sysdefault" as in "speaker-test -c2 -twav -Dsysdefault." Now I get front left and right speakers, this is the output being used by VLC. Nothing else yet though (no surround).

Last edited by colbert (2012-09-19 22:43:46)

Offline

Board footer

Powered by FluxBB