At Mon, 4 Aug 2014 11:30:31 -0700, Vincent Lejeune wrote:
Thanks, it almost works now !
Actually it requires the AZX_DCAPS_NO_MSI (otherwise dma doesnt work) and AZX_DCAPS_POSFIX_LPIB (otherwise sound is stuttered) and no snoop. There is still an issue with the sound volume : it's very low, I have to put my speakers to 100% of their power to actually hear something. Otherwise sound is ok, no more crakling as with single_cmd mode.
Dmesg also complains about a db Mismatch, I suspect it's related to the issue. If I remove the patching ops in snd_hda_codec_build_controls the error goes away but there is no more sound and the digital output control disappear too. I dont know which patch is applied (cmedia ?).
[ 2.483128] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002) [ 2.483238] snd_hda_intel 0000:01:00.1: Handle VGA-switcheroo audio client [ 2.483282] snd_hda_intel 0000:01:00.1: irq 50 for MSI/MSI-X [ 2.483454] snd_hda_intel 0000:02:00.0: enabling device (0000 -> 0002) [ 2.483494] snd_hda_intel 0000:02:00.0: Disabling MSI [ 2.489701] snd_hda_intel 0000:01:00.1: no codecs initialized [ 2.511016] sound hdaudioC1D1: autoconfig: line_outs=4 (0xc/0xe/0xd/0xf/0x0) type:line [ 2.511018] sound hdaudioC1D1: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 2.511019] sound hdaudioC1D1: hp_outs=1 (0x10/0x0/0x0/0x0/0x0) [ 2.511020] sound hdaudioC1D1: mono: mono_out=0x0 [ 2.511021] sound hdaudioC1D1: dig-out=0x14/0x0 [ 2.511021] sound hdaudioC1D1: inputs: [ 2.511022] sound hdaudioC1D1: Mic=0x12 [ 2.511023] sound hdaudioC1D1: Line=0x15 [ 2.511024] sound hdaudioC1D1: Aux=0x13 [ 2.523844] ALSA sound/pci/hda/hda_codec.c:2792 hda_codec: Mismatching dB step for vmaster slave (-100!=1000)
Could you give alsa-info.sh output with the patched kernel and option? This should be rather the codec issue, and it's possibly a problem in the generic parser.
Takashi