* SPDIF out with HDA/Conexant 20561?
@ 2010-05-04 23:19 pl bossart
2010-05-05 4:14 ` Jerone Young
0 siblings, 1 reply; 5+ messages in thread
From: pl bossart @ 2010-05-04 23:19 UTC (permalink / raw)
To: alsa-devel
Has anyone had any luck enabling S/PDIF output with the Conexant 20561/ctx5051?
On my Lenovo W500 I see a digital output device, I can play on it but
I can't hear any sound on my receiver. There was a patch by Takashi
earlier this year to correct a wrong nodeID
(03b515c45e2a93331d2ac9dc1c16440f7fa313ec, ALSA: hda - Fix SPDIF
output widget for Cxt5051 codec), so I figure some amount of testing
has been done already?
I wonder if this comes from a non-initialized pin configuration as
reported in /proc/asound/card0/codec#0?
Node 0x1c [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3
Power: setting=D0, actual=D0
Connection: 1
0x12
Node 0x12 [Audio Output] wcaps 0x211: 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="Conexant Digital", type="SPDIF", device=1
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Thanks
- Pierre
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: SPDIF out with HDA/Conexant 20561? 2010-05-04 23:19 SPDIF out with HDA/Conexant 20561? pl bossart @ 2010-05-05 4:14 ` Jerone Young 2010-05-05 12:29 ` pl bossart 0 siblings, 1 reply; 5+ messages in thread From: Jerone Young @ 2010-05-05 4:14 UTC (permalink / raw) To: pl bossart; +Cc: alsa-devel Are you using the Thinkpad Docking station with the S/PDIF on the side? The headphone jack on those doesn't have S/PDIF. I have not been able to verify this so glad your email came.. but it seems like the T400, T500, & W500 do not actually work with it. Did you try under Windows & if so did it work? Thanks, Jerone On Tue, 2010-05-04 at 18:19 -0500, pl bossart wrote: > Has anyone had any luck enabling S/PDIF output with the Conexant 20561/ctx5051? > > On my Lenovo W500 I see a digital output device, I can play on it but > I can't hear any sound on my receiver. There was a patch by Takashi > earlier this year to correct a wrong nodeID > (03b515c45e2a93331d2ac9dc1c16440f7fa313ec, ALSA: hda - Fix SPDIF > output widget for Cxt5051 codec), so I figure some amount of testing > has been done already? > > I wonder if this comes from a non-initialized pin configuration as > reported in /proc/asound/card0/codec#0? > Node 0x1c [Pin Complex] wcaps 0x400701: Stereo Digital > Pincap 0x00000010: OUT > Pin Default 0x40f001f0: [N/A] Other at Ext N/A > Conn = Unknown, Color = Unknown > DefAssociation = 0xf, Sequence = 0x0 > Misc = NO_PRESENCE > Pin-ctls: 0x00: > Power states: D0 D1 D2 D3 > Power: setting=D0, actual=D0 > Connection: 1 > 0x12 > > Node 0x12 [Audio Output] wcaps 0x211: 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="Conexant Digital", type="SPDIF", device=1 > Converter: stream=0, channel=0 > Digital: > Digital category: 0x0 > PCM: > rates [0x160]: 44100 48000 96000 > bits [0xe]: 16 20 24 > formats [0x5]: PCM AC3 > > > Thanks > - Pierre > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SPDIF out with HDA/Conexant 20561? 2010-05-05 4:14 ` Jerone Young @ 2010-05-05 12:29 ` pl bossart 2010-05-05 15:59 ` Jerone Young 0 siblings, 1 reply; 5+ messages in thread From: pl bossart @ 2010-05-05 12:29 UTC (permalink / raw) To: Jerone Young; +Cc: alsa-devel > Are you using the Thinkpad Docking station with the S/PDIF on the side? > The headphone jack on those doesn't have S/PDIF. Yes I am using the side coax connector on the docking station. > I have not been able to verify this so glad your email came.. but it > seems like the T400, T500, & W500 do not actually work with it. > > Did you try under Windows & if so did it work? No I don't have Windows on this thing. For now I have no real way to tell if the output is properly configured, if the connector works, if the cable's bad... Cheers - Pierre ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SPDIF out with HDA/Conexant 20561? 2010-05-05 12:29 ` pl bossart @ 2010-05-05 15:59 ` Jerone Young 2010-05-06 19:02 ` pl bossart 0 siblings, 1 reply; 5+ messages in thread From: Jerone Young @ 2010-05-05 15:59 UTC (permalink / raw) To: pl bossart; +Cc: alsa-devel On Wed, 2010-05-05 at 07:29 -0500, pl bossart wrote: > > Are you using the Thinkpad Docking station with the S/PDIF on the side? > > The headphone jack on those doesn't have S/PDIF. > > Yes I am using the side coax connector on the docking station. I know the T61 is properly wired for it. Had a chance to try it in person. It also had a AD codec as opposed to conexant. > > > I have not been able to verify this so glad your email came.. but it > > seems like the T400, T500, & W500 do not actually work with it. > > > > Did you try under Windows & if so did it work? This has been the main issue. Can't get a total confirmation that it even works to begin with for these machines. Also Lenovo has removed the port from the recent line of docking stations. If I can find anything useful .. I'll reply back soon. I really wanted to remove the SPDIF port being exposed as it shows up on my X301 .. and X200 (They all have the same codec), but don't use that docking station. But the use case your trying to do is the only way to do it and it would only be with the T400/T500 & W500 .. though no where can I find someone clearly saying they got it to work (even with Windows). > > No I don't have Windows on this thing. For now I have no real way to > tell if the output is properly configured, if the connector works, if > the cable's bad... > Cheers > - Pierre Thanks, Jerone ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SPDIF out with HDA/Conexant 20561? 2010-05-05 15:59 ` Jerone Young @ 2010-05-06 19:02 ` pl bossart 0 siblings, 0 replies; 5+ messages in thread From: pl bossart @ 2010-05-06 19:02 UTC (permalink / raw) To: Jerone Young; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 2099 bytes --] I managed to have playback working for both PCM and AC3 in passthrough mode, found out there is a configuration issue in the HDAudio codec. By default the SPDIF pin isn't enabled, configuring it as PIN_OUT is required. Also for some reason there's a switch that selects a quirk for no good reason. I need to look into this, but here's the fix for now. The question is if SPDIF pin is never configured as out, did it ever work for anyone using Conexant codecs? Cheers -Pierre On Wed, May 5, 2010 at 10:59 AM, Jerone Young <jerone.young@canonical.com> wrote: > On Wed, 2010-05-05 at 07:29 -0500, pl bossart wrote: >> > Are you using the Thinkpad Docking station with the S/PDIF on the side? >> > The headphone jack on those doesn't have S/PDIF. >> >> Yes I am using the side coax connector on the docking station. > > I know the T61 is properly wired for it. Had a chance to try it in > person. It also had a AD codec as opposed to conexant. > >> >> > I have not been able to verify this so glad your email came.. but it >> > seems like the T400, T500, & W500 do not actually work with it. >> > >> > Did you try under Windows & if so did it work? > > This has been the main issue. Can't get a total confirmation that it > even works to begin with for these machines. Also Lenovo has removed the > port from the recent line of docking stations. > > If I can find anything useful .. I'll reply back soon. > > I really wanted to remove the SPDIF port being exposed as it shows up on > my X301 .. and X200 (They all have the same codec), but don't use that > docking station. But the use case your trying to do is the only way to > do it and it would only be with the T400/T500 & W500 .. though no where > can I find someone clearly saying they got it to work (even with > Windows). >> >> No I don't have Windows on this thing. For now I have no real way to >> tell if the output is properly configured, if the connector works, if >> the cable's bad... >> Cheers >> - Pierre > Thanks, > Jerone > > [-- Attachment #2: cxt5051.patch --] [-- Type: application/octet-stream, Size: 1043 bytes --] diff --git a/pci/hda/patch_conexant.c b/pci/hda/patch_conexant.c index 114af8e..63e2fb2 100644 --- a/pci/hda/patch_conexant.c +++ b/pci/hda/patch_conexant.c @@ -1784,7 +1784,9 @@ static struct hda_verb cxt5051_init_verbs[] = { {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1) | 0x44}, {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0) | 0x44}, /* SPDIF route: PCM */ + {0x1c, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, {0x1c, AC_VERB_SET_CONNECT_SEL, 0x0}, + /* EAPD */ {0x1a, AC_VERB_SET_EAPD_BTLENABLE, 0x2}, /* default on */ {0x16, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|CONEXANT_HP_EVENT}, @@ -1975,6 +1977,8 @@ static int patch_cxt5051(struct hda_codec *codec) cxt5051_models, cxt5051_cfg_tbl); spec->auto_mic = AUTO_MIC_PORTB | AUTO_MIC_PORTC; + +#if 0 // PLB switch (board_config) { case CXT5051_HP: spec->mixers[0] = cxt5051_hp_mixers; @@ -1997,7 +2001,7 @@ static int patch_cxt5051(struct hda_codec *codec) spec->auto_mic = AUTO_MIC_PORTB; break; } - +#endif return 0; } [-- Attachment #3: Type: text/plain, Size: 160 bytes --] _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-06 19:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-05-04 23:19 SPDIF out with HDA/Conexant 20561? pl bossart 2010-05-05 4:14 ` Jerone Young 2010-05-05 12:29 ` pl bossart 2010-05-05 15:59 ` Jerone Young 2010-05-06 19:02 ` pl bossart
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).