All of lore.kernel.org
 help / color / mirror / Atom feed
* dmix problems with analog out (HDMI out works fine with dmix)
@ 2011-09-28 16:29 Robert Krakora
  2011-09-29  6:36 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Krakora @ 2011-09-28 16:29 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai, alsa-devel, alsa-user; +Cc: Jerry Geis

[-- Attachment #1: Type: text/plain, Size: 1333 bytes --]

Hi All,

I am using ALSA 1.0.24 with the attached asound.conf.  I am attempting to
share (mix) the analog output between Asterisk and aplay.  However, when
Asterisk is running, my application throws an error when attempting to play
a wave file via aplay.  If I stop Asterisk, aplay plays the wave file just
fine.  If I remove the asound.conf file, Asterisk and aplay are both happy
and share the analog output just find with the default ALSA dmix
implementation.  However, we need this asound.conf to work for us for other
reasons.  What is wrong with it.  I have even tried replacing dmix with
dshare and get the same bad behavior.  We are running CentOS 6.0.  As a
caveat, I am attempting to use dmix with analog audio.  If I use it with
HDMI audio, it works flawlessly (same asound.conf with tweek to specify
HDMI).  Thanks in advance for your help.

[root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
/usr/share/sounds/alsa/Front_
Center.wav"
ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed
(-22): Invalid argument

ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
aplay: main:660: audio open error: Invalid argument
[root@devkrakorar snd]#

Best Regards,

-- 
Rob Krakora
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext 212
(317)663-0808 Fax

[-- Attachment #2: asound.conf --]
[-- Type: application/octet-stream, Size: 764 bytes --]

# MessageNet Systems ALSA sound configuration file
# Allowing multiple playback and capture 

pcm.!default {
    type plug
    slave.pcm "duplex"
}
pcm.nullpcm {
    type null
}
pcm.duplex {
    type asym
    playback.pcm "dmixer"
    capture.pcm "analog_input"
}
pcm.snd_card {
     type hw
     card 0
}
pcm.dmixer {
    type dmix
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666
    slave {
        pcm snd_card
        rate 48000
        period_time 0
        period_size 1024
	buffer_time 0
        buffer_size 8192
    }
}
pcm.analog_input
{
    type dsnoop
    ipc_key 2048
    ipc_key_add_uid false
    ipc_perm 0666
    slave{
       pcm snd_card
    }
}
pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
ctl.mixer0 {
    type hw
    card 0
}

[-- Attachment #3: alsa.conf --]
[-- Type: application/octet-stream, Size: 2677 bytes --]

;
; Open Sound System Console Driver Configuration File
;
[general]
;
; Automatically answer incoming calls on the console?  Choose yes if
; for example you want to use this as an intercom.
;
autoanswer=yes
;
; Default context (is overridden with @context syntax)
;
context=local
;
; Default extension to call
;
extension=s
;
; Default language
;
;language=en
;
; Default Music on Hold class to use when this channel is placed on hold in
; the case that the music class is not set on the channel with
; Set(CHANNEL(musicclass)=whatever) in the dialplan and the peer channel
; putting this one on hold did not suggest a class to use.
;
;mohinterpret=default
;
; Silence suppression can be enabled when sound is over a certain threshold.
; The value for the threshold should probably be between 500 and 2000 or so,
; but your mileage may vary.  Use the echo test to evaluate the best setting.
;silencesuppression = yes
;silencethreshold = 1000
;
; To set which ALSA device to use, change this parameter
input_device=dummy
output_device=plug:dmixer

;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
; jbenable = yes              ; Enables the use of a jitterbuffer on the receiving side of an
                              ; ALSA channel. Defaults to "no". An enabled jitterbuffer will
                              ; be used only if the sending side can create and the receiving
                              ; side can not accept jitter. The ALSA channel can't accept jitter,
                              ; thus an enabled jitterbuffer on the receive ALSA side will always
                              ; be used if the sending side can create jitter.

; jbmaxsize = 200             ; Max length of the jitterbuffer in milliseconds.

; jbresyncthreshold = 1000    ; Jump in the frame timestamps over which the jitterbuffer is
                              ; resynchronized. Useful to improve the quality of the voice, with
                              ; big jumps in/broken timestamps, usually sent from exotic devices
                              ; and programs. Defaults to 1000.

; jbimpl = fixed              ; Jitterbuffer implementation, used on the receiving side of a SIP
                              ; channel. Two implementations are currently available - "fixed"
                              ; (with size always equals to jbmax-size) and "adaptive" (with
                              ; variable size, actually the new jb of IAX2). Defaults to fixed.

; jblog = no                  ; Enables jitterbuffer frame logging. Defaults to "no".
;-----------------------------------------------------------------------------------


[-- Attachment #4: alsa-info.txt.PwOfopSqfX --]
[-- Type: application/octet-stream, Size: 39012 bytes --]

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.60
!!################################

!!Script ran on: Fri Sep 23 17:51:16 UTC 2011


!!Linux Distribution
!!------------------

CentOS Linux release 6.0 (Final) CentOS Linux release 6.0 (Final) CentOS Linux release 6.0 (Final) CentOS Linux release 6.0 (Final)


!!DMI Information
!!---------------

Manufacturer:      System manufacturer
Product Name:      System Product Name
Product Version:   System Version


!!Kernel Information
!!------------------

Kernel release:    2.6.32-71.29.1.el6.x86_64
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         x86_64
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     1.0.24
Library version:    1.0.24.1
Utilities version:  1.0.24.2


!!Loaded ALSA modules
!!-------------------

snd_hda_intel
snd_usb_audio


!!Sound Servers on this system
!!----------------------------

aRts:
      Installed - Yes (/usr/bin/artsd)
      Running - No


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfcf78000 irq 22
 1 [U0x46d0x828    ]: USB-Audio - USB Device 0x46d:0x828
                      USB Device 0x46d:0x828 at usb-0000:00:04.1-5, high speed


!!PCI Soundcards installed in the system
!!--------------------------------------

00:07.0 Audio device: nVidia Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!--------------------------------------------------------

00:07.0 0403: 10de:0774 (rev a1)
	Subsystem: 1043:8345


!!Loaded sound module options
!!--------------------------

!!Module: snd_hda_intel
	bdl_pos_adj : 32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	beep_mode : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	enable_msi : -1
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	power_save : 0
	power_save_controller : Y
	probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	single_cmd : N

!!Module: snd_usb_audio
	async_unlink : Y
	device_setup : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	ignore_ctl_error : N
	index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	nrpacks : 8
	pid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	vid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1


!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: VIA VT1708B 8-Ch
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x1106e721
Subsystem Id: 0x10438345
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x10 [Audio Output] wcaps 0x411: Stereo
  Device: name="VT1708B Analog", type="Audio", device=0
  Converter: stream=5, channel=0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=5, channel=0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
  Device: name="VT1708B Digital", type="SPDIF", device=1
  Converter: stream=5, channel=0
  Digital: Enabled
  Digital category: 0x0
  PCM:
    rates [0x1e0]: 44100 48000 88200 96000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x13 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="VT1708B Analog", type="Audio", device=0
  Amp-In caps: ofs=0x00, nsteps=0x14, stepsize=0x06, mute=1
  Amp-In vals:  [0x06 0x06]
  Converter: stream=1, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x17
Node 0x14 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x14, stepsize=0x06, mute=1
  Amp-In vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x1e
Node 0x15 [Audio Input] wcaps 0x100711: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x1f0]: 32000 44100 48000 88200 96000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x21
Node 0x16 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Control: name="Master Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Master Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Rear Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Rear Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Front Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Front Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Line Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="CD Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="CD Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x06, mute=1
  Amp-In vals:  [0x1d 0x1d] [0x0b 0x0b] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 6
     0x10 0x1f 0x1a 0x1b 0x1e 0x25
Node 0x17 [Audio Selector] wcaps 0x300501: Stereo
  Control: name="Input Source", index=0, device=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 5
     0x16 0x1f 0x1a 0x1b 0x1e*
Node 0x18 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Control: name="Surround Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Surround Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x1b 0x1b]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x11
Node 0x19 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x01011012: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0x2
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D3, actual=D3
  Connection: 1
     0x18
Node 0x1a [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Smart 5.1", index=0, device=0
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x01a19036: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x6
  Pin-ctls: 0x41: OUT VREF_50
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x26
Node 0x1b [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Independent HP", index=0, device=0
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x0181303e: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x3, Sequence = 0xe
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x1c [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x0f 0x0f]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x16
Node 0x1d [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Independent HP", index=0, device=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x0f 0x0f]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0221401f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=05, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D3, actual=D3
  Connection: 2
     0x16* 0x25
Node 0x1e [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x02a19038: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x8
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x27
Node 0x1f [Pin Complex] wcaps 0x400401: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x90370137: [Fixed] CD at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x7
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x12
Node 0x21 [Pin Complex] wcaps 0x400601: Stereo Digital
  Pincap 0x00010030: IN OUT EAPD
  EAPD 0x2: EAPD
  Pin Default 0x47c421f0: [N/A] SPDIF In at Ext Rear Panel
    Conn = RCA, Color = Grey
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x22 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x01016011: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Orange
    DefAssociation = 0x1, Sequence = 0x1
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D3, actual=D3
  Connection: 1
     0x26
Node 0x23 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x01012014: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Grey
    DefAssociation = 0x1, Sequence = 0x4
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D3, actual=D3
  Connection: 1
     0x27
Node 0x24 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=5, channel=0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x25 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=5, channel=0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x26 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Control: name="Center Playback Volume", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Volume", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  Control: name="Center Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Switch", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x1b 0x1b]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x24
Node 0x27 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Control: name="Side Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Side Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x00 0x00]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x25
Codec: Nvidia MCP77/78 HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x10de0002
Subsystem Id: 0x10de0101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x04 [Audio Output] wcaps 0x211: Stereo Digital
  Control: name="IEC958 Playback Con Mask", index=1, device=0
  Control: name="IEC958 Playback Pro Mask", index=1, device=0
  Control: name="IEC958 Playback Default", index=1, device=0
  Control: name="IEC958 Playback Switch", index=1, device=0
  Device: name="HDMI 0", type="HDMI", device=3
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x05 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x18560110: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x04
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x07 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560121: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x1
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x08 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x09 [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560122: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x2
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x08
Node 0x0a [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x0b [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560123: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x3
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0a
Node 0x0c [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0xc0]: 48000 88200
    bits [0xf]: 8 16 20 24
    formats [0x1]: PCM
Node 0x0d [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x58560124: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x4
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c
--endcollapse--


!!USB Mixer information
!!---------------------------
--startcollapse--

USB Mixer: usb_id=0x046d0828, ctrlif=2, ctlerr=0
Card: USB Device 0x46d:0x828 at usb-0000:00:04.1-5, high speed
  Unit: 5
    Control: name="Mic Capture Volume", index=0
    Info: id=5, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=-5120, max=4352, dBmin=-2000, dBmax=1700
  Unit: 5
    Control: name="Mic Capture Switch", index=0
    Info: id=5, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw----+ 1 root audio 116,  8 Sep 23 11:16 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 10 Sep 23 11:16 /dev/snd/controlC1
crw-rw----+ 1 root audio 116,  7 Sep 23 11:16 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  6 Sep 23 11:16 /dev/snd/hwC0D3
crw-rw----+ 1 root audio 116,  5 Sep 23 11:36 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116,  4 Sep 23 13:46 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116,  3 Sep 23 11:16 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116,  2 Sep 23 11:16 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  9 Sep 23 11:16 /dev/snd/pcmC1D0c
crw-rw----+ 1 root audio 116,  1 Sep 23 11:16 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Sep 23 11:16 /dev/snd/timer

/dev/snd/by-id:
total 0
drwxr-xr-x 2 root root  60 Sep 23 11:16 .
drwxr-xr-x 4 root root 300 Sep 23 11:16 ..
lrwxrwxrwx 1 root root  12 Sep 23 11:16 usb-046d_0828-02 -> ../controlC1

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  80 Sep 23 11:16 .
drwxr-xr-x 4 root root 300 Sep 23 11:16 ..
lrwxrwxrwx 1 root root  12 Sep 23 11:16 pci-0000:00:04.1-usb-0:5:1.2 -> ../controlC1
lrwxrwxrwx 1 root root  12 Sep 23 11:16 pci-0000:00:07.0 -> ../controlC0


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

# MessageNet Systems ALSA sound configuration file
# Allowing multiple playback and capture 

pcm.!default {
    type plug
    slave.pcm "duplex"
}
pcm.nullpcm {
    type null
}
pcm.duplex {
    type asym
    playback.pcm "dmixer"
    capture.pcm "analog_input"
}
pcm.snd_card {
     type hw
     card 0
}
pcm.dmixer {
    type dmix
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666
    slave {
        pcm snd_card
        rate 48000
        period_time 0
        period_size 1024
	buffer_time 0
        buffer_size 8192
    }
}
pcm.analog_input
{
    type dsnoop
    ipc_key 2048
    ipc_key_add_uid false
    ipc_perm 0666
    slave{
       pcm snd_card
    }
}
pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
ctl.mixer0 {
    type hw
    card 0
}


!!Aplay/Arecord output
!!------------

APLAY

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

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 1: U0x46d0x828 [USB Device 0x46d:0x828], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [NVidia]

Card hw:0 'NVidia'/'HDA NVidia at 0xfcf78000 irq 22'
  Mixer name	: 'Nvidia MCP77/78 HDMI'
  Components	: 'HDA:1106e721,10438345,00100100 HDA:10de0002,10de0101,00100000'
  Controls      : 40
  Simple ctrls  : 21
Simple mixer control 'Master Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 29 [94%] [10.50dB] [on]
  Front Right: Playback 29 [94%] [10.50dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 27
  Mono:
  Front Left: Playback 15 [56%] [-21.00dB] [on]
  Front Right: Playback 15 [56%] [-21.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 155 [61%] [-20.00dB]
  Front Right: Playback 155 [61%] [-20.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 27
  Mono:
  Front Left: Playback 15 [56%] [-21.00dB] [on]
  Front Right: Playback 15 [56%] [-21.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-40.25dB] [off]
  Front Right: Playback 0 [0%] [-40.25dB] [off]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 27
  Mono:
  Front Left: Playback 27 [100%] [0.00dB] [on]
  Front Right: Playback 27 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 27
  Mono: Playback 27 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 27
  Mono: Playback 27 [100%] [0.00dB] [on]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 27
  Mono:
  Front Left: Playback 27 [100%] [0.00dB] [on]
  Front Right: Playback 27 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-40.25dB] [off]
  Front Right: Playback 0 [0%] [-40.25dB] [off]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 11 [35%] [-21.00dB] [on]
  Front Right: Playback 11 [35%] [-21.00dB] [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 20
  Front Left: Capture 6 [30%] [10.50dB] [on]
  Front Right: Capture 6 [30%] [10.50dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 20
  Front Left: Capture 0 [0%] [0.00dB] [on]
  Front Right: Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Digital',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Independent HP',0
  Capabilities: enum
  Items: 'OFF' 'ON'
  Item0: 'OFF'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Stereo Mixer' 'Rear Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Front Mic'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-40.25dB] [off]
  Front Right: Playback 0 [0%] [-40.25dB] [off]
Simple mixer control 'Smart 5.1',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]

!!-------Mixer controls for card 1 [U0x46d0x828]

Card hw:1 'U0x46d0x828'/'USB Device 0x46d:0x828 at usb-0000:00:04.1-5, high speed'
  Mixer name	: 'USB Mixer'
  Components	: 'USB046d:0828'
  Controls      : 2
  Simple ctrls  : 1
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
  Capture channels: Mono
  Limits: Capture 0 - 74
  Mono: Capture 40 [54%] [0.00dB] [on]


!!Alsactl output
!!-------------

--startcollapse--
state.NVidia {
	control.1 {
		iface MIXER
		name 'Master Front Playback Volume'
		value.0 29
		value.1 29
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 1050
			dbvalue.1 1050
		}
	}
	control.2 {
		iface MIXER
		name 'Master Front Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Front Playback Volume'
		value.0 15
		value.1 15
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 -2100
			dbvalue.1 -2100
		}
	}
	control.4 {
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Surround Playback Volume'
		value.0 27
		value.1 27
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.6 {
		iface MIXER
		name 'Surround Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.7 {
		iface MIXER
		name 'Center Playback Volume'
		value 27
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 0
		}
	}
	control.8 {
		iface MIXER
		name 'LFE Playback Volume'
		value 27
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 0
		}
	}
	control.9 {
		iface MIXER
		name 'Center Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.10 {
		iface MIXER
		name 'LFE Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.11 {
		iface MIXER
		name 'Side Playback Volume'
		value.0 27
		value.1 27
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.12 {
		iface MIXER
		name 'Side Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.13 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 15
		value.1 15
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 -2100
			dbvalue.1 -2100
		}
	}
	control.14 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.15 {
		iface MIXER
		name 'Rear Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 -4025
			dbvalue.1 -4025
		}
	}
	control.16 {
		iface MIXER
		name 'Rear Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.17 {
		iface MIXER
		name 'Front Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 -4025
			dbvalue.1 -4025
		}
	}
	control.18 {
		iface MIXER
		name 'Front Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.19 {
		iface MIXER
		name 'Line Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 -4025
			dbvalue.1 -4025
		}
	}
	control.20 {
		iface MIXER
		name 'Line Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.21 {
		iface MIXER
		name 'CD Playback Volume'
		value.0 11
		value.1 11
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 -2100
			dbvalue.1 -2100
		}
	}
	control.22 {
		iface MIXER
		name 'CD Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.23 {
		iface MIXER
		name 'Independent HP'
		value OFF
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 OFF
			item.1 ON
		}
	}
	control.24 {
		iface MIXER
		name 'Smart 5.1'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.25 {
		iface MIXER
		name 'Capture Volume'
		value.0 6
		value.1 6
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 20'
			dbmin 0
			dbmax 3500
			dbvalue.0 1050
			dbvalue.1 1050
		}
	}
	control.26 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.27 {
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 20'
			dbmin 0
			dbmax 3500
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.28 {
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.29 {
		iface MIXER
		name 'Input Source'
		value 'Front Mic'
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 'Stereo Mixer'
			item.1 'Rear Mic'
			item.2 'Front Mic'
			item.3 Line
			item.4 CD
		}
	}
	control.30 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.31 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.32 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.33 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.34 {
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.35 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		index 1
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.36 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		index 1
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.37 {
		iface MIXER
		name 'IEC958 Playback Default'
		index 1
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.38 {
		iface MIXER
		name 'IEC958 Playback Switch'
		index 1
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.39 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 155
		value.1 155
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 -2000
			dbvalue.1 -2000
		}
	}
	control.40 {
		iface MIXER
		name 'Digital Capture Volume'
		value.0 60
		value.1 60
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 120'
			tlv '0000000100000008fffff44800000032'
			dbmin -3000
			dbmax 3000
			dbvalue.0 0
			dbvalue.1 0
		}
	}
}
state.U0x46d0x828 {
	control.1 {
		iface MIXER
		name 'Mic Capture Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.2 {
		iface MIXER
		name 'Mic Capture Volume'
		value 40
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 74'
			dbmin -2000
			dbmax 1700
			dbvalue.0 0
		}
	}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
fuse
ebtable_nat
ebtables
xt_CHECKSUM
iptable_mangle
ipt_MASQUERADE
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
ipt_REJECT
iptable_filter
ip_tables
bridge
stp
llc
autofs4
wctc4xxp
dahdi_transcode
wcb4xxp
wctdm
wcfxo
wctdm24xxp
wcte11xp
wct1xxp
wcte12xp
dahdi_voicebus
wct4xxp
dahdi
crc_ccitt
nfs
lockd
fscache
nfs_acl
auth_rpcgss
sunrpc
cpufreq_ondemand
powernow_k8
freq_table
ip6t_REJECT
nf_conntrack_ipv6
xt_state
nf_conntrack
ip6table_filter
ip6_tables
ipv6
dm_mirror
dm_region_hash
dm_log
kvm_amd
kvm
uinput
asus_atk0110
hwmon
wmi
nvidia
sg
snd_usb_audio
snd_usbmidi_lib
snd_rawmidi
uvcvideo
videodev
media
v4l2_compat_ioctl32
serio_raw
edac_core
edac_mce_amd
shpchp
forcedeth
snd_hda_codec_hdmi
snd_hda_codec_via
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_seq
snd_seq_device
snd_pcm
snd_timer
snd
soundcore
snd_page_alloc
i2c_nforce2
i2c_core
ext4
mbcache
jbd2
raid1
video
output
sr_mod
cdrom
sd_mod
crc_t10dif
pata_amd
ata_generic
pata_acpi
ahci
dm_mod


!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x19 0x01011012
0x1a 0x01a19036
0x1b 0x0181303e
0x1c 0x01014010
0x1d 0x0221401f
0x1e 0x02a19038
0x1f 0x90370137
0x20 0x185600f0
0x21 0x47c421f0
0x22 0x01016011
0x23 0x01012014

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D3/init_pin_configs:
0x05 0x18560110
0x07 0x58560121
0x09 0x58560122
0x0b 0x58560123
0x0d 0x58560124

/sys/class/sound/hwC0D3/driver_pin_configs:

/sys/class/sound/hwC0D3/user_pin_configs:

/sys/class/sound/hwC0D3/init_verbs:


!!ALSA/HDA dmesg
!!------------------

nForce2_smbus 0000:00:01.1: Error probing SMB2.
HDA Intel 0000:00:07.0: power state changed by ACPI to D0
HDA Intel 0000:00:07.0: power state changed by ACPI to D0
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 22
HDA Intel 0000:00:07.0: PCI INT A -> Link[LAZA] -> GSI 22 (level, low) -> IRQ 22
hda_intel: Disable MSI for Nvidia chipset
HDA Intel 0000:00:07.0: setting latency timer to 64
forcedeth: Reverse Engineered nForce ethernet driver. Version 0.64.



[-- Attachment #5: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-28 16:29 dmix problems with analog out (HDMI out works fine with dmix) Robert Krakora
@ 2011-09-29  6:36 ` Takashi Iwai
  2011-09-29 12:22   ` Robert Krakora
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2011-09-29  6:36 UTC (permalink / raw)
  To: Robert Krakora; +Cc: alsa-user, Jerry Geis, alsa-devel

At Wed, 28 Sep 2011 12:29:05 -0400,
Robert Krakora wrote:
> 
> Hi All,
> 
> I am using ALSA 1.0.24 with the attached asound.conf.  I am attempting to
> share (mix) the analog output between Asterisk and aplay.  However, when
> Asterisk is running, my application throws an error when attempting to play
> a wave file via aplay.  If I stop Asterisk, aplay plays the wave file just
> fine.  If I remove the asound.conf file, Asterisk and aplay are both happy
> and share the analog output just find with the default ALSA dmix
> implementation.  However, we need this asound.conf to work for us for other
> reasons.  What is wrong with it.  I have even tried replacing dmix with
> dshare and get the same bad behavior.  We are running CentOS 6.0.  As a
> caveat, I am attempting to use dmix with analog audio.  If I use it with
> HDMI audio, it works flawlessly (same asound.conf with tweek to specify
> HDMI).  Thanks in advance for your help.
> 
> [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
> /usr/share/sounds/alsa/Front_
> Center.wav"
> ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed
> (-22): Invalid argument
> 
> ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
> aplay: main:660: audio open error: Invalid argument
> [root@devkrakorar snd]#

Looks like the open of HD-audio stream failed by some reason.
When you open via aplay, is the corresponding stream already opened
by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.

Also, try the latest alsa-driver snapshot in
   ftp://ftp.suse.com/pub/people/tiwai/snapshot/


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-29  6:36 ` Takashi Iwai
@ 2011-09-29 12:22   ` Robert Krakora
  2011-09-29 12:25     ` Robert Krakora
  2011-09-29 12:32     ` Takashi Iwai
  0 siblings, 2 replies; 8+ messages in thread
From: Robert Krakora @ 2011-09-29 12:22 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, Jerry Geis, alsa-devel

On Thu, Sep 29, 2011 at 2:36 AM, Takashi Iwai <tiwai@suse.de> wrote:

> At Wed, 28 Sep 2011 12:29:05 -0400,
> Robert Krakora wrote:
> >
> > Hi All,
> >
> > I am using ALSA 1.0.24 with the attached asound.conf.  I am attempting to
> > share (mix) the analog output between Asterisk and aplay.  However, when
> > Asterisk is running, my application throws an error when attempting to
> play
> > a wave file via aplay.  If I stop Asterisk, aplay plays the wave file
> just
> > fine.  If I remove the asound.conf file, Asterisk and aplay are both
> happy
> > and share the analog output just find with the default ALSA dmix
> > implementation.  However, we need this asound.conf to work for us for
> other
> > reasons.  What is wrong with it.  I have even tried replacing dmix with
> > dshare and get the same bad behavior.  We are running CentOS 6.0.  As a
> > caveat, I am attempting to use dmix with analog audio.  If I use it with
> > HDMI audio, it works flawlessly (same asound.conf with tweek to specify
> > HDMI).  Thanks in advance for your help.
> >
> > [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
> > /usr/share/sounds/alsa/Front_
> > Center.wav"
> > ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed
> > (-22): Invalid argument
> >
> > ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
> > aplay: main:660: audio open error: Invalid argument
> > [root@devkrakorar snd]#
>
> Looks like the open of HD-audio stream failed by some reason.
> When you open via aplay, is the corresponding stream already opened
> by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.
>
> Also, try the latest alsa-driver snapshot in
>   ftp://ftp.suse.com/pub/people/tiwai/snapshot/
>
>
> Takashi
>

Hi Takashi,

Thanks for the quick response.  Yes, the HD-audio stream open fails because
Asterisk has previously opened it.  aplay cannot open it (error -22).
However, dmix should remedy the situation.  It should provide software
mixing for Asterisk and aplay so that the output of both is mixed and output
to the analog audio channel.  I will try your latest drivers.

Best Regards,

-- 
Rob Krakora
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext 212
(317)663-0808 Fax

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-29 12:22   ` Robert Krakora
@ 2011-09-29 12:25     ` Robert Krakora
  2011-09-29 12:32     ` Takashi Iwai
  1 sibling, 0 replies; 8+ messages in thread
From: Robert Krakora @ 2011-09-29 12:25 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, Jerry Geis, alsa-devel

On Thu, Sep 29, 2011 at 8:22 AM, Robert Krakora <
rob.krakora@messagenetsystems.com> wrote:

> On Thu, Sep 29, 2011 at 2:36 AM, Takashi Iwai <tiwai@suse.de> wrote:
>
>> At Wed, 28 Sep 2011 12:29:05 -0400,
>> Robert Krakora wrote:
>> >
>> > Hi All,
>> >
>> > I am using ALSA 1.0.24 with the attached asound.conf.  I am attempting
>> to
>> > share (mix) the analog output between Asterisk and aplay.  However, when
>> > Asterisk is running, my application throws an error when attempting to
>> play
>> > a wave file via aplay.  If I stop Asterisk, aplay plays the wave file
>> just
>> > fine.  If I remove the asound.conf file, Asterisk and aplay are both
>> happy
>> > and share the analog output just find with the default ALSA dmix
>> > implementation.  However, we need this asound.conf to work for us for
>> other
>> > reasons.  What is wrong with it.  I have even tried replacing dmix with
>> > dshare and get the same bad behavior.  We are running CentOS 6.0.  As a
>> > caveat, I am attempting to use dmix with analog audio.  If I use it with
>> > HDMI audio, it works flawlessly (same asound.conf with tweek to specify
>> > HDMI).  Thanks in advance for your help.
>> >
>> > [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
>> > /usr/share/sounds/alsa/Front_
>> > Center.wav"
>> > ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed
>> > (-22): Invalid argument
>> >
>> > ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
>> > aplay: main:660: audio open error: Invalid argument
>> > [root@devkrakorar snd]#
>>
>> Looks like the open of HD-audio stream failed by some reason.
>> When you open via aplay, is the corresponding stream already opened
>> by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.
>>
>> Also, try the latest alsa-driver snapshot in
>>   ftp://ftp.suse.com/pub/people/tiwai/snapshot/
>>
>>
>> Takashi
>>
>
> Hi Takashi,
>
> Thanks for the quick response.  Yes, the HD-audio stream open fails because
> Asterisk has previously opened it.  aplay cannot open it (error -22).
> However, dmix should remedy the situation.  It should provide software
> mixing for Asterisk and aplay so that the output of both is mixed and output
> to the analog audio channel.  I will try your latest drivers.
>
>
> Best Regards,
>
> --
> Rob Krakora
> MessageNet Systems
> 101 East Carmel Dr. Suite 105
> Carmel, IN 46032
> (317)566-1677 Ext 212
> (317)663-0808 Fax
>

This same scenario works flawlessly with HDMI channel.  Asterisk and aplay
out put is mixed and send to the HDMI channel.

-- 
Rob Krakora
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext 212
(317)663-0808 Fax

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-29 12:22   ` Robert Krakora
  2011-09-29 12:25     ` Robert Krakora
@ 2011-09-29 12:32     ` Takashi Iwai
  2011-09-29 12:43       ` Robert Krakora
  1 sibling, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2011-09-29 12:32 UTC (permalink / raw)
  To: Robert Krakora; +Cc: alsa-user, Jerry Geis, alsa-devel

At Thu, 29 Sep 2011 08:22:39 -0400,
Robert Krakora wrote:
> 
> On Thu, Sep 29, 2011 at 2:36 AM, Takashi Iwai <tiwai@suse.de> wrote:
> 
> > At Wed, 28 Sep 2011 12:29:05 -0400,
> > Robert Krakora wrote:
> > >
> > > Hi All,
> > >
> > > I am using ALSA 1.0.24 with the attached asound.conf.  I am attempting to
> > > share (mix) the analog output between Asterisk and aplay.  However, when
> > > Asterisk is running, my application throws an error when attempting to
> > play
> > > a wave file via aplay.  If I stop Asterisk, aplay plays the wave file
> > just
> > > fine.  If I remove the asound.conf file, Asterisk and aplay are both
> > happy
> > > and share the analog output just find with the default ALSA dmix
> > > implementation.  However, we need this asound.conf to work for us for
> > other
> > > reasons.  What is wrong with it.  I have even tried replacing dmix with
> > > dshare and get the same bad behavior.  We are running CentOS 6.0.  As a
> > > caveat, I am attempting to use dmix with analog audio.  If I use it with
> > > HDMI audio, it works flawlessly (same asound.conf with tweek to specify
> > > HDMI).  Thanks in advance for your help.
> > >
> > > [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
> > > /usr/share/sounds/alsa/Front_
> > > Center.wav"
> > > ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed
> > > (-22): Invalid argument
> > >
> > > ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
> > > aplay: main:660: audio open error: Invalid argument
> > > [root@devkrakorar snd]#
> >
> > Looks like the open of HD-audio stream failed by some reason.
> > When you open via aplay, is the corresponding stream already opened
> > by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.
> >
> > Also, try the latest alsa-driver snapshot in
> >   ftp://ftp.suse.com/pub/people/tiwai/snapshot/
> >
> >
> > Takashi
> >
> 
> Hi Takashi,
> 
> Thanks for the quick response.  Yes, the HD-audio stream open fails because
> Asterisk has previously opened it.  aplay cannot open it (error -22).

-22 is -EINVAL, and it's not -EBUSY or -EAGAIN.  If a blocking open is
the problem, it should have been -EAGAIN or such.
That is, usually something conflicts with the opened stream.


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-29 12:32     ` Takashi Iwai
@ 2011-09-29 12:43       ` Robert Krakora
  2011-09-29 12:44         ` Takashi Iwai
  2011-09-29 12:45         ` Robert Krakora
  0 siblings, 2 replies; 8+ messages in thread
From: Robert Krakora @ 2011-09-29 12:43 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, Jerry Geis, alsa-devel

On Thu, Sep 29, 2011 at 8:32 AM, Takashi Iwai <tiwai@suse.de> wrote:

> At Thu, 29 Sep 2011 08:22:39 -0400,
> Robert Krakora wrote:
> >
> > On Thu, Sep 29, 2011 at 2:36 AM, Takashi Iwai <tiwai@suse.de> wrote:
> >
> > > At Wed, 28 Sep 2011 12:29:05 -0400,
> > > Robert Krakora wrote:
> > > >
> > > > Hi All,
> > > >
> > > > I am using ALSA 1.0.24 with the attached asound.conf.  I am
> attempting to
> > > > share (mix) the analog output between Asterisk and aplay.  However,
> when
> > > > Asterisk is running, my application throws an error when attempting
> to
> > > play
> > > > a wave file via aplay.  If I stop Asterisk, aplay plays the wave file
> > > just
> > > > fine.  If I remove the asound.conf file, Asterisk and aplay are both
> > > happy
> > > > and share the analog output just find with the default ALSA dmix
> > > > implementation.  However, we need this asound.conf to work for us for
> > > other
> > > > reasons.  What is wrong with it.  I have even tried replacing dmix
> with
> > > > dshare and get the same bad behavior.  We are running CentOS 6.0.  As
> a
> > > > caveat, I am attempting to use dmix with analog audio.  If I use it
> with
> > > > HDMI audio, it works flawlessly (same asound.conf with tweek to
> specify
> > > > HDMI).  Thanks in advance for your help.
> > > >
> > > > [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
> > > > /usr/share/sounds/alsa/Front_
> > > > Center.wav"
> > > > ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p'
> failed
> > > > (-22): Invalid argument
> > > >
> > > > ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
> > > > aplay: main:660: audio open error: Invalid argument
> > > > [root@devkrakorar snd]#
> > >
> > > Looks like the open of HD-audio stream failed by some reason.
> > > When you open via aplay, is the corresponding stream already opened
> > > by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.
> > >
> > > Also, try the latest alsa-driver snapshot in
> > >   ftp://ftp.suse.com/pub/people/tiwai/snapshot/
> > >
> > >
> > > Takashi
> > >
> >
> > Hi Takashi,
> >
> > Thanks for the quick response.  Yes, the HD-audio stream open fails
> because
> > Asterisk has previously opened it.  aplay cannot open it (error -22).
>
> -22 is -EINVAL, and it's not -EBUSY or -EAGAIN.  If a blocking open is
> the problem, it should have been -EAGAIN or such.
> That is, usually something conflicts with the opened stream.
>
>
> Takashi
>

Hi Takashi,

You are the man!  Your latest drivers have eliminated this issue!  What did
you have to change to fix this?

Best Regards,

-- 
Rob Krakora
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext 212
(317)663-0808 Fax

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-29 12:43       ` Robert Krakora
@ 2011-09-29 12:44         ` Takashi Iwai
  2011-09-29 12:45         ` Robert Krakora
  1 sibling, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2011-09-29 12:44 UTC (permalink / raw)
  To: Robert Krakora; +Cc: alsa-user, Jerry Geis, alsa-devel

At Thu, 29 Sep 2011 08:43:32 -0400,
Robert Krakora wrote:
> 
> On Thu, Sep 29, 2011 at 8:32 AM, Takashi Iwai <tiwai@suse.de> wrote:
> 
> > At Thu, 29 Sep 2011 08:22:39 -0400,
> > Robert Krakora wrote:
> > >
> > > On Thu, Sep 29, 2011 at 2:36 AM, Takashi Iwai <tiwai@suse.de> wrote:
> > >
> > > > At Wed, 28 Sep 2011 12:29:05 -0400,
> > > > Robert Krakora wrote:
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I am using ALSA 1.0.24 with the attached asound.conf.  I am
> > attempting to
> > > > > share (mix) the analog output between Asterisk and aplay.  However,
> > when
> > > > > Asterisk is running, my application throws an error when attempting
> > to
> > > > play
> > > > > a wave file via aplay.  If I stop Asterisk, aplay plays the wave file
> > > > just
> > > > > fine.  If I remove the asound.conf file, Asterisk and aplay are both
> > > > happy
> > > > > and share the analog output just find with the default ALSA dmix
> > > > > implementation.  However, we need this asound.conf to work for us for
> > > > other
> > > > > reasons.  What is wrong with it.  I have even tried replacing dmix
> > with
> > > > > dshare and get the same bad behavior.  We are running CentOS 6.0.  As
> > a
> > > > > caveat, I am attempting to use dmix with analog audio.  If I use it
> > with
> > > > > HDMI audio, it works flawlessly (same asound.conf with tweek to
> > specify
> > > > > HDMI).  Thanks in advance for your help.
> > > > >
> > > > > [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
> > > > > /usr/share/sounds/alsa/Front_
> > > > > Center.wav"
> > > > > ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p'
> > failed
> > > > > (-22): Invalid argument
> > > > >
> > > > > ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
> > > > > aplay: main:660: audio open error: Invalid argument
> > > > > [root@devkrakorar snd]#
> > > >
> > > > Looks like the open of HD-audio stream failed by some reason.
> > > > When you open via aplay, is the corresponding stream already opened
> > > > by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.
> > > >
> > > > Also, try the latest alsa-driver snapshot in
> > > >   ftp://ftp.suse.com/pub/people/tiwai/snapshot/
> > > >
> > > >
> > > > Takashi
> > > >
> > >
> > > Hi Takashi,
> > >
> > > Thanks for the quick response.  Yes, the HD-audio stream open fails
> > because
> > > Asterisk has previously opened it.  aplay cannot open it (error -22).
> >
> > -22 is -EINVAL, and it's not -EBUSY or -EAGAIN.  If a blocking open is
> > the problem, it should have been -EAGAIN or such.
> > That is, usually something conflicts with the opened stream.
> >
> >
> > Takashi
> >
> 
> Hi Takashi,
> 
> You are the man!  Your latest drivers have eliminated this issue!  What did
> you have to change to fix this?

Honestly I have no idea ;)
Possibly it's related with the recent rewrite of VIA driver.


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dmix problems with analog out (HDMI out works fine with dmix)
  2011-09-29 12:43       ` Robert Krakora
  2011-09-29 12:44         ` Takashi Iwai
@ 2011-09-29 12:45         ` Robert Krakora
  1 sibling, 0 replies; 8+ messages in thread
From: Robert Krakora @ 2011-09-29 12:45 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, Jerry Geis, alsa-devel

On Thu, Sep 29, 2011 at 8:43 AM, Robert Krakora <
rob.krakora@messagenetsystems.com> wrote:

>
>
> On Thu, Sep 29, 2011 at 8:32 AM, Takashi Iwai <tiwai@suse.de> wrote:
>
>> At Thu, 29 Sep 2011 08:22:39 -0400,
>> Robert Krakora wrote:
>> >
>> > On Thu, Sep 29, 2011 at 2:36 AM, Takashi Iwai <tiwai@suse.de> wrote:
>> >
>> > > At Wed, 28 Sep 2011 12:29:05 -0400,
>> > > Robert Krakora wrote:
>> > > >
>> > > > Hi All,
>> > > >
>> > > > I am using ALSA 1.0.24 with the attached asound.conf.  I am
>> attempting to
>> > > > share (mix) the analog output between Asterisk and aplay.  However,
>> when
>> > > > Asterisk is running, my application throws an error when attempting
>> to
>> > > play
>> > > > a wave file via aplay.  If I stop Asterisk, aplay plays the wave
>> file
>> > > just
>> > > > fine.  If I remove the asound.conf file, Asterisk and aplay are both
>> > > happy
>> > > > and share the analog output just find with the default ALSA dmix
>> > > > implementation.  However, we need this asound.conf to work for us
>> for
>> > > other
>> > > > reasons.  What is wrong with it.  I have even tried replacing dmix
>> with
>> > > > dshare and get the same bad behavior.  We are running CentOS 6.0.
>>  As a
>> > > > caveat, I am attempting to use dmix with analog audio.  If I use it
>> with
>> > > > HDMI audio, it works flawlessly (same asound.conf with tweek to
>> specify
>> > > > HDMI).  Thanks in advance for your help.
>> > > >
>> > > > [root@devkrakorar snd]# su silentm -c "aplay -Dplug:dmixer
>> > > > /usr/share/sounds/alsa/Front_
>> > > > Center.wav"
>> > > > ALSA lib pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p'
>> failed
>> > > > (-22): Invalid argument
>> > > >
>> > > > ALSA lib pcm_dmix.c:1068:(snd_pcm_dmix_open) unable to open slave
>> > > > aplay: main:660: audio open error: Invalid argument
>> > > > [root@devkrakorar snd]#
>> > >
>> > > Looks like the open of HD-audio stream failed by some reason.
>> > > When you open via aplay, is the corresponding stream already opened
>> > > by another?  Take a look at /proc/asound/card0/pcm0p/sub0/* files.
>> > >
>> > > Also, try the latest alsa-driver snapshot in
>> > >   ftp://ftp.suse.com/pub/people/tiwai/snapshot/
>> > >
>> > >
>> > > Takashi
>> > >
>> >
>> > Hi Takashi,
>> >
>> > Thanks for the quick response.  Yes, the HD-audio stream open fails
>> because
>> > Asterisk has previously opened it.  aplay cannot open it (error -22).
>>
>> -22 is -EINVAL, and it's not -EBUSY or -EAGAIN.  If a blocking open is
>> the problem, it should have been -EAGAIN or such.
>> That is, usually something conflicts with the opened stream.
>>
>>
>> Takashi
>>
>
> Hi Takashi,
>
> You are the man!  Your latest drivers have eliminated this issue!  What did
> you have to change to fix this?
>
>
> Best Regards,
>
> --
> Rob Krakora
> MessageNet Systems
> 101 East Carmel Dr. Suite 105
> Carmel, IN 46032
> (317)566-1677 Ext 212
> (317)663-0808 Fax
>

Hi Takashi,

So, are these drivers almost ready for release?  Are they in alpha or beta?
Is there a patch that can be made to the existing 0.1.24.x drivers?

Best Regards,

-- 
Rob Krakora
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext 212
(317)663-0808 Fax

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-29 12:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 16:29 dmix problems with analog out (HDMI out works fine with dmix) Robert Krakora
2011-09-29  6:36 ` Takashi Iwai
2011-09-29 12:22   ` Robert Krakora
2011-09-29 12:25     ` Robert Krakora
2011-09-29 12:32     ` Takashi Iwai
2011-09-29 12:43       ` Robert Krakora
2011-09-29 12:44         ` Takashi Iwai
2011-09-29 12:45         ` Robert Krakora

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.