MCP7A HDMI passthrough audio Linux/ALSA
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): s5hocs598yz.wl%[email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): s5hhbxx98d4.wl%[email protected]
Quoted 24 lines · Takashi Iwai
At Tue, 30 Jun 2009 15:04:05 +0200,
Quoted 10 lines · Stéphane BERTHELOT
Hi Takashi,
Thanks for you answer.
I have the exact same problem and configuration than reported here
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4406
apart :
- I'm using a ION platform (Acer Revo R3600 but still MCP7A :0x10de0007)
- I never get the Dolby Digital or DTS indicator illuminated on my Amp.
- My TV is a Sharp LC-52X20EQuoted 7 lines
I thought this was a known problem and than someone at Nvidia could provide the missing HDA Verbs, if you prefer I can post to the alsa-devel mailing list to investigate further.
I can get a alsa-info output tonight, though it's very very similar to the one in the bug report. (and Raymond was saying that we should get "PCM AC3" on digital outputs)Try ac3dec for a primary testing instead of mplayer. It's included in alsa-tools.
Quoted 9 lines
% ac3dec -C -H foo.ac3Use the latest one so that it accespt -H option.
Takashi
Thank you Takashi for taking time to review my problem. I cc'ed alsa-devel since I have more info now and maybe some other people have the same problem or already a workaround.
I'm attaching the output of alsa-info.sh with my mixer settings and after having run ac3dec -H -C file.ac3
It works with -R instead of -C but does not work with -C or with -P (consumer or pro)
I also tried modifying settings using iecset (audio off / audio on and consumer/pro) and no combination seems to work.
When I play stereo LPCM my TV set plays sound and so does my Amp in PCM mode.
When I try to play in AC3 mode (-C) my TV set says "incompatible format received" and both the TV and Amp stay silent.
I may try again on XP/Vista tomorrow to be really sure it works on them.
When changing play mode AES0 changes from 0x00 to 0x02 and AES1 to AES3 stay the same (0x82,0x00,0x02 if I remember well)
Is there any other test you want me to do, I'll have time tomorrow evening (CEST).
Thanks a lot,
Stephane.
(http://www.alsa-project.org/db/?f=cf3bc4202b4fcbf93ba68db55e492d51a3e46177)
!!################################
!!ALSA Information Script v 0.4.56
!!################################
!!Script ran on: Tue Jun 30 20:22:23 UTC 2009
!!Linux Distribution
!!------------------
Slackware 13.0.0.0.0
!!Kernel Information
!!------------------
Kernel release: 2.6.29.5 Operating System: GNU/Linux Architecture: x86_64 Processor: Intel(R) Atom(TM) CPU 230 @ 1.60GHz SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version: 1.0.20 Library version: 1.0.18 Utilities version: 1.0.18
!!Loaded ALSA modules
!!-------------------
snd_hda_intel
!!Sound Servers on this system
!!----------------------------
ESound Daemon:
Installed - Yes (/usr/bin/esd)
Running - No
!!Soundcards recognised by ALSA
!!-----------------------------
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfae78000 irq 22
!!PCI Soundcards installed in the system
!!--------------------------------------
00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev b1)
!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------
00:08.0 0403: 10de:0ac0 (rev b1)
Subsystem: 1025:0222
!!Loaded sound module options
!!--------------------------
!!Module: snd_hda_intelbdl_pos_adj : 32,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Yenable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : -1,-1,-1,-1,-1,-1,-1,-1
model : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 0,0,0,0,0,0,0,0power_save : 0power_save_controller : Yprobe_mask : -1,-1,-1,-1,-1,-1,-1,-1probe_only : N,N,N,N,N,N,N,Nsingle_cmd : N
!!HDA-Intel Codec information
!!---------------------------
--startcollapse--
Codec: Realtek ALC662 rev1
Address: 0
Function Id: 0x1
Vendor Id: 0x10ec0662
Subsystem Id: 0x10250222
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x04 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x09, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x89 0x89]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x23Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x09, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x00 0x00]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x22Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 9
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x04 0x0b
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0001003c: IN OUT HP EAPD Detect
EAPD 0x0:
Pin Default 0x01214010: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=00, enabled=0
Connection: 1
0x0c
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x00010034: IN OUT EAPD Detect
EAPD 0x0:
Pin Default 0x99130120: [Fixed] Speaker at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x0d
Node 0x16 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0e
Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00001734: IN OUT Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x01a19830: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Pink
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Connection: 1
0x0e
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000173c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0e
Node 0x1a [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000173c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0e
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x40020601: [N/A] Line Out at Ext N/A
Conn = 1/4, Color = Unknown DefAssociation = 0x0, Sequence = 0x1
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x00000010: OUT
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=12
Processing Coefficient: 0x00
Coefficient Index: 0x06
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x0b
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x25 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x26 [Vendor Defined Widget] wcaps 0xf00000: Mono
Codec: Nvidia MCP7A HDMI
Address: 3
Function Id: 0x1
Vendor Id: 0x10de0007
Subsystem Id: 0x10de0101
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 0x04 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital: Enabled Non-Audio Pro
Digital category: 0x0
PCM:
rates [0xc0]: 48000 88200
bits [0xf]: 8 16 20 24
formats [0x1]: PCMNode 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]: PCMNode 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: 0x00:
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]: PCMNode 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: 0x00:
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]: PCMNode 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: 0x00:
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]: PCMNode 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: 0x00:
Unsolicited: tag=00, enabled=0
Connection: 1
0x0c
--endcollapse--
!!ALSA Device nodes
!!-----------------
crw-rw---- 1 root audio 116, 0 Jul 1 2009 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 4 Jul 1 2009 /dev/snd/hwC0D0 crw-rw---- 1 root audio 116, 7 Jul 1 2009 /dev/snd/hwC0D3 crw-rw---- 1 root audio 116, 24 Jul 1 2009 /dev/snd/pcmC0D0c
crw-rw---- 1 root audio 116, 16 Jun 30 22:11 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 19 Jun 30 22:21 /dev/snd/pcmC0D3p crw-rw---- 1 root audio 116, 1 Jun 30 22:10 /dev/snd/seq crw-rw---- 1 root audio 116, 33 Jul 1 2009 /dev/snd/timer
!!ALSA configuration files
!!------------------------
!!System wide config file (/etc/asound.conf)
#pcm.!default {
# type plug
# slave.pcm "hdmi"
#}
pcm.hdmiconv { type plug slave { pcm "hw:0,3" rate 48000 } }
pcm.headset {
type bluetooth
}
ctl.headset {
type bluetooth
}
!!Aplay/Arecord output
!!------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 Analog [ALC662 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 Analog [ALC662 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [NVidia]
Card hw:0 'NVidia'/'HDA NVidia at 0xfae78000 irq 22'
Mixer name : 'Nvidia MCP7A HDMI'
Components : 'HDA:10ec0662,10250222,00100101 HDA:10de0007,10de0101,00100100'
Controls : 18
Simple ctrls : 9
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 52 [81%] [-12.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 0 [0%] [-64.00dB] [on]
Front Right: Playback 0 [0%] [-64.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 213 [84%] [-8.40dB]
Front Right: Playback 213 [84%] [-8.40dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 52 [81%] [-12.00dB] [on] Front Right: Playback 52 [81%] [-12.00dB] [on]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 0 [0%] [-13.50dB] [on]
Front Right: Capture 0 [0%] [-13.50dB] [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on]
Front Right: Playback 0 [0%] [-34.50dB] [on]
!!Alsactl output
!!-------------
--startcollapse--
state.NVidia {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 64'
comment.dbmin -6400
comment.dbmax 0
iface MIXER
name 'Front Playback Volume'
value.0 52
value.1 52
}
control.2 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Front Playback Switch'
value.0 true
value.1 true
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 64'
comment.dbmin -6400
comment.dbmax 0
iface MIXER
name 'Headphone Playback Volume'
value.0 0
value.1 0
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Mic Playback Volume'
value.0 0
value.1 0
}
control.6 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Mic Playback Switch'
value.0 false
value.1 false
}
control.7 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 3'
comment.dbmin 0
comment.dbmax 3000
iface MIXER
name 'Mic Boost'
value.0 0
value.1 0
}
control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.9 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -1350
comment.dbmax 3300
iface MIXER
name 'Capture Volume'
value.0 0
value.1 0
}
control.10 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Beep Playback Volume'
value.0 0
value.1 0
}
control.11 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Beep Playback Switch'
value.0 true
value.1 true
}
control.12 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 64'
comment.dbmin -6400
comment.dbmax 0
iface MIXER
name 'Master Playback Volume'
value 52
}
control.13 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Master Playback Switch'
value true
}
control.14 {
comment.access read
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Con Mask'
value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.15 {
comment.access read
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Pro Mask'
value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.16 {
comment.access 'read write'
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Default'
value '0782000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.17 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Playback Switch'
value true
}
control.18 {
comment.access 'read write user'
comment.type INTEGER
comment.count 2
comment.range '0 - 255'
comment.tlv '0000000100000008ffffec1400000014'
comment.dbmin -5100
comment.dbmax 0
iface MIXER
name 'PCM Playback Volume'
value.0 213
value.1 213
}
}--endcollapse--
!!All Loaded Modules
!!------------------
Modulesnd_seq_dummysnd_seq_osssnd_seq_midi_eventsnd_seqsnd_seq_devicesnd_pcm_osssnd_mixer_oss
ipv6
ppdev
lpparport_pc
parport
fusesnd_hda_codec_nvhdmi
nvidiasnd_hda_codec_realtek
ath5k
mac80211
rfkillled_classsnd_hda_intel
cfg80211snd_hda_codec
psmouseserio_raw
shpchpsnd_hwdepsnd_pcmsnd_timer
sg
snd
soundcore
forcedethsnd_page_allocrtc_cmosrtc_core
thermal
wmirtc_lib
processor
buttonthermal_sys
hwmon
evdev
At Tue, 30 Jun 2009 22:51:03 +0200,
Quoted 39 lines · Stephane BERTHELOT
Takashi Iwai a écrit :
At Tue, 30 Jun 2009 15:04:05 +0200,
Stéphane BERTHELOT wrote:Hi Takashi,
Thanks for you answer.
I have the exact same problem and configuration than reported here
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4406
apart :
- I'm using a ION platform (Acer Revo R3600 but still MCP7A :0x10de0007)
- I never get the Dolby Digital or DTS indicator illuminated on my Amp.
- My TV is a Sharp LC-52X20EI thought this was a known problem and than someone at Nvidia could provide the missing HDA Verbs, if you prefer I can post to the alsa-devel mailing list to investigate further.
I can get a alsa-info output tonight, though it's very very similar to the one in the bug report. (and Raymond was saying that we should get "PCM AC3" on digital outputs)Try ac3dec for a primary testing instead of mplayer. It's included in alsa-tools.
% ac3dec -C -H foo.ac3
Use the latest one so that it accespt -H option.
Takashi
Thank you Takashi for taking time to review my problem. I cc'ed alsa-devel since I have more info now and maybe some other people have the same problem or already a workaround.
I'm attaching the output of
alsa-info.shwith my mixer settings and after having run ac3dec -H -C file.ac3
Quoted 8 lines
It works with -R instead of -C but does not work with -C or with -P (consumer or pro)
I also tried modifying settings using iecset (audio off / audio on and consumer/pro) and no combination seems to work.When I play stereo LPCM my TV set plays sound and so does my Amp in PCM mode. When I try to play in AC3 mode (-C) my TV set says "incompatible format received" and both the TV and Amp stay silent.
Hm, so apparently your TV doesn't accept non-audio format? But TV accepted the ac3dec output with -R option, right? (Make sure this -- otherwise ac3dec might have decoded by itself.)
Basically, -R means to send the encoded an AC3 stream (packed in the SPDIF format) without setting non-audio bit. Whether non-audio bit is 1 or 0 is the only difference between -C and -R. So, if -R really works but not -C, it means that the non-audio bit must be off no matter what you send. Weird.
Quoted 4 lines
I may try again on XP/Vista tomorrow to be really sure it works on them.
When changing play mode AES0 changes from
0x00to0x02and AES1 to AES3 stay the same (0x82,0x00,0x02 if I remember well)
Note that the setup you made before ac3dec will be overridden anyway. And during ac3dec playback, the status bits are locked and can't be changed by others.
Takashi
Quoted 8 lines · Takashi Iwai
At Tue, 30 Jun 2009 22:51:03 +0200,
Stephane BERTHELOT wrote:Hm, so apparently your TV doesn't accept non-audio format? But TV accepted the ac3dec output with -R option, right? (Make sure this -- otherwise ac3dec might have decoded by itself.)
Quoted 7 lines
Basically, -R means to send the encoded an AC3 stream (packed in the SPDIF format) without setting non-audio bit. Whether non-audio bit is 1 or 0 is the only difference between -C and -R. So, if -R really works but not -C, it means that the non-audio bit must be off no matter what you send. Weird.
I'm sure the TV only accepted -R and not -C (or -P) with the same ac3 file. But I'm confused since I was quite sure -R would *decode* ac3 to PCM and then send it in LPCM format.
I used alsa-tools 1.0.20, should I try with a Git version ? Sorry to ask this, but are you sure the data is sent as-is (in ac3 format) with only audio bit changed ?
It sounds effectively completely weird to me, because moreover my Amp is showing LPCM format with -R (my TV would downsample the 5.1 AC3 signal to LPCM ??)
Quoted 11 lines
Quoted 5 lines
I may try again on XP/Vista tomorrow to be really sure it works on them.
When changing play mode AES0 changes from
0x00to0x02and AES1 to AES3 stay the same (0x82,0x00,0x02 if I remember well)Note that the setup you made before ac3dec will be overridden anyway. And during ac3dec playback, the status bits are locked and can't be changed by others.
Ok that's what I thought since ac3dec show AES bytes and they depend only on command line options and not iecset done before.
Quoted 4 lines
Takashi
Stephane.
At Wed, 01 Jul 2009 11:18:15 +0200,
Quoted 16 lines · Stéphane BERTHELOT
Takashi Iwai a écrit :
At Tue, 30 Jun 2009 22:51:03 +0200,
Stephane BERTHELOT wrote:Hm, so apparently your TV doesn't accept non-audio format? But TV accepted the ac3dec output with -R option, right? (Make sure this -- otherwise ac3dec might have decoded by itself.)
Basically, -R means to send the encoded an AC3 stream (packed in the SPDIF format) without setting non-audio bit. Whether non-audio bit is 1 or 0 is the only difference between -C and -R. So, if -R really works but not -C, it means that the non-audio bit must be off no matter what you send. Weird.
Quoted 3 lines
I'm sure the TV only accepted -R and not -C (or -P) with the same ac3 file. But I'm confused since I was quite sure -R would *decode* ac3 to PCM and then send it in LPCM format.
Ah, yes, of course. That's logical, then, that -R works.
Hm, then it's an issue of receiver side?
Can Windows send the raw AC3 and TV decodes it properly?
Takashi
Quoted 23 lines · Takashi Iwai
At Wed, 01 Jul 2009 11:18:15 +0200,
Quoted 15 lines · Stéphane BERTHELOT
Takashi Iwai a écrit :
At Tue, 30 Jun 2009 22:51:03 +0200,
Stephane BERTHELOT wrote:Hm, so apparently your TV doesn't accept non-audio format? But TV accepted the ac3dec output with -R option, right? (Make sure this -- otherwise ac3dec might have decoded by itself.)
Basically, -R means to send the encoded an AC3 stream (packed in the SPDIF format) without setting non-audio bit. Whether non-audio bit is 1 or 0 is the only difference between -C and -R. So, if -R really works but not -C, it means that the non-audio bit must be off no matter what you send. Weird.
Quoted 4 lines
I'm sure the TV only accepted -R and not -C (or -P) with the same ac3 file. But I'm confused since I was quite sure -R would *decode* ac3 to PCM and then send it in LPCM format.
Quoted 10 lines
Ah, yes, of course. That's logical, then, that -R works.
Hm, then it's an issue of receiver side?
Can Windows send the raw AC3 and TV decodes it properly?Takashi
Thanks you Takashi,
After investigating on the Windows side (damn!) I finally found that with the latest Nvidia official HDMI audio out drivers I was also receiving only stereo PCM.
I'm very angry against Sharp since their TV set outputs AC3 when switched on DVB tuner mode, it even offer "digital audio out settings" on analog inputs (scart / component /...) but strangely this menu is no more available when on an HDMI channel.
I'm very upset about this, since this TV set is about 6 months old seems already deprecated.
I'm trying to get someone at Sharp service to make an upgrade to get digital audio through HDMI to the optical output but I have little hope about this. I still can't figure why they do that, is it a digital entertainment system or not ? My old frist-gen dvd player does better ...
Thanks anyway for your help and if you can give me some hints about how to convince Sharp to make an upgrade for this I will be welcome. I'm pretty sure some other users have had the same kind of problems...
I now need either to buy an USB audio card with SPDIF out (or in/out) or an HDMI switch (some have spdif out) or even a real new HD Audio Amp, but this is getting more and more expensive ...
Thanks a lot Takashi, and I hope I'll find a 'not so expensive' solution for this. (If anyone can give me pointer on cheap USB or HMDI hardware ... :) )
Stephane.
At Fri, 03 Jul 2009 20:07:09 +0200,
Quoted 51 lines · Stéphane BERTHELOT
Quoted 23 lines · Takashi Iwai
At Wed, 01 Jul 2009 11:18:15 +0200,
Quoted 15 lines · Stéphane BERTHELOT
Takashi Iwai a écrit :
At Tue, 30 Jun 2009 22:51:03 +0200,
Stephane BERTHELOT wrote:Hm, so apparently your TV doesn't accept non-audio format? But TV accepted the ac3dec output with -R option, right? (Make sure this -- otherwise ac3dec might have decoded by itself.)
Basically, -R means to send the encoded an AC3 stream (packed in the SPDIF format) without setting non-audio bit. Whether non-audio bit is 1 or 0 is the only difference between -C and -R. So, if -R really works but not -C, it means that the non-audio bit must be off no matter what you send. Weird.
Quoted 4 lines
I'm sure the TV only accepted -R and not -C (or -P) with the same ac3 file. But I'm confused since I was quite sure -R would *decode* ac3 to PCM and then send it in LPCM format.
Quoted 10 lines
Ah, yes, of course. That's logical, then, that -R works.
Hm, then it's an issue of receiver side?
Can Windows send the raw AC3 and TV decodes it properly?Takashi
Thanks you Takashi,
After investigating on the Windows side (damn!) I finally found that with the latest Nvidia official HDMI audio out drivers I was also receiving only stereo PCM.
I'm very angry against Sharp since their TV set outputs AC3 when switched on DVB tuner mode, it even offer "digital audio out settings" on analog inputs (scart / component /...) but strangely this menu is no more available when on an HDMI channel.
I'm very upset about this, since this TV set is about 6 months old seems already deprecated.
I'm trying to get someone at Sharp service to make an upgrade to get digital audio through HDMI to the optical output but I have little hope about this. I still can't figure why they do that, is it a digital entertainment system or not ? My old frist-gen dvd player does better ...
Quoted 7 lines
Thanks anyway for your help and if you can give me some hints about how to convince Sharp to make an upgrade for this I will be welcome. I'm pretty sure some other users have had the same kind of problems...
I now need either to buy an USB audio card with SPDIF out (or in/out) or an HDMI switch (some have spdif out) or even a real new HD Audio Amp, but this is getting more and more expensive ...
Hm, but you can basically decode on PC and send multi-channel LPCM over HDMI. Isn't it enough? Or, maybe not, depending on the setup...
Takashi