平台是S5PV210,wm9713通过AC97连210,kernel是3.0.8,运行debian 7,放音没问题,录音怎么都不行?
我把wm9713.c贴出来给大家看看,希望知道的大神能给我点意见~
报错如下:
root@debian-sate210:~# arecord -f S16_LE -D plughw:0,0 -c 2 test.wav
Recording WAVE 'test.wav' : Sigsound/soc/codecs/wm9713.c wm9713_hifi_hw_params:954
ned 16 bit Little Endian, Rate 8000 Hz, Stereo
arecord: pcm_read:1801: read error: Input/output error
static int wm9713_hifi_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{
struct snd_soc_codec *codec = dai->codec;
ac97_write(codec, AC97_POWERDOWN, 0x0000);
ac97_write(codec, AC97_PHONE, 0x0808);
ac97_write(codec, AC97_EXTENDED_MID, 0xf803);
ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xb990);
ac97_write(codec, AC97_MASTER, 0x8080);
ac97_write(codec, AC97_HEADPHONE, 0x0606);
ac97_write(codec, AC97_REC_GAIN, 0x00aa);
#ifdef CONFIG_SOUND_WM9713_INPUT_STREAM_MIC
ac97_write(codec, 0x5c, 0x0002);
ac97_write(codec, AC97_LINE, 0x0068);
ac97_write(codec, AC97_VIDEO, 0xfe00);
#else
ac97_write(codec, AC97_VIDEO, 0xd612);
#endif
return 0;
}
是wm9713官方驱动有问题~