关于lenovo y430低音炮的问题

笔记本/超便携移动PC软硬件相关支持,包括硬件、安装和驱动等
回复
头像
whr_9046
帖子: 434
注册时间: 2009-08-09 17:09
送出感谢: 0
接收感谢: 0

关于lenovo y430低音炮的问题

#1

帖子 whr_9046 » 2010-08-04 10:32

今天又见到有人因y430的低音炮而烦扰,碰巧自己更新了内核,需要再度编译自己的alsa驱动,记录下来,以供需要之人参考:
1.从 http://www.alsa-project.org 下载最新驱动(此处是为了解决声卡独占问题,之前试过,21版的驱动有独占问题,于是下了最新的试试,果然解决了,现在最新的应该还是23版)
alsa-driver-1.0.23, alsa-lib-1.0.23, alsa-utils-1.0.23

2.在安装前准备好编译需要的库
sudo apt-get install linux-headers-`uname -r`
sudo apt-get install build-essential ncurses-dev gettext
sudo apt-get install xmlto
sudo apt-get build-dep gcc
sudo apt-get install libncurses5-dev

3.修改alsa-kernel/pci/hda/patch_conexant.c
在1617行,也就是
static struct hda_channel_mode cxt5051_modes[1] = {
{ 2, NULL },
};
之后加入:
static void cxt5051_update_subwoofer(struct hda_codec *codec)
{
struct conexant_spec *spec = codec->spec;
unsigned int pinctl;
pinctl = (!spec->hp_present && spec->cur_eapd) ? PIN_OUT : 0;
snd_hda_codec_write(codec, 0x1b, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
pinctl);
}
在1702行,也就是/* mute internal speaker if HP is plugged */中的cxt5051_update_speaker(codec);之后加入:
cxt5051_update_subwoofer(codec);
保存退出。

4.编译前,停止alsa服务(经过这次实践,这必需的,否则无法解决静音问题):
sudo /etc/init.d/alsa-utils stop
sudo /etc/init.d/alsasound stop

解压刚刚下载的3个文件,按照driver->lib->ultis的顺序安装。

driver:
代码:
cd ../alsa-driver-1.0.21
sudo ./configure --prefix=/usr --with-cards=hda-intel
sudo make
sudo make install

lib:
代码:
cd ../alsa-lib-1.0.21
sudo ./configure --prefix=/usr
sudo make
sudo make install

ultis:
代码:
cd ../alsa-ultis-1.0.21
sudo ./configure --prefix=/usr
sudo make
sudo make install

引用:
若过程中出现:
checking form.h presence... yes
checking for form.h... yes
checking for new_panel in -lpanelw... no
configure: error: panelw library not found

请执行:
代码:
sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
sudo ln -s libformw.so.5 /usr/lib/libformw.so
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
sudo ln -s libncursesw.so.5 /lib/libncursesw.so

5.安装完后修改/etc/modprobe.d/alsa-base.conf
代码:
sudo gedit /etc/modprobe.d/alsa-base.conf

在打开的alsa-base.conf中的适当位置加入:
代码:
#options snd-hda-intel probe_mask=1
options snd-hda-intel index=0
options snd-hda-intel model=lenovo-3000(解决插入耳机后低音炮仍响的问题)
options snd-hda-intel model=lenovo-sky(解决触静音键,后低音炮仍响问题)


然后:
代码:
sudo alsaconf
会出现对话框,一般是选“确定”,“是”(or "ok","yes")

6.重启。

主要参阅 viewtopic.php?f=126&t=239858&start=0,外加整合的一些其他帖子。
另外附上修改过的alsa-kernel/pci/hda/patch_conexant.c文件。
附件
patch_conexant.c
(94.04 KiB) 下载 64 次
男人因为孤独而优秀,女人因为优秀而孤独。。。
头像
qgymib
帖子: 539
注册时间: 2010-04-02 16:44
系统: openSUSE 13.2 x64
送出感谢: 2 次
接收感谢: 9 次

Re: 关于lenovo y430低音炮的问题

#2

帖子 qgymib » 2010-08-04 10:37

沙发+收藏
正在建设中的个人博客
头像
taobupt
帖子: 39
注册时间: 2010-09-27 19:07
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#3

帖子 taobupt » 2010-10-06 19:59

在试了很多方法无果后终于遇到楼主的帖子了,虽然折腾了将近两个小时,但是完美解决啦!希望需要的人都能看到这个。
另外想问一下以前的21的驱动要不要卸载,怎么卸载?
头像
taobupt
帖子: 39
注册时间: 2010-09-27 19:07
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#4

帖子 taobupt » 2010-10-07 15:07

出现了很多奇怪的问题……
heart139149000
帖子: 2
注册时间: 2009-10-29 21:03
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#5

帖子 heart139149000 » 2010-10-20 13:45

sudo /etc/init.d/alsa-utils stop
sudo /etc/init.d/alsasound stop
没通过,提示command not found

cd ../alsa-driver-1.0.23
sudo ./configure --prefix=/usr --with-cards=hda-intel
sudo make
执行sudo make时出错
Y430,全新安装的10.10,上来就弄这,还是不行
ink1219
帖子: 2
注册时间: 2009-07-18 13:41
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#6

帖子 ink1219 » 2010-10-29 13:14

安装的10.10的系统,在对driver进行MAKE的时候报错了 求解:

。。。。。。。。

make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/omap'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/pxa'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/pxa'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s3c24xx'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s3c24xx'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s6000'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s6000'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/sh'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/sh'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/txx9'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/txx9'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc'
make[2]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/caiaq'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/caiaq'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/misc'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/misc'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/usx2y'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/usx2y'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb'
make[2]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/pdaudiocf'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/pdaudiocf'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/vx'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/vx'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia'
make[1]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23'
make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/home/ink/Downloads/alsa-driver-1.0.23 CPP="gcc -E" CC="gcc" modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-22-generic'
CC [M] /home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.o
In file included from /home/ink/Downloads/alsa-driver-1.0.23/include/config.h:6,
from /home/ink/Downloads/alsa-driver-1.0.23/include/adriver.h:25,
from /home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:2:
/home/ink/Downloads/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
./include/generated/autoconf.h:2222: note: this is the location of the previous definition
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c: In function ‘snd_pcm_hw_params’:
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function ‘pm_qos_remove_requirement’
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function ‘pm_qos_add_requirement’
make[3]: *** [/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.o] 错误 1
make[2]: *** [/home/ink/Downloads/alsa-driver-1.0.23/acore] 错误 2
make[1]: *** [_module_/home/ink/Downloads/alsa-driver-1.0.23] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-22-generic'
make: *** [compile] 错误 2
yuezhao
帖子: 6
注册时间: 2010-11-03 16:53
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#7

帖子 yuezhao » 2010-11-04 22:25

这里出现了同样到错误,而且安装alsa后声卡找不到,alsamixer也不能用。正等待高人相助……
ink1219 写了:安装的10.10的系统,在对driver进行MAKE的时候报错了 求解:

。。。。。。。。

make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/omap'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/pxa'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/pxa'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s3c24xx'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s3c24xx'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s6000'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s6000'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/sh'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/sh'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/txx9'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/txx9'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc'
make[2]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/caiaq'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/caiaq'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/misc'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/misc'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/usx2y'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/usx2y'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb'
make[2]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/pdaudiocf'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/pdaudiocf'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/vx'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/vx'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia'
make[1]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23'
make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/home/ink/Downloads/alsa-driver-1.0.23 CPP="gcc -E" CC="gcc" modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-22-generic'
CC [M] /home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.o
In file included from /home/ink/Downloads/alsa-driver-1.0.23/include/config.h:6,
from /home/ink/Downloads/alsa-driver-1.0.23/include/adriver.h:25,
from /home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:2:
/home/ink/Downloads/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
./include/generated/autoconf.h:2222: note: this is the location of the previous definition
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c: In function ‘snd_pcm_hw_params’:
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function ‘pm_qos_remove_requirement’
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function ‘pm_qos_add_requirement’
make[3]: *** [/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.o] 错误 1
make[2]: *** [/home/ink/Downloads/alsa-driver-1.0.23/acore] 错误 2
make[1]: *** [_module_/home/ink/Downloads/alsa-driver-1.0.23] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-22-generic'
make: *** [compile] 错误 2
骨折的天使
帖子: 1
注册时间: 2010-11-06 12:23
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#8

帖子 骨折的天使 » 2010-11-06 12:27

楼主能不能把alsa驱动发给我,我下载不了。469838925@qq.com ,谢谢
edge1211
帖子: 2
注册时间: 2010-09-10 10:03
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#9

帖子 edge1211 » 2010-11-29 21:51

In order for ALSA to enable your sound card in Linux kernels beginning with 2.6.35 (as far as I became aware) visit the snapshots section of the ALSA project. Download the available alsa-driver-1.0.23.xy.gdzxy.tar.bz2 (where xy & zxy represent relevant alphanumeric string) and that should solve the issues that you are experiencing with front page generally available alsa-driver-1.0.23.tar.bz2

按照上面说的编译可以通过。
到http://www.alsa-project.org/snapshot/files/ 下载alsa-driver-1.0.23.xy.gdzxy.tar.bz2(xy, zxy代表数字串)
头像
蝶梦我
帖子: 9
注册时间: 2010-05-21 23:44
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#10

帖子 蝶梦我 » 2010-12-02 23:43

ink1219 写了:安装的10.10的系统,在对driver进行MAKE的时候报错了 求解:

。。。。。。。。

make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/omap'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/pxa'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/pxa'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s3c24xx'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s3c24xx'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s6000'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/s6000'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/sh'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/sh'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/txx9'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc/txx9'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/soc'
make[2]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/caiaq'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/caiaq'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/misc'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/misc'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/usx2y'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb/usx2y'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/usb'
make[2]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/pdaudiocf'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/pdaudiocf'
make[3]: 正在进入目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/vx'
make[3]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia/vx'
make[2]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23/pcmcia'
make[1]:正在离开目录 `/home/ink/Downloads/alsa-driver-1.0.23'
make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/home/ink/Downloads/alsa-driver-1.0.23 CPP="gcc -E" CC="gcc" modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-22-generic'
CC [M] /home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.o
In file included from /home/ink/Downloads/alsa-driver-1.0.23/include/config.h:6,
from /home/ink/Downloads/alsa-driver-1.0.23/include/adriver.h:25,
from /home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:2:
/home/ink/Downloads/alsa-driver-1.0.23/include/config1.h:175: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
./include/generated/autoconf.h:2222: note: this is the location of the previous definition
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c: In function ‘snd_pcm_hw_params’:
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function ‘pm_qos_remove_requirement’
/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function ‘pm_qos_add_requirement’
make[3]: *** [/home/ink/Downloads/alsa-driver-1.0.23/acore/pcm_native.o] 错误 1
make[2]: *** [/home/ink/Downloads/alsa-driver-1.0.23/acore] 错误 2
make[1]: *** [_module_/home/ink/Downloads/alsa-driver-1.0.23] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-22-generic'
make: *** [compile] 错误 2
viewtopic.php?f=126&t=302318
我在这里5楼说了。当前的alsa与10.10有冲突,要下载最新的snapshot,再作处理
儒风道骨 虚己游世
plutonji
帖子: 5
注册时间: 2011-01-16 19:05
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#11

帖子 plutonji » 2011-01-29 22:09

解压安装的代码这边应该是1.0.23吧?
头像
yj97595077
帖子: 16
注册时间: 2011-04-29 14:22
送出感谢: 0
接收感谢: 0

Re: 关于lenovo y430低音炮的问题

#12

帖子 yj97595077 » 2012-09-16 17:16

这么复杂啊???
回复

回到 “笔记本、UMPC支持”