----- Mail original -----
> De : Clemens Ladisch <cladisch@googlemail.com>
> À : vincent <vljn@ovi.com>
> Cc : alsa-user@lists.sourceforge.net
> Envoyé le : Mercredi 26 septembre 2012 12h58
> Objet : Re: [Alsa-user] Asus Xonar Phoebus support
>
> vincent wrote:
>> Le dimanche 23 septembre 2012 à 13:12 +0200, Clemens Ladisch a écrit :
>>> vincent wrote:
>>>> 02:00.0 Audio device [0403]: C-Media Electronics Inc Device
> [13f6:5011]
>>>>     Subsystem: C-Media Electronics Inc Device [13f6:5011]
>>>
>>> This should be ID 13f6:8888 with subsystem 1043:85d5.
>>> Does this card actually work in Windows, with its built-in HDA driver?
>>
>> Yes. Of course with no advanced feature.
>
> Is it possible to install the Asus driver?

Yes.
In the device manager, the driver details has the following entris in the property "compatible ID" :

HDAUDIO\FUNC_01&CTLR_VEN_13F6&CTLR_DEV_5011&VEN_13F6&DEV_8888&REV_1014
HDAUDIO\FUNC_01&CTLR_VEN_13F6&VEN_13F6&DEV_8888&REV_1014
HDAUDIO\FUNC_01&VEN_13F6&DEV_8888&REV_1014
HDAUDIO\FUNC_01&CTLR_VEN_13F6&CTLR_DEV_5011&VEN_13F6&DEV_8888
HDAUDIO\FUNC_01&CTLR_VEN_13F6&VEN_13F6&DEV_8888
HDAUDIO\FUNC_01&VEN_13F6&DEV_8888
HDAUDIO\FUNC_01&CTLR_VEN_13F6&CTLR_DEV_5011&VEN_13F6
HDAUDIO\FUNC_01&CTLR_VEN_13F6&VEN_13F6
HDAUDIO\FUNC_01&VEN_13F6
HDAUDIO\FUNC_01&CTLR_VEN_13F6&CTLR_DEV_5011
HDAUDIO\FUNC_01&CTLR_VEN_13F6
HDAUDIO\FUNC_01&GF&VEN_13F6&DEV_8888&SUBSYS_104384D5&REV_1014
HDAUDIO\FUNC_01

I don't know what is meant by "CTLR_DEV" but apparently that's where the 5011 comes from.

>
>>> Please try adding the following entry into the list at the end of
>>> sound/pci/hda/hda_intel.c and recompiling the kernel:
>>>
>>>   { PCI_DEVICE(0x13f6, 0x5011), .driver_data = AZX_DRIVER_GENERIC },
>>
>> I did it. My card is now recognised (it is listed inside gnome settings)
>> but it does not play any sound.
>
> But it does show up as sound device?
>

Yes, as a "HD-Audio Generic Analog Stereo"
Aplay -L lists it too.

>> Besides ALSA has some "timeout" warning messages (I'm trying
> the test
>> speaker utility of gnome) :
>>
>> [    5.175708] ALSA sound/pci/hda/hda_intel.c:810 spurious response
> 0x0:0x0, last cmd=0x000000
>> [    7.178417] ALSA sound/pci/hda/hda_intel.c:863 azx_get_response timeout,
> switching to polling mode: last cmd=0x100f0000
>> [    8.180767] ALSA sound/pci/hda/hda_intel.c:871 No response from codec,
> disabling MSI: last cmd=0x100f0000
>> [    9.183120] ALSA sound/pci/hda/hda_intel.c:1608 Codec #1 probe error;
> disabling it...
>> [    9.191192] ALSA sound/pci/hda/hda_intel.c:810 spurious response
> 0x0:0x0, last cmd=0x000000
>> [  10.193472] ALSA sound/pci/hda/hda_intel.c:902 hda_intel:
> azx_get_response timeout, switching to single_cmd mode: last cmd=0x100f0000
>> [  10.204371] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout:
> IRS=0x1
>> [  10.204694] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout:
> IRS=0x1
>> [  10.216871] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout:
> IRS=0x1
>> [  10.217042] ALSA sound/pci/hda/hda_intel.c:966 send_cmd timeout:
> IRS=0x1, val=0x102b8000
>> [  10.217295] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout:
> IRS=0x1
>> [  10.217483] ALSA sound/pci/hda/hda_intel.c:966 send_cmd timeout:
> IRS=0x1, val=0x1023906b
>> [  10.217947] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout:
> IRS=0x1
>> ...
>
> Okay, please try the following entry instead:
>
> { PCI_DEVICE(0x13f6, 0x5011),
>   .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_NO_MSI |
>                 AZX_DCAPS_RIRB_DELAY | AZX_DCAPS_NO_64BIT |
>                 AZX_DCAPS_SYNC_WRITE | AZX_DCAPS_POSFIX_LPIB },
>

still no sound under gnome and with aplay, dmesg is now the following :

[vlj@Vincent-PC ~]$ dmesg | grep hda
[    3.960810] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    3.960817] hda_intel: Disabling MSI
[    3.960823] ALSA sound/pci/hda/hda_intel.c:2556 0000:01:00.1: Handle VGA-switcheroo audio client
[    3.960824] hda_intel: codec_mask forced to 0x63
[    3.966685] ALSA sound/pci/hda/hda_intel.c:1590 Enable delay in RIRB handling
[    6.972748] ALSA sound/pci/hda/hda_intel.c:863 azx_get_response timeout, switching to polling mode: last cmd=0x100f0000
[    7.974104] ALSA sound/pci/hda/hda_intel.c:1608 Codec #1 probe error; disabling it...
[    8.983446] ALSA sound/pci/hda/hda_intel.c:1608 Codec #5 probe error; disabling it...
[    9.992798] ALSA sound/pci/hda/hda_intel.c:1608 Codec #6 probe error; disabling it...
[   10.223696] snd_hda_intel 0000:02:00.0: enabling device (0000 -> 0002)
[   10.223709] hda_intel: Disabling MSI
[   10.223713] ALSA sound/pci/hda/hda_intel.c:2731 Using LPIB position fix
[   10.224636] ALSA sound/pci/hda/hda_intel.c:3015 Disabling 64bit DMA
[   10.230732] ALSA sound/pci/hda/hda_intel.c:1590 Enable delay in RIRB handling
[   10.230795] ALSA sound/pci/hda/hda_intel.c:810 spurious response 0x0:0x0, last cmd=0x000000
[   13.234708] ALSA sound/pci/hda/hda_intel.c:863 azx_get_response timeout, switching to polling mode: last cmd=0x100f0000
[   14.236056] ALSA sound/pci/hda/hda_intel.c:1608 Codec #1 probe error; disabling it...
[   14.244057] ALSA sound/pci/hda/hda_intel.c:1628 Enable sync_write for stable communication
[   14.244154] ALSA sound/pci/hda/hda_intel.c:810 spurious response 0x0:0x0, last cmd=0x000000
[   15.245402] ALSA sound/pci/hda/hda_codec.c:228 hda_codec: resetting BUS due to fatal communication error
[   15.354422] ALSA sound/pci/hda/hda_intel.c:810 spurious response 0x0:0x0, last cmd=0x000000
[   16.355685] ALSA sound/pci/hda/hda_intel.c:902 hda_intel: azx_get_response timeout, switching to single_cmd mode: last cmd=0x10070503
[   16.367523] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1
[   16.367864] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1
[   16.377861] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1
[   16.378093] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1
[   16.378533] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1
[   19.870574] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1
[   19.873567] ALSA sound/pci/hda/hda_intel.c:938 get_response timeout: IRS=0x1


> And please show the contents of any /proc/asound/card*/codec* file
> (but not that for the HDMI output).
>

Codec: C-Media ID 8888
Address: 1
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x13f68888
Subsystem Id: 0x104384d5
Revision Id: 0x101400
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xa]: 16 24
    formats [0x2]: FLOAT
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=8, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Master Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Master Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="HDA Generic", type="Audio", device=0
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x03, mute=1
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=7, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x03, mute=1
  Amp-Out vals:  [0x68 0x64]
  Converter: stream=2, channel=3
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x03, mute=1
  Amp-Out vals:  [0xae 0x4f]
  Converter: stream=5, channel=14
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x03, mute=1
  Amp-Out vals:  [0x9c 0x5d]
  Converter: stream=11, channel=15
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x9d: Stereo Amp-Out
  Amp-Out caps: ofs=0x6d, nsteps=0x6d, stepsize=0x03, mute=1
  Amp-Out vals:  [0x8d 0x34]
  Converter: stream=11, channel=2
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10019b: Stereo Amp-In
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="HDA Generic", type="Audio", device=0
  Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1
  Amp-In vals:  [0x1b 0x1b]
  Converter: stream=3, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x12
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1
  Amp-In vals:  [0xd3 0xe3]
  Converter: stream=15, channel=3
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Connection: 1
     0x13
Node 0x0a [Audio Output] wcaps 0x21d: Stereo Digital Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x1a 0x4c]
  Converter: stream=9, channel=5
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x5]: PCM AC3
Node 0x0b [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x17 0x32]
  Converter: stream=9, channel=0
  SDI-Select: 0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Connection: 1
     0x15
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
  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: 0xc0: OUT HP
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x02
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP 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=00, enabled=0
  Connection: 1
     0x03
Node 0x0e [Pin Complex] wcaps 0x400181: 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=00, enabled=0
  Connection: 1
     0x04
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP 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=00, enabled=0
  Connection: 1
     0x05
Node 0x10 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0
  Amp-Out vals:  [0xcb 0xcb]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x02214020: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x03 0x03]
  Pincap 0x00000024: IN Detect
  Pin Default 0x02a19040: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Pink
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
Node 0x13 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x9097f170: [Fixed] Aux at Int N/A
    Conn = Analog, Color = Other
    DefAssociation = 0x7, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x14 [Pin Complex] wcaps 0x400300: Mono Digital
  Pincap 0x00000010: OUT
  Pin Default 0x0144f160: [Jack] SPDIF Out at Ext Rear
    Conn = RCA, Color = Other
    DefAssociation = 0x6, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x0a
Node 0x15 [Pin Complex] wcaps 0x400081: Stereo
  Pincap 0x00000024: IN Detect
  Pin Default 0x01813050: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x5, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0

>
> Regards,
> Clemens
>