LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 895|回复: 2

成功搞定AP2496的ALSA驱动

[复制链接]
发表于 2010-8-29 23:54:24 | 显示全部楼层 |阅读模式
一时发烧新入AP2496,装机进入LINUX,模块加载一切正常,就是播放时用ALSA输出死活不出声,只得暂时用OSS替代。今晚仔细翻阅ALSA的WIKI,找到解决之道。
问题如下:
mplayer -ao alsa:device=hw=0.0 *.mp3

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Failed to initialize audio driver 'alsa:device=default'
Could not open/initialize audio device -> no sound.

更改如下:
mplayer -ao alsa:device=plughw=0.0 *.ape
MPlayer SVN-r30166-4.3.0 (C) 2000-2009 MPlayer Team
136 audio & 285 video codecs
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick

Playing 叶振棠 - 万里长城永不倒.ape.
libavformat file format detected.
[ape @ 0x90fe370]Estimating duration from bitrate, this may be inaccurate
[lavf] Audio stream found, -aid 0
Clip info:
Artist: 叶振棠
Title: 万里长城永不倒
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [ffape] afm: ffmpeg (FFmpeg Monkey's Audio decoder)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   3.3 (03.3) of 175.8 (02:55.8)  8.7% $<50>
Exiting... (Quit)
发表于 2010-8-30 13:12:44 | 显示全部楼层
呵呵,总有拿不完希奇古怪东东。
莫非和工作环境有关,各种东东可以捷足先登?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-30 15:04:55 | 显示全部楼层
Post by 聚焦深空;2110409
呵呵,总有拿不完希奇古怪东东。
莫非和工作环境有关,各种东东可以捷足先登?


。。。哈哈,突然小烧了一下,就入了它了,就一普通电脑爱好者,你总没见过我用服务器的东西吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表