Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There was sound the in the debian wheezy but i reinstalled the wheezy and now there is no sound and the players like smplayer and mplayer cannot play any video, these are the information i provide:
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 192 to 2097152
Period size range from 64 to 699051
Using max buffer size 2097152
Periods = 4
was set period_size = 524288
was set buffer_size = 2097152
0 - Front Left
Time per period = 30.115545
0 - Front Left
Time per period = 30.115036
0 - Front Left
Time per period = 30.129845
0 - Front Left
Time per period = 30.133851
0 - Front Left
Time per period = 30.122867
0 - Front Left
Time per period = 30.117779
0 - Front Left
The speaker-test just continue in the above messages.
In the alsamixer the card and chip is pulseaudio and threre is only two volumes Master and Caputre, here is the alsamixer screenshot:
Thanks for the reply i select the C-media CMI8738 and there was all other controls visible in the alsamixer here is the screenshot: alsamixer2.png
But when i restart the pc then card is again the pulseaudio whith the only one master control in the alsamixer.
Obviously your card is not a delta 44 and requires different files and options. Not sure if that helps but it should give you something to look for.
-----
Alternatively stop running pulseaudio.
In /etc/pulse/client.conf change or add "autospawn = no" to prevent pulseaudio from automagically restarting when you stop it or kill it. Then switch between using and NOT using pulseaudio.
For some reason --stop doesn't seem valid, kind of lame imo. I'd recommend using pulseaudio even though I'm not a fan of it. Your openjdk and other things are likely configured for it, and fail to do certain things if you don't use pulseaudio. Like in the game runescape all you get is the musak tracks and none of the sound effects if you don't use pulseaudio. Be sure to add the user to the audio group and the pulse, pulse-access groups.
$ groups
<user> cdrom audio video games pulse pulse-access
That being said pulseaudio does suck, it lacks many things many would consider deal breakers. If you run pulse, even pulse over jack for a software synth you will have a high latency because the sounds will be resampled before actually being outputted. So having the option to opt out of pulseaudio is a good one.
Other tricks are to rename your .asoundrc file if you have one. This should force things to use alsa natively. You can also have different versions of .asoundrc with the renaming trick depending on how you use your soundcard. One for pulse, one for alsa, one for jack, and so on. You might also try purging the .pulse folder and restarting pulse.
Make sure your sound levels are set which you seemed to have done. You can save your levels with alsa-ctl
# alsa-ctl store
And they should be restored at the next boot. It's saved to /var/lib/alsa/asound.state. If you have another mixer application that your prefer that saves settings like aumix, you may want to delete that asound.state file so your settings will be restored. The debian boot sequence will restore mixer settings from asound.state if it exists and bypass aumix settings when both files / settings exist. I'm not a fan of 100% volume settings, a lot of cards distort noticeably when > 90%. Just saying.
In reply of jv2112 there was no sound when i select the C-media in alsamixer but the problem is when i select the opions in alsamixer and gstreamer-properties after reboot the changes is discard, this is a command use to play a file with maplayer and get errors if some one can help:
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
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.
Playing 20051210-w50s.flv.
Detected file format: FLV format (libavformat)
[flv @ 0xb5ebed00]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (vp6f), -vid 0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO: [VP6F] 360x288 0bpp 25.000 fps 266.2 kbps (32.5 kbyte/s)
Clip info:
audiodelay: 0
canSeekToEnd: 1
creationdate: Fri Feb 03 11:52:46 2006
Load subtitles in .
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 22050 Hz, 2 ch, s16le, 40.0 kbit/5.67% (ratio: 5000->88200)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO_ALSA] alsa-lib: pcm.c:2217snd_pcm_open_noupdate) Unknown PCM CMI8738-MC6
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=CMI8738-MC6'
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 360x288 => 360x288 Planar YV12
V: 0.0 0/ 0 ??% ??% ??,?% 0 0
[VD_FFMPEG] DRI failure.
V: 16.9 0/ 0 14% 2% 0.0% 0 0
[AO_ALSA] alsa-lib: pcm.c:2217snd_pcm_open_noupdate) Unknown PCM CMI8738-MC6
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=CMI8738-MC6'
Did you typo this? -MC6? perhaps -CM6? Or is that what you named it in .asoundrc? In either case it cannot find it.
And if you're setup for pulse it should be "-ao pulse" on the mplayer command. And/or those default settings in /etc/mplayer/mplayer.conf
And don't forget to move .asoundrc back to it's former name. With adjustments if that somehow works for you. Because if it does work, then it is NOT a driver issue. It is a system configuration issue. Note that mplayers syntax is a bit odd as it's not hw:0 like we would use with anything that is alsa. And where 0 is the number of the device you want to use (as listed in /proc/asound/cards) which may not be 0.
For some things you can have a single line in .asoundrc if 0 is not your primary audio device.
~/.asoundrc
Code:
defaults.pcm.card 1
But some things will always use the 0 device no matter what you do. Which is the primary motivation behind aoss, artsdsp, esddsp, padsp, and whatever audio savior of the week we're going with this week. Re-indexing your card numbers is possible with a little customization of /etc/modprobe.d/
Thanks for reply i don't have ~./asoundrc file and i search and didn't find asound package for wheezy and libasound2 is installed, this is the output of your command:
Quote:
#mplayer -ao alsa:device=hw,0 20051210-w50s.flv
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
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.
Playing 20051210-w50s.flv.
Detected file format: FLV format (libavformat)
[flv @ 0xb5e90d00]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (vp6f), -vid 0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO: [VP6F] 360x288 0bpp 25.000 fps 266.2 kbps (32.5 kbyte/s)
Clip info:
audiodelay: 0
canSeekToEnd: 1
creationdate: Fri Feb 03 11:52:46 2006
Load subtitles in .
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 22050 Hz, 2 ch, s16le, 40.0 kbit/5.67% (ratio: 5000->88200)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [alsa] 22050Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 360x288 => 360x288 Planar YV12
A: 0.4 V: 0.0 A-V: 0.404 ct: -0.003 0/ 0 ??% ??% ??,?% 1 0
[VD_FFMPEG] DRI failure.
A: 0.4 V: 0.5 A-V: -0.036 ct: -0.018 0/ 0 ??% ??% ??,?% 7 0
Exiting... (Quit)
The command cannot play the media and stop on error [VD_FFMPEG] DRI failure.
Well DRI is how hardware accelerated things access the "VIDEO" hardware. You might try -vo x11 or -vo gl_nosw (had to do this instead of xv on newer things).
$ mplayer -vo help
Should list your options for video output. You could always try -vo null to see if the audio element functions right. And -vo aa or -vo caca are always fun in a terminal. Remnants of a era long gone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.