[regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

Bug #278648 reported by sibidiba
90
This bug affects 16 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Daniel T Chen
Nominated for Karmic by EAB
Nominated for Lucid by EAB
linux-ubuntu-modules-2.6.24 (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Karmic by EAB
Nominated for Lucid by EAB

Bug Description

On Lenovo R61i the sound input does not work at all.

I am using snd-hda-intel as the driver for

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

The built in microphone does not work at all, it always produces silence. Moreover the mixer settings of the silent internal and the (buggy) external microphone are interchanged.

If I try to use any external microphone the sound is utterly jerky, unusable.
The interesting thing is, that if I turn on and unmute the external mic (with the slider of the internal mic) the echoed sound in the speakers is clear, just the recording result is broken.

Try to record with any app. Some of them produce just silence or just crash (kmix). If there is some sound (noise), it is unrecognisable (skype test call).

alsa-info.sh output:
http://www.alsa-project.org/db/?f=2fa082c485afdcefadcecbe179b0f199b7f3ce70

upstream bugreport:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4163

sibidiba (sibidiba)
Changed in linux-ubuntu-modules-2.6.24:
status: New → Confirmed
description: updated
description: updated
Revision history for this message
sibidiba (sibidiba) wrote :

Lot of people experience problems with various codecs using snd-hda-intel.

I have set up this page to summarize the problems:
https://wiki.ubuntu.com/SndHdaIntelSoundProblems

Bugs are only related if they are for the same module and codec/chipset:

cat /proc/asound/card*/codec\#*|grep -i codec

Changed in linux-ubuntu-modules-2.6.24:
assignee: nobody → ubuntu-audio
Revision history for this message
EAB (adair-boder) wrote :

I too have the Thinkpad R61 and the mic is not working at all. Very frustrating!

Revision history for this message
EAB (adair-boder) wrote :

Will this issue be fixed in Intrepid?

Revision history for this message
sibidiba (sibidiba) wrote :

@Zeth: right now, the situation is the same for Interpid.

Revision history for this message
sibidiba (sibidiba) wrote :

I also tried SuSE and Knoppix. All the same. It's a kernel bug.

Revision history for this message
EAB (adair-boder) wrote :

So where does that leave us? Is the issue being worked on? Sorry for asking so many questions ... I just can't believe I found myself buying a new laptop which cannot utilize an internal or external mic ...! It's like a major step back for me since I use Skype and VOIP so much...

Revision history for this message
sibidiba (sibidiba) wrote :

Just the same for me. I don't now anyone working on this.

Revision history for this message
skflyfish (jpeasley) wrote :

Also a Thinkpad R61 and the internal microphone doesn't work, despite trying every I could find.

Revision history for this message
sibidiba (sibidiba) wrote :

@sklyfish

Which codec chip do you have? Run this command as root to see:

cat /proc/asound/card*/codec\#*|grep -i codec

And possibly add your findings to https://wiki.ubuntu.com/SndHdaIntelSoundProblems .

Revision history for this message
skflyfish (jpeasley) wrote : Re: [Bug 278648] Re: snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

jay@jay-laptop:~$ cat /proc/asound/card*/codec\#*|grep -i codec
Codec: Conexant CX20549 (Venice)
jay@jay-laptop:~$

thanx!

sibidiba wrote:
> @sklyfish
>
> Which codec chip do you have? Run this command as root to see:
>
> cat /proc/asound/card*/codec\#*|grep -i codec
>
> And possibly add your findings to
> https://wiki.ubuntu.com/SndHdaIntelSoundProblems .
>
>

Revision history for this message
EAB (adair-boder) wrote : Re: snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

So what does it usually take for these issues to start getting some attention from the ppl who have the expertise to fix it?

Revision history for this message
sibidiba (sibidiba) wrote :

I am actually a programmer, but without real experience in kernel-hacking, and I also do not know how the ALSA subsystem works in general. Would probably take longer to see through this then somebody else - with experience in this area - fixing it in an afternoon. But I would help if anyone would just provide some idea where to start.
But I also really do not understand why this issue does not receive any attention. I guess the sound input just does not work in Ubuntu on at least 50% of laptops used today!

Revision history for this message
EAB (adair-boder) wrote :

This leaves me to wonder if most of us Ubuntu users are doomed to either only using older, better supported hardware .... or new hardware which is not fully supported and therefore does not deliver expected results!?
Will Ubuntu (Linux) ever be up-to-date? .. It's probably a "bad" question to be asking here ... ;)

Revision history for this message
EAB (adair-boder) wrote :

btw .. would a USB mic work?

Revision history for this message
skflyfish (jpeasley) wrote :

I have a Plantronics USB headset and the mic from it would not work either.

I am a programmer also, but not on a Linux/Unix platform, so the learning curve would be large for this someone over 55. Despite this drawback I am really happy with Ubuntu Linux and its stability and speed. And it's free price tag. After suffering for 25 years with M$ crap, I will never go back.

Revision history for this message
skflyfish (jpeasley) wrote :

Sound output just took a turn for the worse with 8.10. Now the internal speakers are way over modulated and scratchy even at lower volumes. Let all the way up it is deafening. If I try to record a message with Sound Recorder to test the mic, the elapsed time clock is way fast and eventually locks the program up.

Considering that I could barely hear the internal speakers under Vista it is an improvement. Just too much of a good thing. The speaker output under 8.04 was perfect. Just no input from the internal mic.

Jay

Revision history for this message
skflyfish (jpeasley) wrote :

The sound issues are related to the new Linux kernal. When I drop back to 2.6.24.21 then the sound output is fine again.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

Another voice to get it fixed:

This is a HP Pavilion dv6782eg (KN070EA)

I am an Kubuntu Intrepdi, uname -a:

Linux deneb 2.6.27-7-generic #1 SMP Thu Oct 30 04:12:22 UTC 2008 x86_64 GNU/Linux

lspci | grep Audio
00:07.0 Audio device: nVidia Corporation MCP65 High Definition Audio (rev a1)

Output of
cat /proc/asound/card*/codec\#*|grep -i codec
Codec: Conexant CX20561 (Hermosa)

I experience the same problem: Whatever combination of input / output settings (mute/unmute, 0%, 50%, 100% gain, ...) the internal microphone is mute / not working. Tried different sound servers.

BEWARE to other lurkers / readers: Some mentioned, that certain bios have a switch to disable the int. mic. Mine hasen't, so this is not the issue.

Johann

Revision history for this message
sibidiba (sibidiba) wrote :

I added regression to the description, as I see the problem for some people to disappear when using really old modules. (Gutsy and before). Internal mic stil doesn't work, but external one does.

I honestly encourage the ubuntu auio team to at least make a comment why snd-hda-intel is not working for so many people.

Revision history for this message
sibidiba (sibidiba) wrote :

I added regression to the description, as I see the problem for some people to disappear when using really old modules. (Gutsy and before). Internal mic stil doesn't work, but external one does.

I honestly encourage the Ubuntu Audio Team to at least make a comment why snd-hda-intel is not working for so many people.

Revision history for this message
EAB (adair-boder) wrote :

I upgraded to Intrepid and still have no mic, internal or external, working. The Sound Recorder seems to be broken as well ... when I press the record button is starts recording at super fast speeds ... like in a few seconds its already over 1 hour ... and then it just crashes.

Revision history for this message
EAB (adair-boder) wrote :

skflyfish, I had a a problem with the sound playback as well until I lowered PCM to about halfway ... and then it was great!

Revision history for this message
skflyfish (jpeasley) wrote :

Hi Zeth,

With the PCM at about 58% it is useable but still a bit scratchy. I usually boot back to 2.6.24.21 for this and other oddities that are happening.

btw:
lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

Revision history for this message
carnage (carnagewashere) wrote :

same problems for me now with 8.10 and before with 8.04.
internal mic has never worked although if i really yell into it i can hear it just faintly in the playback from sound recorder with pulseaudio running. also have the interesting and annoying bug where i unmute the mic (the 'toggle audio recording from..." button) in the volume control under the recording tab, close volume control, open it again and it's magically muted again.

haven't tried with an external mic

carnage@phatdave:~$ cat /proc/asound/card*/codec\#*|grep -i codec
Codec: Conexant CX20549 (Venice)
carnage@phatdave:~$ lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

cheers

Revision history for this message
EAB (adair-boder) wrote :

Why is the importance of this bug still "Undecided"?
What does it take for it to become important?

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

During the Intrepid development cycle the linux-ubuntu-modules package was merged with the linux kernel package. So it unfortunately seems this bug may have been getting overlooked. For now I'm going to retarget this bug to the actively developed linux kernel package.

For anyone still having issues, if you could please test the Intrepid Ibex 8.10 final release that came out last month that would be great. You should be able to test using a LiveCD. If you still experience issues please download the alsa-info.sh script at http://alsa-project.org/alsa-info.sh and attach the resulting file:

./alsa-info.sh --no-upload

@Zeth, the issue of the erratic elapsed recording time you are seeing is likely bug 282316 and should be resolved with the latest updates to alsa-plugins. Thanks.

Changed in linux-ubuntu-modules-2.6.24:
status: Confirmed → Incomplete
Revision history for this message
carnage (carnagewashere) wrote :
Revision history for this message
skflyfish (jpeasley) wrote :
Changed in linux:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
EAB (adair-boder) wrote :

I have reverted to Hardy after having far too many issues with Intrepid, including kernel panics.

I can definitely confirm that the mic issue was not solved in Intrepid with kernel 27-9 and under.

Revision history for this message
sibidiba (sibidiba) wrote :

I just upgraded to Intrepid. No change on the issue:

- internal mic still not working

- external mic still recognized as internal one

- input from external mic still remains unrecognizable

Revision history for this message
skflyfish (jpeasley) wrote :

http://www.vnunet.com/vnunet/news/2231970/ibm-readies-ms-free-desktop

As IBM has partnered with Canonical to help provide a MS free desktop, I hope this bug gets a bit higher priority. I work for an IBM business partner, and as much as I love Ubuntu, the internal mic and sound resume after suspend problems would make it hard to recommend Ubuntu to clients.

I personally won't be going back to MS as I love Ubuntu that much, but the sound issues in Ubuntu with regards to IBM/Lenovo machines, needs to be resolved before it can be main stream.

Revision history for this message
Rami Al-Rfou' (rmyeid) wrote :

@skflyfish

We all hope to make Ubuntu the best. This is a technical bug tracker, we are asked to report debug traces, configuration files and description to problems. I think ubuntu forum is better to discuss such news for IBM and canonical ;).

Anyway, I am asking if there is a mentor available, so I can spend my free time to dig the problem to solve in the upstream kernel.

Revision history for this message
sibidiba (sibidiba) wrote :

I'm not a kernel hacker, but I'm currently seriously hurt and disappointed by this bug.

I've huge experience in programming, and own an affected machine, I would gladly help in testing.

Revision history for this message
EAB (adair-boder) wrote :

I would be happy to help in any way I can as well.

Does anyone know if this bug is being worked on at all?

Revision history for this message
TimoVersemann (tversemann) wrote :

same problem on my thinkpad r61 with xubuntu8.10. no internal- and no external-mic.
Codec: Analog Devices AD1984

Revision history for this message
skflyfish (jpeasley) wrote :

Does anyone know if this issue will be addressed in 9.04?

Thanks,

Jay

Revision history for this message
Rami Al-Rfou' (rmyeid) wrote :

I tested alsa 0.1.19 in my intrepid with no success. Actually now sound input is worse

Daniel T Chen (crimsun)
Changed in linux:
assignee: ubuntu-audio → crimsun
Revision history for this message
Rami Al-Rfou' (rmyeid) wrote :

I upgraded to Jaunty with using alsa 1.0.18 and kernel 28-8 I can not find any improvement. Actually the output become also worse.

I tried to discuss this issue with audio team, and I think they are aware enough of the mic regressions that ubuntu users have. you can see that in the http://irclogs.ubuntu.com/2009/02/26/%23ubuntu+1.txt @[22:27]. Let us hope it will work.

Revision history for this message
c4pp4 (c4pp4) wrote :

Could someone please test my patch? I fixed built-in mic, PCM db gain and added Mixer capturing.
http://www.alsa-project.org/db/?f=2764204e4a4a2a3b5ce726467d741ca98ac0d228

Revision history for this message
c4pp4 (c4pp4) wrote :

There is a new model named "lenovor61i" inside attached patch_conexant.c file, so if your Subsystem is not 17aa:20ac but Node 0x14 is Ext Mic and Node 0x15 is Int Mic, you can try to use it, otherwise it's not necessary. I cleared Ext Mic and Int Mic sliders because they were useless.

Revision history for this message
c4pp4 (c4pp4) wrote :

First of all, patch is not included in the alsa git yet. I think it's important to discuss it before.

Example for applying the patch (I tried it with Intrepid and Jaunty; please don't do that if you don't know what's all about):

Download attached AlsaUpgrade-1.0.x-rev-1.16.sh script modified for conexant codec (upgrade to alsa 1.0.19; originally it's from here http://ubuntuforums.org/showthread.php?t=1046137).
Download above attached patch_conexant.c.patch file.
Launch AlsaUpgrade script with option -d (download the packages only):
sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh -d
Check /var/log/AlsaUpgradeRev-1.16-XXXXXX-XX.XX.log file if there was no problem.
Apply the patch:
sudo patch /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c patch_conexant.c.patch
If there is no problem launch AlsaUpgrade script with option -i (compilation and installation of packages):
sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh -i
After that, check /var/log/AlsaUpgradeRev-1.16-XXXXXX-XX.XX.log file if there was no problem.
Find out your subsystem id:
lspci -vnn | grep -A1 Audio
If you don't have subsystem id 17aa:20ac and you think that it could work, include "options snd-hda-intel model=lenovor61i" at /etc/modprobe.d/alsa-base file.
Then reboot.

Launch alsamixer:

F3 - playback controls: Master; PCM; IEC958; IEC958 Default PCM
PCM slider ought to be now at 100 with db gain 0.00, so there is no more distorted sound over 0.00 db.

F4 - capture controls: Mixer; (Digital?); ExtMic; Input; IntMic
Select capture source among Mixer; ExtMic; IntMic by pressing SPACE on it.
Input slider: lowest level is best for Mixer, highest level is best for Mics; if you press SPACE on it, you turn off capturing at all.
Digital slider: I don't know why it appears, leave it at 50 (db gain 0.00).

I have two questions:
How to name Mixer and Input slider? (or let it be as it is)
Do you want Ext Mic and Int Mic sliders back? (i think it's useless, it does nothing)

Thank you for testing.

Revision history for this message
c4pp4 (c4pp4) wrote :

The generated graph of Conexant CX20549 (Venice) (subsystem 17aa:20ac) after applying the patch.
http://helllabs.org/codecgraph/

Revision history for this message
c4pp4 (c4pp4) wrote :

If you use Gnome Sound Recorder (happens in Intrepid) watch out for alsamixer capture sliders setting, after the launch, it turns off capture flag for Input slider and sets lowest level for Digital slider, so you have to set it back.

Revision history for this message
Jaap Hoetmer (jaap.hoetmer) wrote :

Works great for me, PCM no longer distorts sound and can be set to max, and microphone works at last! I am a happy man, thank you!

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

Will this also fix the Connexant Issue with Hermosa codecs?

cat /proc/asound/card*/codec\#*|grep -i codec
Codec: Conexant CX20561 (Hermosa)

lspci -vnn | grep -A1 Audio
00:07.0 Audio device [0403]: nVidia Corporation MCP65 High Definition Audio [10de:044a] (rev a1)
        Subsystem: Hewlett-Packard Company Device [103c:30cf]

No way for me to test the patch ....

Revision history for this message
c4pp4 (c4pp4) wrote :

No, because it's a different codec. CX20549 (Venice) = Conexant 5045 and CX20561 (Hermosa) = Conexant 5051.
Have you tried model options "laptop" or "hp" at "/etc/modprobe.d/alsa-base"?

Revision history for this message
KathaL (k-luedke) wrote :

After applying the patch rhythumbox, video-player and audiorecorder (gstreamer??) didn't work any longer... But youtube and vlc work and skype does recognize the micro at last.

Any ideas?

Revision history for this message
skflyfish (jpeasley) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

I finally get a mic that works in Skype now. The digital input comes set
to 50% and works well at that setting. This makes me very happy!

The PCM playback does not distort anymore but some Hulu videos have the
sound levels recorded kinda low and they are hard to hear now. Amarok
works well with the changes as do the video plugins in Firefox.

Thanks!

c4pp4 wrote:
> Could someone please test my patch? I fixed built-in mic, PCM db gain and added Mixer capturing.
> http://www.alsa-project.org/db/?f=2764204e4a4a2a3b5ce726467d741ca98ac0d228
>
> ** Attachment added: "against alsa-driver-1.0.19"
> http://launchpadlibrarian.net/24165689/patch_conexant.c.patch
>
>

Revision history for this message
c4pp4 (c4pp4) wrote :

KathaL:

I think it's a pulseaudio vs. alsa problem and has nothing to do with the patch, for example try to force either pulse or alsa in Gnome Sound settings.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :

@c4pp4 I added this line, but I do not have a problem with audio output but I experience the same problem as described in this thread. So I hoped that a fix for Venice codec would also fix mine with Hermosa codec.

Should I open a separate bug report? My strong suspicion is that Venice fix will fix Hermosa too, as exactly the problems described apply.

Revision history for this message
c4pp4 (c4pp4) wrote :

@jhoechtl

Unfortunately, as I said, it's not the same codec. Look at Venice: http://helllabs.org/codecgraph/out/hp-spartan.svg and Hermosa: http://helllabs.org/codecgraph/out/hp-spartan-ng.svg

There is no need to open a new bug because it's already opened here: https://bugtrack.alsa-project.org/alsa-bug/login.php?username=guest&password=guest&return=/alsa-bug/view.php%3Fid%3D3964
You should send to bugtrack of alsa the output of alsa script: http://www.alsa-project.org/alsa-info.sh and the output of codecgraph tool: http://helllabs.org/codecgraph/
If I'll have some time, I'll check it and try to find a solution.

Revision history for this message
jhoechtl (johann-hoechtl) wrote :
Revision history for this message
EAB (adair-boder) wrote :

Is this issue anywhere near being resolved? Is there any other distro that would work fine in regards to audio input?

Revision history for this message
c4pp4 (c4pp4) wrote :

I removed old patch because I rewrote it. I removed mixer, renamed model to "lenovo" and now it automatically changes between built-in mic and mic jack, so there is no need to change it manually (there is no options), overriding max PCM level to 0 dB stays.

I don't know, how to apply patch to alsa project, could anyone help please?

There are two attached patches (first file is mic and pcm patch, second one is model name patch, both against alsa-driver-1.0.19) here: https://bugtrack.alsa-project.org/alsa-bug/login.php?username=guest&password=guest&return=/alsa-bug/view.php%3Fid%3D4163

Revision history for this message
EAB (adair-boder) wrote :

c4pp4:

I am trying to get my R61 Thinkpad mic working. Do you have a step by step how-to on applying your latest patches?
I was trying to follow the older how-to but got stuck on the last command:

zeth@zeth-r61:~/Desktop$ ls
AlsaUpgrade-1.0.x-rev-1.16.sh

zeth@zeth-r61:~/Desktop$ sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh
sudo: ./AlsaUpgrade-1.0.x-rev-1.16.sh: command not found

Revision history for this message
EAB (adair-boder) wrote :

I tried this comand:

sudo sh ./AlsaUpgrade-1.0.x-rev-1.16.sh -d

and its downloading the update file.

But what about the latest patches you made ... how does one implement them?

Revision history for this message
EAB (adair-boder) wrote :

Will this fix work in Ubuntu Hardy?

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth
Download patch from here: https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/278648/comments/55
Older howto could be ok.

zeth@zeth-r61:~/Desktop$ sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh
sudo: ./AlsaUpgrade-1.0.x-rev-1.16.sh: command not found

It's because the file has not execution flag. Try this:
chmod u+x AlsaUpgrade-1.0.x-rev-1.16.sh

Revision history for this message
EAB (adair-boder) wrote :

OK this is as far I went so far with the two most recent patches:

zeth@zeth-r61:~/Desktop$ sudo sh ./AlsaUpgrade-1.0.x-rev-1.16.sh -d
[: 99: Illegal number:

-------------------------------------------------------------
- Alsa will be downloaded only
-------------------------------------------------------------

Choose Alsa Package (1) 1.0.19 default[1]:

--Thu Apr 9 12:17:07 CST 2009----Alsa-Upgrade-Script-1.16 -----------------
-
- You'll be upgraded from 1.0.16.
kernel to 1.0.19.
-
- All script output is routed to /var/log/AlsaUpgradeRev-1.16-040909-12.17.log
- Run tail -f <logfile> in a seperate terminal to follow the upgrade
-
- Reboot your machine afterwards.
-
- Enjoy - meet you at ubuntuforums.org or diy-audio.com
- soundcheck
---------------------------------------------------------------------------

Upgrade in progress..The process can take up to 15minutes.....Be patient!
zeth@zeth-r61:~/Desktop$ sudo patch /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c patch_conexant.c.patch
patching file /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c
zeth@zeth-r61:~/Desktop$ sudo patch /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c HD-Audio-Models.txt.patch
patching file /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c
Hunk #1 FAILED at 244.
1 out of 1 hunk FAILED -- saving rejects to file /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c.rej
zeth@zeth-r61:~/Desktop$

Revision history for this message
c4pp4 (c4pp4) wrote :

- You are going wrong way, try again from start and skip the line with
zeth@zeth-r61:~/Desktop$ sudo patch /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c HD-Audio-Models.txt.patch
- Use only:
sudo patch /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/pci/hda/patch_conexant.c patch_conexant.c.patch
- If you want to apply model information patch (it's not necessary), instead of your command, use this:
sudo patch /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/Documentation/HD-Audio-Models.txt HD-Audio-Models.txt.patch

Revision history for this message
EAB (adair-boder) wrote :

Thanks for that!!! Its working.... WOW! Your a champ!

Revision history for this message
EAB (adair-boder) wrote :

I posted a short-ish how-to on getting this fixed using the patches and upgraded Alsa on my blog.

http://fsrc.wordpress.com/2009/04/11/conexant-cx20549-venice-sound-input-working/

I hope its alright and I didn't forget anything ...

Revision history for this message
Petr Svoboda (weits666) wrote :

I tried your patch on my jaunty system on thinkpad r61. Everything seems to go right, but now I have no sound.
Here is my dmesg part:

[ 12.587456] HDA Intel 0000:00:1b.0: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[ 12.616373] hda_intel: probe_mask set to 0x1 for device 17aa:20ac
[ 12.645708] HDA Intel 0000:00:1b.0: setting latency timer to 64
[ 12.684411] hda-codec: No codec parser is available
[ 12.713378] ALSA /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/pci/hda/hda_intel.c:1298: hda-intel: no codecs initialized
[ 12.743565] HDA Intel 0000:00:1b.0: PCI INT B disabled

Can you please help me to make it working?

Revision history for this message
skflyfish (jpeasley) wrote :

Today 'another' update to proposed kernal 2.6.27-14-generic was downloaded and applied and now all sound (in and out) does not work on my R61. If I go back to kernal 2.6.27-13 I get sound out again. I am unsure if I need to re-apply the patch, or what.

Revision history for this message
c4pp4 (c4pp4) wrote :

@skflyfish

Sound works on my install of Ubuntu 8.10 after the update.

Revision history for this message
EAB (adair-boder) wrote :

@skflyfish

I would re-apply the patch.

@c4pp4

Do you think you could help out with this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/344627/

Revision history for this message
skflyfish (jpeasley) wrote :

@zeth

thanks for the tip. i downloaded the patches last night but haven't re-applied them yet.

@c4pp4

did this patch get into jaunty?

thanks!

Revision history for this message
c4pp4 (c4pp4) wrote :

@skflyfish

this patch is not included in jaunty, it's not included in alsa project at all, I don't know how to do that, if anyone could help, it would be great!

@zeth

I don't know but anyway there is no useful info about that, try alsa-info.sh script: http://www.alsa-project.org/alsa-info.sh

Revision history for this message
EAB (adair-boder) wrote :

 http://www.alsa-project.org/db/?f=a10f20b832b5f1aad3993a4044e99f93f4487981

There it is...

I also put it on the other Bug thread.

Thanks man ...

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth
I look at it later if you don't mind.

What about if I build jaunty generic kernel with the patch and upload it to Ubuntu Personal Package Archive? Have anyone of you PPA?

Revision history for this message
c4pp4 (c4pp4) wrote :

I prepared patched kernel for JAUNTY, so check it out from my PPA:
https://launchpad.net/~c4pp4/+archive/cx20549

apt sources.list entries:
deb http://ppa.launchpad.net/c4pp4/cx20549/ubuntu jaunty main
deb-src http://ppa.launchpad.net/c4pp4/cx20549/ubuntu jaunty main

my key:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 42FA88E8

notes:
- just upgrade kernel from my cx20549 repository to fix built-in mic and max PCM level to 0 db (tested)
- to remove before installed modules by AlsaUpgrade script try to run "sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh -r" (I haven't tried it).

@skflyfish
Hi Jay, so Daniel T Chan haven't answered yet. I guess we must wait if someone from developers apply it.

Revision history for this message
Rami Al-Rfou' (rmyeid) wrote :
Revision history for this message
c4pp4 (c4pp4) wrote :

@Ramy Eid
I'll prepare patched kernel for Karmic when the official release comes out.

Revision history for this message
c4pp4 (c4pp4) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

Has any of this work gone upstream?

On Oct 23, 2009 3:25 PM, "c4pp4" <email address hidden> wrote:

Karmic patched kernel ready.

https://launchpad.net/~c4pp4/+archive/cx20549

-- [regression]snd-hda-intel sound input does not work at all with Conexant
CX20549 (Venice) chips ...

Revision history for this message
c4pp4 (c4pp4) wrote :

@Daniel T Chen

None.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Ok, let's review this work after Karmic final releases so that we can
push it upstream.

Revision history for this message
Rami Al-Rfou' (rmyeid) wrote :

@Daniel: can the patch added to the backports for karmic.

Revision history for this message
EAB (adair-boder) wrote :

@c4pp4: Sorry, how do I go about getting this to work in Karmic? Tks

Revision history for this message
Jaap Hoetmer (jaap.hoetmer) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

Hi Zeth. Follow the instructions here
(https://launchpad.net/~c4pp4/+archive/cx20549) to add the repo with the
modified kernel, update & upgrade and it should work. Works for me.

Jaap
-----Original Message-----

From: Zeth <email address hidden>

To: <email address hidden>

Date: Wed, 04 Nov 2009 05:43:34 -0000

Subject: [Bug 278648] Re: [regression]snd-hda-intel sound input does not
work at all with Conexant CX20549 (Venice) chips

@c4pp4: Sorry, how do I go about getting this to work in Karmic? Tks

--

[regression]snd-hda-intel sound input does not work at all with Conexant
CX20549 (Venice) chips

https://bugs.launchpad.net/bugs/278648
[https://bugs.launchpad.net/bugs/278648]

You received this bug notification because you are a direct subscriber

of the bug.

Revision history for this message
J.P. (mackdieselx27) wrote :

I've submitted 476174 in hopes of getting this patch into both upstream and Lucid.

Revision history for this message
EAB (adair-boder) wrote :

Have any of you noticed this issue in Karmic? https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/449723

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth

It sounds like problem described here https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/452343
Workaround from Colin King (#6) works for me.

Revision history for this message
EAB (adair-boder) wrote :

Thanks - That worked!

Revision history for this message
EAB (adair-boder) wrote :
Revision history for this message
EAB (adair-boder) wrote :

I updated the kernel today from the PPA repo and my mic is not working ... any thoughts?

Using: 2.6.31-16-generic

Revision history for this message
skflyfish (jpeasley) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

Hi Zeth.

I updated mine yesterday and the mic works fine. FWIW.

Jay

-----Original Message-----
From: Zeth <email address hidden>
Reply-to: Bug 278648 <email address hidden>
To: <email address hidden>
Subject: [Bug 278648] Re: [regression]snd-hda-intel sound input does not
work at all with Conexant CX20549 (Venice) chips
Date: Tue, 08 Dec 2009 07:38:00 +0000

I updated the kernel today from the PPA repo and my mic is not working
... any thoughts?

Using: 2.6.31-16-generic

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth

try the command:
aptitude show linux-image-2.6.31-16-generic | grep -e "State" -e "Version"

it had to show:
State: installed
Version: 2.6.31-16.52ubuntu1~ppa1~karmic1

Revision history for this message
EAB (adair-boder) wrote :

@c4pp4

output is:

State: installed
Version: 2.6.31-16.52ubuntu1~ppa1~karmic1

This morning I booted up and noticed that the mic was picking up sound (which was not the case yesterday) but that Skype was not picking up the input. I disabled allowing Skype to manage the mixer levels and readjusted the mic volume to 100% - and Bingo - back to normal! :)

Revision history for this message
EAB (adair-boder) wrote :

I just updated to the 2.6.31-19.56 kernel and noticed that it's not the one from the PPA ... so mic not working and sound all distorted again ...
I checked for more updates and nothing was found even though I have the repo in my sources and it was working smoothly in my previous kernel and all kernel's before that.
I went here (https://launchpad.net/ubuntu/karmic/+source/linux/2.6.31-19.56) and noticed that the only package listed was labeled "2.6.31-17.54ubuntu1~ppa1~karmic1" so it's not the one that I need.
Where do i get the package update that I need for my 19-56 kernel?

Revision history for this message
skflyfish (jpeasley) wrote :

Zeth,

c4pp4 has been graciously been providing the corrected kernel when each
one comes out. (many thanks c4pp4) I just got 2.6.31-18 today from the
pre-release repository. I kinda doubt if c4pp4 has had a chance to apply
it to 2.6.31-19.

Here is his PPA. http://ppa.launchpad.net/c4pp4/cx20549/ubuntu

HTH,

Jay
-----Original Message-----
From: Zeth <email address hidden>
Reply-to: Bug 278648 <email address hidden>
To: <email address hidden>
Subject: [Bug 278648] Re: [regression]snd-hda-intel sound input does not
work at all with Conexant CX20549 (Venice) chips
Date: Sat, 06 Feb 2010 02:29:21 +0000

I just updated to the 2.6.31-19.56 kernel and noticed that it's not the one from the PPA ... so mic not working and sound all distorted again ...
I checked for more updates and nothing was found even though I have the repo in my sources and it was working smoothly in my previous kernel and all kernel's before that.
I went here (https://launchpad.net/ubuntu/karmic/+source/linux/2.6.31-19.56) and noticed that the only package listed was labeled "2.6.31-17.54ubuntu1~ppa1~karmic1" so it's not the one that I need.
Where do i get the package update that I need for my 19-56 kernel?

Revision history for this message
EAB (adair-boder) wrote :

I am using Ubuntu Karmic 64bit and never even got the 31-18 kernel but went straight from 31-17 to 31-19. In going to https://launchpad.net/~c4pp4/+archive/cx20549 I find only the 31-17 package .. so where did you get the 31-18 package update from? - what "pre-release" repo are you talking about?

Ta

Revision history for this message
skflyfish (jpeasley) wrote :

Hi Zeth,

Sorry it was late for me when I last replied. I just received 31-19 from
the pre-release updates/repository. I get pre-release updates by; Admin
----> Software Sources ----> Updates tab ------> tick the Pre-Release
updates. I am using Karmic 32 bit, btw.

c4pp4 usually comes out with his path after the new kernel comes is
released. So his patch for 31-18 and 31.19 may be forthcoming. Hopefully
all is well with c4pp4. Again I appreciate your work!

Jay

-----Original Message-----
From: Zeth <email address hidden>
Reply-to: Bug 278648 <email address hidden>
To: <email address hidden>
Subject: [Bug 278648] Re: [regression]snd-hda-intel sound input does not
work at all with Conexant CX20549 (Venice) chips
Date: Sat, 06 Feb 2010 06:05:42 +0000

I am using Ubuntu Karmic 64bit and never even got the 31-18 kernel but
went straight from 31-17 to 31-19. In going to
https://launchpad.net/~c4pp4/+archive/cx20549 I find only the 31-17
package .. so where did you get the 31-18 package update from? - what
"pre-release" repo are you talking about?

Ta

Revision history for this message
EAB (adair-boder) wrote :

Hey .. got the update today!

c4pp4, thank you SO SO SO much for keeping this patch coming!

Revision history for this message
Giacinto Palmieri (youcancallmegiac) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

All, I'm new to all this, how can I get this patch? Thank you very much. Giac

On Tue, Feb 9, 2010 at 10:42 AM, Zeth <email address hidden> wrote:
> Hey .. got the update today!
>
> c4pp4, thank you SO SO SO much for keeping this patch coming!
>
> --
> [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips
> https://bugs.launchpad.net/bugs/278648
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “linux” package in Ubuntu: Triaged
> Status in “linux-ubuntu-modules-2.6.24” package in Ubuntu: New
>
> Bug description:
> On Lenovo R61i the sound input does not work at all.
>
> I am using snd-hda-intel as the driver for
>
> 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
>
> The built in microphone does not work at all, it always produces silence. Moreover the mixer settings of the silent internal and the (buggy) external microphone are interchanged.
>
> If I try to use any external microphone the sound is utterly jerky, unusable.
> The interesting thing is, that if I turn on and unmute the external mic (with the slider of the internal mic) the echoed sound in the speakers is clear, just the recording result is broken.
>
> Try to record with any app. Some of them produce just silence or just crash (kmix). If there is some sound (noise), it is unrecognisable (skype test call).
>
> alsa-info.sh output:
> http://www.alsa-project.org/db/?f=2fa082c485afdcefadcecbe179b0f199b7f3ce70
>
> upstream bugreport:
> https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4163
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/278648/+subscribe
>

Revision history for this message
Jaap Hoetmer (jaap.hoetmer) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

Hi Giacinto,

The easiest is to add c4pp4's repo to your apt config, see here:
https://launchpad.net/~c4pp4/+archive/cx20549
[https://launchpad.net/~c4pp4/+archive/cx20549]

Cheers,

Jaap

-----Original Message-----

From: Giacinto Palmieri <email address hidden>

To: <email address hidden>

Date: Tue, 09 Feb 2010 10:52:21 -0000

Subject: [Bug 278648] Re: [regression]snd-hda-intel sound input does not
work at all with Conexant CX20549 (Venice) chips

All, I'm new to all this, how can I get this patch? Thank you very much.

Giac

On Tue, Feb 9, 2010 at 10:42 AM, Zeth <email address hidden> wrote:

> Hey .. got the update today!

>

> c4pp4, thank you SO SO SO much for keeping this patch coming!

>

> --

> [regression]snd-hda-intel sound input does not work at all with Conexant
CX20549 (Venice) chips

> https://bugs.launchpad.net/bugs/278648
[https://bugs.launchpad.net/bugs/278648]

> You received this bug notification because you are a direct subscriber

> of the bug.

>

> Status in “linux” package in Ubuntu: Triaged

> Status in “linux-ubuntu-modules-2.6.24” package in Ubuntu: New

>

> Bug description:

> On Lenovo R61i the sound input does not work at all.

>

> I am using snd-hda-intel as the driver for

>

> 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
Controller (rev 03)

>

> The built in microphone does not work at all, it always produces silence.
Moreover the mixer settings of the silent internal and the (buggy) external
microphone are interchanged.

>

> If I try to use any external microphone the sound is utterly jerky,
unusable.

> The interesting thing is, that if I turn on and unmute the external mic
(with the slider of the internal mic) the echoed sound in the speakers is
clear, just the recording result is broken.

>

> Try to record with any app. Some of them produce just silence or just
crash (kmix). If there is some sound (noise), it is unrecognisable (skype
test call).

>

> alsa-info.sh output:

> http://www.alsa-project.org/db/?f=2fa082c485afdcefadcecbe179b0f199b7f3ce70
[http://www.alsa-project.org/db/?f=2fa082c485afdcefadcecbe179b0f199b7f3ce70]

>

> upstream bugreport:

> https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4163
[https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4163]

>

> To unsubscribe from this bug, go to:

> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/278648/+subscribe
[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/278648/+subscribe]

>

** Bug watch added: ALSA Bug Tracker #4163

   https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4163
[https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4163]

--

[regression]snd-hda-intel sound input does not work at all with Conexant
CX20549 (Venice) chips

https://bugs.launchpad.net/bugs/278648
[https://bugs.launchpad.net/bugs/278648]

You received this bug notification because you are a direct subscriber

of the bug.

Revision history for this message
EAB (adair-boder) wrote :

I continue to get the update for the wrong kernel before the PPA version comes out ... is there a way to make this not happen? My sound gets completely messed up and distorted each time my kernel updates ...

Revision history for this message
EAB (adair-boder) wrote :

What does it take nowadays for a bug fix to be implemented in the official kernel?

Revision history for this message
EAB (adair-boder) wrote :

I really need the patched kernel .... c4pp4 .... you around still? :)

Revision history for this message
c4pp4 (c4pp4) wrote :

Summary:

command:
lspci -vnn | grep -A1 Audio
output:
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
Subsystem: Lenovo Device [17aa:20ac]

command:
cat /proc/asound/card*/codec\#*|grep -i codec
output:
Codec: Conexant CX20549 (Venice)

Problem with it:
Lenovo R61i built-in microphone doesn't work at all.
Lenovo R61i and Fujitsu V5505 [1734:110e] output sound is distorted when volume is 100% because PCM level is over 0db (e.g. bug #285866,#290463,#291798,#461521).

Solution:
To correct situation you can update your system with package from my PPA by adding ppa:c4pp4/cx20549 to your system's Software Sources.
(https://launchpad.net/~c4pp4/+archive/cx20549)
New update comes out about a week after the official kernel so please be patient and upgrade later from my PPA (except critical security reasons!).

You can force setting (in case of different subsystem id) by editing /etc/modprobe.d/alsa-base
- with "options snd-hda-intel model=lenovo" for Lenovo R61i settings (mic and pcm)
- with "options snd-hda-intel model=laptop-hpmicsensepcm" for Fujitsu V5505 settings (pcm)

I'm also including patch for Karmic and Lucid.

Revision history for this message
c4pp4 (c4pp4) wrote :

Karmic patch.

Revision history for this message
c4pp4 (c4pp4) wrote :

Lucid patch.

Revision history for this message
EAB (adair-boder) wrote :

Cool .. Sorry, I did not mean to seem impatient. Thanks for clarifying the "release schedule" for the patched kernel.

Can I what the other patches are for? Are they so we can apply the patch ourselves to our running kernel?

Also, would the setting for the R61i be the same for the R61?

Thanks again for all your support!

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth
Answer1: You can't apply it to running kernel, you must recompile kernel to apply it.
Answer2: I think so, it's the same subsystem 17aa:20ac, isn't it?

Revision history for this message
EAB (adair-boder) wrote :

@c4pp4
Yes, it would seem we have the exact same hardware, at least with audio.

zeth@zeth-r61-64:~$ lspci -vnn | grep -A1 Audio
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
 Subsystem: Lenovo Device [17aa:20ac]
zeth@zeth-r61-64:~$ cat /proc/asound/card*/codec\#*|grep -i codec
Codec: Conexant CX20549 (Venice)

tags: added: patch
Revision history for this message
c4pp4 (c4pp4) wrote :
Revision history for this message
skflyfish (jpeasley) wrote :

First off this is NOT a complaint. ;-)

Can anyone point me to the procedure for having a fix permanently applied to the kernal? I am not familiar with the process and would like to know.

Thx,

Jay

Revision history for this message
Angus (eightmillion) wrote :

I have the same hardware:

$ lspci -vnn | grep -A1 Audio
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
        Subsystem: Hewlett-Packard Company Device [103c:30d9]
$ cat /proc/asound/card*/codec\#*|grep -i codec
Codec: Conexant CX20549 (Venice)

I added c4pp4's PPA and now I have no volume controls for the internal or external mic. Before, I had volume sliders. Sound works fine both before and after upgrading the kernel. The microphone just doesn't work either way.

Revision history for this message
c4pp4 (c4pp4) wrote :

@Angus

1)
Right click and "Save as" the link: http://www.alsa-project.org/alsa-info.sh

Terminal:
chmod +x utils_alsa-info.sh
./utils_alsa-info.sh

Yes to "Automatically upload ALSA information to www.alsa-project.org?"

Give me the link.

2)
Have you changed /etc/modprobe.d/alsa-base with "options snd-hda-intel model=lenovo"?

Revision history for this message
Angus (eightmillion) wrote :

c4pp4,

1)
That alsa-info.sh script does not give me a URL when I tell it to upload the information. It just outputs "Your ALSA information is located at", with no URL. I took the output file from /tmp and uploaded it to pastebin here: http://pastebin.org/170674

I hope that's what you need.

2)
Yes I have added that line to /etc/modprobe.d/alsa-base. Without that line, there's no difference from before switching kernels.

Thanks for your attention.

Revision history for this message
J.P. (mackdieselx27) wrote :

For what it's worth I'm currently testing the Lucid RC and the problems with the mic and elevated sound levels still persist. I have a bug open at 476174 for those interested in the apport-collect output. Unfortunately I can't test the mainline kernel (using the live CD right now) so if someone wants to help out, have at it.

Revision history for this message
c4pp4 (c4pp4) wrote :

@Angus
Your hardware is not the same. Go back to the official kernel release, edit /etc/modprobe.d/alsa-base and try models: "laptop-hpsense", "laptop-micsense", "laptop-hpmicsense", "benq", "laptop-hp530" and "test". Email me a result.

Revision history for this message
jaygade (jaygade-yahoo) wrote :

@c4pp4
Been trying to track down a fix for this and no dice so far.
I added "options snd-hda-intel model=lenovo" to my alsa-base.conf. I had also tried "model=thinkpad".

Then I tried the Alsa-Upgrade and brought my version up to 1.0.23.

Then I applied your Lucid-patched kernel from your PPA with the same result: playback works, but still nothing on the mic. I've tried adjusting levels with alsamixer with no result.

My alsa-info.sh output is here: http://www.alsa-project.org/db/?f=b4cf4902ab704c1fc4aa2ada9c11d72a086b2f4e

Hardware is a Lenovo Thinkpad R61i 8932-A54, running Ubuntu 10.04. I think the other info is in the alsa-info output.

Thanks for your help on this.

Revision history for this message
c4pp4 (c4pp4) wrote :

First of all - I removed Modified Alsa Upgrade script because it's obsolete.

@jaygade

you wrote: Then I applied your Lucid-patched kernel from your PPA with the same result: playback works, but still nothing on the mic. I've tried adjusting levels with alsamixer with no result.

Patched kernel from my PPA has no mic levels in alsamixer!

I recommend a clean install of Ubuntu. Then add my PPA and upgrade kernel from it. Sound and mic should be ok because your hardware codec is the same as mine. Don't specify model to alsa-base.conf because your subsystem id is correct (17aa:20ac). Use sound applet to adjust mic volume level.

Revision history for this message
EAB (adair-boder) wrote :

I can confirm that the Lucid patched kernel works in Ubuntu 10.04 after upgrading from 9.10.
Thanks c4pp4!

Revision history for this message
jaygade (jaygade-yahoo) wrote :

Okay, I was hoping not to have to reinstall but that did the trick. Thanks!

I had previously been running wubi Ubuntu 9.04 and then 9.10 on this laptop but was dismayed at the lack of microphone (and the overdriving of the speakers, though that wasn't as bad). Now I'm running a full install and with your fix the microphone and speakers seem to be working just fine.

Thank you very much!

Any chance this will be patched in permanently or does it break others' setups?

Revision history for this message
c4pp4 (c4pp4) wrote :

I've rewritten the patch. No changes, I've just reduced the code. I'm removing old patches and including new one for Lucid.

@jaygade
I think it's up to Daniel T Chan. It doesn't break anything.

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

On Wed, May 12, 2010 at 10:43 PM, c4pp4 <email address hidden> wrote:
> I think it's up to Daniel T Chan. It doesn't break anything.

It actually isn't up to me. I can help push it upstream if necessary, however.

Revision history for this message
c4pp4 (c4pp4) wrote :

@Daniel T Chen
It would be great. Thanks.

Revision history for this message
c4pp4 (c4pp4) wrote :

@Daniel T Chen
What am I supposed to do? Do you need some comments?

Revision history for this message
c4pp4 (c4pp4) wrote :

I've rewritten the patch. Fixed forcing lenovo settings with different subsystem id. I'm removing old patch and including new one (kernel 2.6.32 - Lucid).

Revision history for this message
skflyfish (jpeasley) wrote :

I am wondering if @c4pp4's work was integrated into kernel 2.6.32-23?

After upgrading to this kernel, the output volume matches his patch.

Unfortunately, the mic still doesn't work.

Thx,

Jay

Revision history for this message
c4pp4 (c4pp4) wrote :

@skflyfish
Upgrade Lucid from my ppa (it doesn't upgrade lucid-proposed!):

sudo add-apt-repository ppa:c4pp4/cx20549
sudo apt-get update
sudo apt-get upgrade

Revision history for this message
c4pp4 (c4pp4) wrote :

The last Lucid kernel release (2.6.32-23.37) fixes Lenovo max PCM level to 0 dB. I am very happy that the Lenovo sound is no more distorted.

BUT:
The fix was added by Daniel T Chen on Mon, 10 May 2010 19:50:04 +0000 (21:50 +0200):
http://git.alsa-project.org/?p=alsa-kernel.git;a=commitdiff;h=0ebf9e3692d640917fb792a7494d05e1f5b1058f
based on Tim Starling request on Mon May 10 09:15:51 CEST 2010:
http://mailman.alsa-project.org/pipermail/alsa-devel/2010-May/027525.html
It taked only one day from the request time to the apply time.
The fix here is more than a year (successfully tested) and nobody (from developers) was interested :-(

Anyway I've removed that part (fixing max PCM) from the patch.

Revision history for this message
Donny Kurnia (donnykurnia) wrote :

@c4pp4, many thanks for your effort to provide this patch. Too bad the kernel developers still not willing to integrate it into the main kernel.

Revision history for this message
skflyfish (jpeasley) wrote :

Yes, thank you very much @c4pp4!

Revision history for this message
c4pp4 (c4pp4) wrote :

Hello, I've changed the repository location and I've decided to offer the custom kernel with lenovo microphone patch and intel linux-phc patch together. So if you are interested, you can try lucid (tested) or maverick (needs feedback) kernel. My older repository has been deleted.

Howto (erase old one and add new c4pp4 repository):
sudo rm /etc/apt/sources.list.d/c4pp4-*
sudo add-apt-repository ppa:c4pp4/ppa
sudo apt-get update
sudo apt-get upgrade

Repository link:
https://launchpad.net/~c4pp4/+archive/ppa

Revision history for this message
Eugene Savelov (savelov) wrote :

tested the above kernel on Maverick with Thinkpad R61i .
Microphone works correctly

Revision history for this message
c4pp4 (c4pp4) wrote :

@Eugene Savelov

Thank you!

Revision history for this message
chris nuss (chris-nusstabox) wrote :

This is the only kernel that works for internal mic sound input on my lenovo R61i thinkpad running Maverick. Thanks c4pp4. I have been using your patched kernel for the past year (lucid and maverick), except when I need to run the 'rt' version.... Thanks again.

Revision history for this message
jhoechtl (johann-hoechtl) wrote : Re: [Bug 278648] Re: [regression]snd-hda-intel sound input does not work at all with Conexant CX20549 (Venice) chips

What or who is holding this patch back from getting into mainstream?

Revision history for this message
Andy Whitcroft (apw) wrote :

From what I've read in the bug Daniel offered to help, I assume if the patch was sent to the alsa-devel list it would get consideration.

Revision history for this message
c4pp4 (c4pp4) wrote :

@Andy Whitcroft
Here is the latest patch, so you can try it.

Revision history for this message
andrey_campbell (andreycampbell) wrote :

@c4pp4:

I have a Fujitsu-Siemens V5545 using a Conexant CX20549 (Venice) chipset. I applied your patch but the microphone is still not functional. When using the "lenovo" model the input devices disappear from my list of devices as shown by "alsamixer -D hw:0".

When using the "laptop-hpsense", "laptop-micsense", "laptop-hpmicsense", "benq", "laptop-hp530" models, and AFTER I unmute and raise the volume level for my input devices inside "alsamixer -D hw:0", I can hear some crackling noise coming from my laptop's speakers when I plug / unplug my external microphone. Even so, the microphone does not appear to actually work - trying to record something in Audacity results in silence (actually in a slight "digital equipment"-like noise).

When using the "test" model and after raising the volume level for all devices I can find in "alsamixer -D hw:0" I can't even hear that crackling noise...

What do you suggest I should try next? I'm not work-shy and don't expect solutions to be delivered on a plate, so please do tell whatever you have in mind.

Revision history for this message
c4pp4 (c4pp4) wrote :

@andreic

see #51 and #52

Revision history for this message
Andy Whitcroft (apw) wrote :

A variation of the patch attached here seems to be applied to Natty. Could someone with this hardware please test a natty kernel and confirm whether it works there. Please report any testing here. Thanks.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
c4pp4 (c4pp4) wrote :

@Andy Whitcroft
I'll prepare a Natty ppa kernel to test.

Revision history for this message
c4pp4 (c4pp4) wrote :

Natty ppa kernel ready to test: https://launchpad.net/~c4pp4/+archive/ppa
I have patched version "2.6.38-7.36".
The patch is attached.

@Andy Whitcroft
Tested on my computer and everything is OK

Revision history for this message
c4pp4 (c4pp4) wrote :

@Andy Whitcroft
I forgot to note that without the patch it doesn't work.

Revision history for this message
EAB (adair-boder) wrote :

What's the situation with 11.04?
I added the repo info and imported the key ... did apt-get update and apt-get upgrade, but nothing took ..

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth

The situation is very simple. I made the natty patch and the natty ppa for testing (see #140). Nobody was interested, nobody told me why the status is still incomplete, so I deleted the natty ppa after some time.

Now I'm providing what I'm using = the repo is only for Ubuntu 10.04 LTS.

10.10, 11.04 and 11.10 doesn't work out of the box. Still the same bug.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lenovo_mic.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
EAB (adair-boder) wrote :

@c4pp4

I am very sorry to hear that after all your hard work your fixes are not being properly noted! It's a real shame!

Would you still be able to upload the fixes for 11.04, or is that no longer in the cards!?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-ubuntu-modules-2.6.24 (Ubuntu):
status: New → Confirmed
Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth

Sorry, as mentioned previously - now only ppa for 10.04.

Revision history for this message
EAB (adair-boder) wrote :

"Status changed to 'Confirmed' because the bug affects multiple users."

Is this a good thing? :)

Revision history for this message
c4pp4 (c4pp4) wrote :
Revision history for this message
EAB (adair-boder) wrote :

Oh cool!!! Thanks so much c4pp4 ... how do I go about applying this patch to my system?

Revision history for this message
c4pp4 (c4pp4) wrote :
c4pp4 (c4pp4)
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 278648

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
EAB (adair-boder) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: zeth 1593 F.... pulseaudio
 /dev/snd/pcmC0D0c: zeth 1593 F...m pulseaudio
 /dev/snd/pcmC0D0p: zeth 1593 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf8300000 irq 47'
   Mixer name : 'Conexant CX20549 (Venice)'
   Components : 'HDA:14f15045,17aa20db,00100100'
   Controls : 12
   Simple ctrls : 7
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 7KHT24WW-1.08'
   Mixer name : 'ThinkPad EC 7KHT24WW-1.08'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=d8eefe5a-fbfc-4ab9-86cd-fd6d365cd74e
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MachineType: LENOVO 8932CTO
Package: linux-ubuntu-modules-2.6.24
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=dfba5702-82d2-4e61-9810-57a2b310a7cf ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-12.20ubuntu1~ppa1~oneiric3-generic 3.0.4
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-12-generic N/A
 linux-backports-modules-3.0.0-12-generic N/A
 linux-firmware 1.60
Tags: oneiric running-unity
Uname: Linux 3.0.0-12-generic x86_64
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (11 days ago)
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev sambashare tape vboxusers video
dmi.bios.date: 02/20/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 7OETB2WW (2.12 )
dmi.board.name: 8932CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7OETB2WW(2.12):bd02/20/2008:svnLENOVO:pn8932CTO:pvrThinkPadR61:rvnLENOVO:rn8932CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 8932CTO
dmi.product.version: ThinkPad R61
dmi.sys.vendor: LENOVO

tags: added: apport-collected oneiric running-unity
Revision history for this message
EAB (adair-boder) wrote : AcpiTables.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : AlsaDevices.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : AplayDevices.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : BootDmesg.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : CurrentDmesg.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : IwConfig.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : Lspci.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : Lsusb.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : PciMultimedia.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : ProcInterrupts.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : ProcModules.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : PulseSinks.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : PulseSources.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : RfKill.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : UdevDb.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : UdevLog.txt

apport information

Revision history for this message
EAB (adair-boder) wrote : WifiSyslog.txt

apport information

Revision history for this message
EAB (adair-boder) wrote :

BTW ... c4pp4 ... thanks for the patch! It works a treat!

One thing I am wondering though .... when i boot up the mic is muted and the speaker volume is way down ... is this normal?

Revision history for this message
c4pp4 (c4pp4) wrote :

@Zeth

I think that you have attached useless data because it's after the applying the fix. I'll do it.

Muted mic and zero volume isn't normal, I think it has nothing to do with the patch but with your upgrade from previous version. Try to remove from home folder the hidden folder ".pulse". I just guess - I really don't know.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.