asoc 调试笔记之 route

来源:互联网 发布:怎么在淘宝上做客服 编辑:程序博客网 时间:2024/04/29 12:58

麦库截图20131009100017609.jpg

root@raspberrypi:/sys/kernel/debug/regmap/spi0.1# mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'

root@raspberrypi:/sys/kernel/debug/regmap/spi0.1# cat registers | grep "519"
000519: 0000
root@raspberrypi:/sys/kernel/debug/regmap/spi0.1# cat registers | grep "51a"
00051a: 0003
root@raspberrypi:/sys/kernel/debug/regmap/spi0.1#

麦库截图20131009100444312.jpg

                                                  cat registers | grep "55a"
00055a: 0000
root@raspberrypi:/sys/kernel/debug/regmap/spi0.1# cat registers | grep "559"
000559: 0003
root@raspberrypi:/sys/kernel/debug/regmap/spi0.1#

Rx 通道没有 Enable 。

mplayer *.mp3 < /dev/null > /dev/null 2>1&

"559"aspberrypi:/home/pi# cat /sys/kernel/debug/regmap/spi0.1/registers | grep 
000559: 0000
"55a"aspberrypi:/home/pi# cat /sys/kernel/debug/regmap/spi0.1/registers | grep 
00055a: 0000

diff --git a/sound/soc/bcm2708/rpi-wolfson-sound-pi.c b/sound/soc/bcm2708/rpi-wolfson-sound-pi.c

index 57f4430..a943670 100644

--- a/sound/soc/bcm2708/rpi-wolfson-sound-pi.c

+++ b/sound/soc/bcm2708/rpi-wolfson-sound-pi.c

@@ -237,6 +237,7 @@ const struct snd_soc_dapm_widget rpi_wsp_dapm_widgets[] = {

SND_SOC_DAPM_MIC("Digitcal Mic", NULL),

SND_SOC_DAPM_MIC("Headset Mic", NULL),

SND_SOC_DAPM_SPK("Speaker_tmp", NULL),

+       SND_SOC_DAPM_MIC("Mic_tmp", NULL),

};

const struct snd_soc_dapm_route rpi_wsp_dapm_routes[] = {

@@ -247,6 +248,7 @@ const struct snd_soc_dapm_route rpi_wsp_dapm_routes[] = {

{ "Headset Mic", NULL, "MICBIAS1" },

{ "Speaker_tmp", NULL, "AIF2 Capture" },

+       { "AIF2 Playback", NULL, "Mic_tmp" },

};

解决

0 0
原创粉丝点击