WM9713,about volume and mplayer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am a ALSA user.
I have a s3c6410 board, it's use WM9713 sound card.
use 'aplay' play WAV file is OK,but can't turn the volume,and mplayer can't play MP3.
pls help me,thanks

I set these in kernel 2.6.28, ubuntu 804 LTS.
  Advanced Linux Sound Architecture  --->
   <*>   ALSA for SoC audio support  --->
     <*> SoC Audio for the Samsung S3C chips  
     <*> SoC AC97 Audio support for SMDK6410 - WM9713 

when boot,can see this messages:
    [WM9713]Open speaker volume.
     ALSA device list:
     #0: SMDK6400 (WM9713)

and I login,su root,use "aplay" play WAV file right:

aplay -Dplughw:0,0 /usr/share/sounds/alsa/Rear_Right.wav 
aplay /usr/share/sounds/alsa/Rear_Right.wav 

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SMDK6400 [SMDK6400], device 0: AC97 HiFi AC97 HiFi-AC97-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

# cat  /proc/asound/devices 
  0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer


#ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116,  0 2010-06-23 08:27 controlC0
crw-rw---- 1 root audio 116, 24 2010-06-23 08:27 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2010-06-23 08:27 pcmC0D0p
crw-rw---- 1 root audio 116, 33 2010-06-23 08:27 timer

# more asound.conf 

pcm.wm9713 {
    type hw
    card 0
    device 0
}

# amixer scontrols
Simple mixer control 'Headphone',0
Simple mixer control 'Headphone Playback ZC',0
Simple mixer control 'Speaker',0
Simple mixer control 'Speaker Mixer Aux Playback Swit',0
Simple mixer control 'Speaker Mixer Bypass Playback S',0
Simple mixer control 'Speaker Mixer MonoIn Playback S',0
Simple mixer control 'Speaker Mixer PC Beep Playback ',0
Simple mixer control 'Speaker Mixer PCM Playback Swit',0
Simple mixer control 'Speaker Mixer Voice Playback Sw',0
Simple mixer control 'Speaker Playback ZC',0
Simple mixer control 'Tone',0
Simple mixer control 'Tone Cut-off',0
Simple mixer control 'Bass',0
Simple mixer control 'Bass Control',0
Simple mixer control 'Bass Cut-off',0
Simple mixer control 'PCM',0
Simple mixer control 'Sidetone Mux',0
Simple mixer control 'Line In',0
Simple mixer control 'Mic 1',0
Simple mixer control 'Mic 2',0
Simple mixer control 'Mic A Source',0
Simple mixer control 'Mic B Source',0
Simple mixer control 'Mic Boost (+20dB)',0
Simple mixer control 'Mic Headphone Mixer',0
Simple mixer control 'Aux Playback Headphone',0
Simple mixer control 'Aux Playback Master',0
Simple mixer control 'Aux Playback Mono',0
Simple mixer control 'Mono',0
Simple mixer control 'Mono Mixer Aux',0
Simple mixer control 'Mono Mixer Bypass Playback Swit',0
Simple mixer control 'Mono Mixer Mic 1 Sidetone Switc',0
Simple mixer control 'Mono Mixer Mic 2 Sidetone Switc',0
Simple mixer control 'Mono Mixer PC Beep Playback Swi',0
Simple mixer control 'Mono Mixer PCM',0
Simple mixer control 'Mono Mixer Voice Playback Switc',0
Simple mixer control 'Mono Out Mux',0
Simple mixer control 'Mono Playback ZC',0
Simple mixer control 'Playback Attenuate (-6dB)',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture ADC Boost (+20dB)',0
Simple mixer control 'Capture Headphone Mux',0
Simple mixer control 'Capture Mono Mux',0
Simple mixer control 'Capture Volume Steps',0
Simple mixer control 'Capture ZC',0
Simple mixer control 'Capture to Headphone',0
Simple mixer control 'Capture to Mono Boost (+20dB)',0
Simple mixer control '3D Depth',0
Simple mixer control '3D Lower Cut-off',0
Simple mixer control '3D Upper Cut-off',0
Simple mixer control 'ALC Attack Time',0
Simple mixer control 'ALC Decay Time',0
Simple mixer control 'ALC Function',0
Simple mixer control 'ALC Hold Time',0
Simple mixer control 'ALC Max',0
Simple mixer control 'ALC NG',0
Simple mixer control 'ALC NG Threshold',0
Simple mixer control 'ALC NG Type',0
Simple mixer control 'ALC Target',0
Simple mixer control 'ALC ZC',0
Simple mixer control 'ALC ZC Timeout',0
Simple mixer control 'DAC Inv Mux 1',0
Simple mixer control 'DAC Inv Mux 2',0
Simple mixer control 'Left Capture Source',0
Simple mixer control 'Left HP Mixer Aux Playback Swit',0
Simple mixer control 'Left HP Mixer Bypass Playback S',0
Simple mixer control 'Left HP Mixer MonoIn Playback S',0
Simple mixer control 'Left HP Mixer PC Beep Playback ',0
Simple mixer control 'Left HP Mixer PCM Playback Swit',0
Simple mixer control 'Left HP Mixer Voice Playback Sw',0
Simple mixer control 'Left Headphone Out Mux',0
Simple mixer control 'Left Speaker Out Mux',0
Simple mixer control 'Out 3 Mux',0
Simple mixer control 'Out 4 Mux',0
Simple mixer control 'Out3',0
Simple mixer control 'Out3 Playback ZC',0
Simple mixer control 'Out4',0
Simple mixer control 'Out4 Playback ZC',0
Simple mixer control 'PC Beep Playback Headphone',0
Simple mixer control 'PC Beep Playback Mono',0
Simple mixer control 'PC Beep Playback Speaker',0
Simple mixer control 'Right Capture Source',0
Simple mixer control 'Right HP Mixer Aux Playback Swi',0
Simple mixer control 'Right HP Mixer Bypass Playback ',0
Simple mixer control 'Right HP Mixer MonoIn Playback ',0
Simple mixer control 'Right HP Mixer PC Beep Playback',0
Simple mixer control 'Right HP Mixer PCM Playback Swi',0
Simple mixer control 'Right HP Mixer Voice Playback S',0
Simple mixer control 'Right Headphone Out Mux',0
Simple mixer control 'Right Speaker Out Mux',0
Simple mixer control 'Voice Playback Headphone',0
Simple mixer control 'Voice Playback Master',0
Simple mixer control 'Voice Playback Mono',0


# ./mplayer -ao help
MPlayer SVN-r30955-4.2.2 (C) 2000-2010 MPlayer Team
Available audio output drivers:
        oss     OSS/ioctl audio output
        mpegpes DVB audio output
        v4l2    V4L2 MPEG Audio Decoder output
        null    Null audio output
        pcm     RAW PCM/WAVE file writer audio output
##-------there not have ALSA-------------------

# ./mplayer -ao oss 1.mp3 
MPlayer SVN-r30955-4.2.2 (C) 2000-2010 MPlayer Team

Playing 1.mp3.
Audio only file format detected.
==========================================================================
Requested audio codec family [mp3] (afm=mp3lib) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Failed to initialize audio driver 'oss'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)




      

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux