LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-24-2013, 07:31 PM   #1
slamtonio
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Rep: Reputation: Disabled
Repeated sound on Acer Aspire E1-521 Laptop


I'm trying to get the sound to work properly on my Acer Aspire E1-521-0851 Laptop, but it just doesn't want to play nice.

When I go to System -> Administration -> Soundcard Detection. Two devices are detected.

1. AMD Hudson Azalia Controller using module snd-hda-intel
2. AMD nee ATI Wrestler HDMI Audio [Radeon HD 6250/6310] using module snd-hda-intel

When I sound test the first (Hudson Azalia Controller), sound does play but it is very choppy and echoed. It's also very low and I have to adjust the slider to the right to hear anything. The sound test on the second does not produce anything.

Is there a bug, conflict, or some misconfiguration going on?

Here is my system information:

# cat /etc/redhat-release
CentOS release 5.9 (Final) Note: I started with CentOS 5.7 and did a #yum update

# uname -rmi
2.6.18-348.16.1.el5PAE i686 i386

I did see something at kernel.org
https://www.kernel.org/doc/Documenta...a/HD-Audio.txt

That mentioned if I got this in my dmesg:

hda-intel: Invalid position buffer, using LPIB read method instead.

That.... `position_fix=2` means to use the position-buffer. 0 is the default
value, the automatic check and fallback to LPIB as described in the
above. If you get a problem of repeated sounds, this option might
help.

How can I set this option without recompiling my kernel. I would like to send a kernel parameter at boot or do some configuration in modprobe.conf or asound.conf.


Follow is some more information that may be helpful. I also attached the output from the also-info.sh script.

[root@localhost ~]# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 14h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Device 9809
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Wrestler HDMI Audio [Radeon HD 6250/6310]
00:10.0 USB controller: Advanced Micro Devices [AMD] Hudson USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices [AMD] Hudson SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices [AMD] Hudson SMBus Controller (rev 14)
00:14.2 Audio device: Advanced Micro Devices [AMD] Hudson Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] Hudson LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI Bridge (rev 40)
00:15.0 PCI bridge: Advanced Micro Devices [AMD] Device 43a0
00:15.1 PCI bridge: Advanced Micro Devices [AMD] Device 43a1
00:15.3 PCI bridge: Advanced Micro Devices [AMD] Device 43a3
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7
02:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0)
06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
07:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)

[root@localhost ~]# lsmod
Module Size Used by
nls_utf8 6209 1
autofs4 28741 3
hidp 22977 2
rfcomm 42457 0
l2cap 29889 10 hidp,rfcomm
bluetooth 53797 5 hidp,rfcomm,l2cap
lockd 63209 0
sunrpc 149373 2 lockd
cpufreq_ondemand 12493 2
powernow_k8 24865 0
mperf 6337 1 powernow_k8
ip_conntrack_netbios_ns 6977 0
ipt_REJECT 9537 1
xt_state 6209 6
ip_conntrack 53665 2 ip_conntrack_netbios_ns,xt_state
nfnetlink 10713 1 ip_conntrack
xt_tcpudp 7105 8
iptable_filter 7105 1
ip_tables 17029 1 iptable_filter
ip6_tables 18181 0
x_tables 17349 5 ipt_REJECT,xt_state,xt_tcpudp,ip_tables,ip6_tables
be2iscsi 60757 0
ib_iser 35609 0
rdma_cm 39929 1 ib_iser
ib_cm 38061 1 rdma_cm
iw_cm 13253 1 rdma_cm
ib_sa 40117 2 rdma_cm,ib_cm
ib_mad 38741 2 ib_cm,ib_sa
ib_core 65985 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr 12741 1 rdma_cm
iscsi_tcp 20041 0
bnx2i 47581 0
cnic 52693 1 bnx2i
ipv6 272929 3 rdma_cm,ib_addr,cnic
xfrm_nalgo 13381 1 ipv6
crypto_api 12609 1 xfrm_nalgo
uio 14793 1 cnic
cxgb3i 31177 0
libcxgbi 54477 1 cxgb3i
cxgb3 168985 1 cxgb3i
8021q 26313 1 cxgb3
libiscsi_tcp 22213 3 iscsi_tcp,cxgb3i,libcxgbi
libiscsi2 42693 7 be2iscsi,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libcxgbi,libiscsi_tcp
scsi_transport_iscsi2 37709 8 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2
scsi_transport_iscsi 6085 1 scsi_transport_iscsi2
dm_mirror 24393 0
dm_multipath 27213 0
scsi_dh 12481 1 dm_multipath
video 21193 0
backlight 10049 1 video
sbs 18533 0
power_meter 16461 0
hwmon 7365 1 power_meter
i2c_ec 9025 1 sbs
dell_wmi 8401 0
wmi 12137 1 dell_wmi
button 10705 0
battery 13637 0
asus_acpi 19289 0
ac 9157 0
parport_pc 29669 0
lp 15849 0
parport 37513 2 parport_pc,lp
snd_hda_intel 401453 1
snd_seq_dummy 7877 0
snd_seq_oss 32577 0
snd_seq_midi_event 11073 1 snd_seq_oss
snd_seq 49585 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 11725 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 42817 0
snd_mixer_oss 19009 1 snd_pcm_oss
uvcvideo 53833 0
sr_mod 19813 1
compat_ioctl32 5569 1 uvcvideo
cdrom 36705 1 sr_mod
videodev 25793 1 uvcvideo
snd_pcm 72517 2 snd_hda_intel,snd_pcm_oss
sg 36973 0
v4l1_compat 16069 2 uvcvideo,videodev
v4l2_common 24385 2 uvcvideo,videodev
snd_timer 24517 2 snd_seq,snd_pcm
snd_page_alloc 14281 2 snd_hda_intel,snd_pcm
snd_hwdep 12869 1 snd_hda_intel
snd 57797 11 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwd ep
tpm_tis 16713 0
tpm 19041 1 tpm_tis
soundcore 11553 1 snd
tpm_bios 11073 1 tpm
pcspkr 7105 0
serio_raw 10693 0
i2c_piix4 13133 0
i2c_core 24897 2 i2c_ec,i2c_piix4
fglrx 2418460 0
atl1e 73888 0
dm_raid45 67273 0
dm_message 6977 1 dm_raid45
dm_region_hash 15681 1 dm_raid45
dm_log 14785 3 dm_mirror,dm_raid45,dm_region_hash
dm_mod 63993 4 dm_mirror,dm_multipath,dm_raid45,dm_log
dm_mem_cache 9537 1 dm_raid45
usb_storage 80545 0
ahci 39373 4
libata 158341 1 ahci
sd_mod 25409 4
scsi_mod 144405 13 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_transport_iscsi2,scsi_dh,sr_mod,sg,usb_stor age,libata,sd_mod
ext3 126281 2
jbd 57705 1 ext3
uhci_hcd 25549 0
ohci_hcd 25065 0
ehci_hcd 34765 0


[root@localhost ~]# cat /etc/modprobe.conf
alias scsi_hostadapter ahci
alias scsi_hostadapter1 usb-storage
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
options snd-hda-intel index=1
remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
alias eth1 atl1e
#options snd-hda-intel enable-msi=1
#options snd-hda-intel model=generic


I did adjust this file manually (/etc/asound.conf), because when I ran alsamixer is would display the ATI Wrestler HDMI Audio [Radeon HD 6250/6310] card, but without any controls. After that alsamixer would display controls with Card: HD-Audio Generic Chip: Realtek ALC269VB.

[root@localhost etc]# cat asound.conf
#Generated by system-config-soundcard, do not edit by hand
#HWCONF
#DEV 0
pcm.!default { type hw card 1 device 0 }
ctl.!default { type hw card 1 }


[root@localhost etc]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0


I hope this is enough information to give me some hints on how to fix this problem. Thanks for any information you can provide and if you need more info., I'll get it right away.

Regards,

Antonio
Attached Files
File Type: txt alsa-info.txt (24.9 KB, 23 views)
 
Old 09-25-2013, 07:04 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi
Quote:
The sound test on the second does not produce anything.
If this is a hdmi output device, how did you test?

pls study this part of your attachment
Quote:
!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

#Generated by system-config-soundcard, do not edit by hand
#HWCONF
#DEV 0
pcm.!default { type hw card 1 device 0 }
ctl.!default { type hw card 1 }
It suggests your second device is the default

Do you need to swap between devices for any reason?
If so, leaping ahead, because its the same kernel module for both devices
---you may be better off installing pulseaudio

In the meantime, you may prefer to delete that system wide config and replace with a
home user created file called .asoundrc contents to be (initially) as per
http://alsa.opensrc.org/Asoundrc
Quote:
pcm.card0 {
type hw
card 0
}
ctl.card0 {
type hw
card 0
}
then when you do a speaker test you know you are testing card 0
then adjust full reboot and test with a modified asoundrc for card 1----ok?

last being lazy I have not done the research but trust you so if
Quote:
position_fix=2
is for card 0 you modify your modprobe.conf so it has this line

Quote:
options snd-hda-intel position_fix=2
but please do one thing at a time to help trouble shooting....and full reboots
it may take longer but in the long run you will be able to give better feedback
if my advice is not helpful

and run
Code:
alsamixer
to adjust sound levels please

you can also have different sound levels set for each device,
but as you a newbie, you may be better off with pulseaudio
we will await your results first eh?

Last edited by aus9; 09-25-2013 at 07:08 PM.
 
Old 09-26-2013, 01:09 PM   #3
slamtonio
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello Aug9

Thank you very much for the reply. It looks like you’re from Australia. I love that place. I spent two years up in the Gold Coast area. Unfortunately I had to leave.

Re: testing on the HDMI device – I thought the sound card utility would send it to the regular speakers, because the utility asked me if I heard a sound. But since you mention HDMI it would make more sense that it would need an HDMI device. (FYI – most of my experience is with kiosk and headless machines that don’t use sound.

I did set my second device as default, because that was the only way I could get a controllable ALSA mixer interface and any test sounds when I would issue # aplay /usr/share/sounds/alsa/Front_Center.wav.

I don’t need to swap between devices. I just need basic sound from my laptop speakers.

Unfortunately I need to stick with CentOS 5.7-5.9 and it doesn’t look like the main distro repositories have Pulse.

Ok, I created a /root/.asoundrc under card 0 and rebooted. Then ran # aplay /usr/share/sounds/alsa/Front_Center.wav, and got this error:
ALSA lib pcm_dmix.c:1008snd_pcm_dmix_open) unable to open slave
aplay: main:583: audio open error: No such file or directory

So now I changed /root/.asoundrc to card 1 and rebooted.

Quote:
pcm.card1 {
type hw
card 1
}
ctl.card1 {
type hw
card 1
}
And I still get the same error:

Quote:
ALSA lib pcm_dmix.c:1008snd_pcm_dmix_open) unable to open slave
aplay: main:583: audio open error: No such file or directory
The https://wiki.archlinux.org/index.php...d_Architecture site said if the above config doesn’t work try, which is very similar to my old /etc/asound.conf.

Quote:
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0
So, I move my old asound.conf to /root/.asoundrc and now I get sound, but repeats while playing the test. Front Front Front Front Front Front Front Front Front Center Center Center Center Center Center Center Center Center Center.

Quote:
[root@localhost home]# cat /root/.asoundrc
#Generated by system-config-soundcard, do not edit by hand
#SWCONF
#DEV 0
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
So now I will try: options snd-hda-intel index=0 position_fix=2

Doing a little research, it looks like adding position_fix=2 is for HDMI, which is really not what I need. As mentioned before regular speaker output is fine.

All my alsamixer settings are unmuted and set to 100.

One thing I did you was to enable the RPM Forge repository and download mplayer. And using mplayer, my .wav files play much better, but there is a little repeating at the end (but not nearly as bad as aplay) and .mp3 files play fine. Is it using its own sound configuration and not relying 100% on alsa. I think I need to dig deeper into the alsa configuration.

If my problems would be solved with pulseaudio, that would be great, but I don’t think I can install it on my CentOS 5.7 system.

I did test the same file in verbose mode using mplayer and aplay. Here is the output, maybe you see something that is causing the repeat issue. Once again, I really appreciate you trying to help me.

aplay

Quote:
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
Plug PCM: Route conversion PCM (sformat=S32_LE)
Transformation table:
0 <- 0
1 <- 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 8192
period_size : 1024
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 8192
stop_threshold : 8192
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Soft volume PCM
Control: PCM Playback Volume
min_dB: -51
max_dB: 0
resolution: 256
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S32_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
buffer_size : 8192
period_size : 1024
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 8192
stop_threshold : 8192
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Direct Stream Mixing PCM
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S32_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
buffer_size : 8192
period_size : 1024
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 8192
stop_threshold : 8192
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Hardware PCM card 1 'HD-Audio Generic' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S32_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
buffer_size : 8192
period_size : 1024
period_time : 21333
tstamp_mode : ENABLE
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 1
stop_threshold : 1073741824
silence_threshold: 0
silence_size : 1073741824
boundary : 1073741824
mplayer

Quote:
MPlayer SVN-r31628-4.1.2 (C) 2000-2010 MPlayer Team
CPU vendor name: AuthenticAMD max cpuid level: 6
CPU: AMD E1-1200 APU with Radeon(tm) HD Graphics (Family: 20, Model: 2, Stepping: 0)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/usr --bindir=/usr/bin --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib --mandir=/usr/share/man --codecsdir=/usr/lib/codecs --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --disable-bitmap-font --disable-ass-internal --disable-termcap --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-arts --enable-dynamic-plugins --enable-esd --enable-fbdev --enable-fontconfig --enable-fribidi --enable-gui --enable-joystick --enable-largefiles --enable-lirc --enable-menu --enable-musepack --enable-radio --enable-radio-capture --enable-runtime-cpudetection --enable-smb --enable-sdl --enable-svga --enable-tv-v4l1 --enable-tv-v4l2 --enable-unrarexec --enable-xvmc --enable-qtx --enable-win32dll --language=all
CommandLine: '-v' '/usr/share/sounds/alsa/Rear_Right.wav'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 91 binds
Setting up LIRC support...
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.
get_path('Rear_Right.wav.conf') -> '/root/.mplayer/Rear_Right.wav.conf'

Playing /usr/share/sounds/alsa/Rear_Right.wav.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 146480 bytes
STREAM: [file] /usr/share/sounds/alsa/Rear_Right.wav
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: WAV format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /usr/share/sounds/alsa/Rear_Right.wav ext: .wav
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 48000
avg byte/sec: 96000
Block align: 2
bits/sample: 16
cbSize: 0
==========================================================================
demux_audio: audio data 0x2C - 0x23C30
Audio only file format detected.
get_path('sub/') -> '/root/.mplayer/sub/'
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 48000Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[dummy] Was reinitialized: 48000Hz/1ch/s16le
Trying preferred audio driver 'pulse', options '[none]'
No such audio driver 'pulse'
Trying preferred audio driver 'alsa', options '[none]'
alsa-init: requested format: 48000 Hz, 1 channels, 9
alsa-init: using ALSA 1.0.17a
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: got buffersize=16384
alsa-init: got period size 1024
alsa: 48000 Hz/1 channels/2 bpf/16384 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/1ch/s16le -> 48000Hz/1ch/s16le...
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[dummy] Was reinitialized: 48000Hz/1ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
Increasing filtered audio buffer size from 0 to 17408
A: 0.0 (00.0) of 1.0 (01.0) ??,?% ^MA: 0.0 (00.0) of 1.0 (01.0) ??,?% ^MA: 0.0 (00.0) of 1.0 (01.0) ??,?% ^MA: 0.1 (00.0) of 1.0 (01.0) ??,?% ^MA: 0.1 (00.0) of 1.0 (01.0) ??,?% ^MA: 0.1 (00.1) of 1.0 (01.0) ??,?% ^MA: 0.1 (00.1) of 1.0 (01.0) ??,?% ^MA: 0.2 (00.1) of 1.0 (01.0) ??,?% ^MA: 0.2 (00.1) of 1.0 (01.0) ??,?% ^MA: 0.2 (00.2) of 1.0 (01.0) ??,?% ^MA: 0.2 (00.2) of 1.0 (01.0) ??,?% ^MA: 0.2 (00.2) of 1.0 (01.0) ??,?% ^MA: 0.3 (00.2) of 1.0 (01.0) ??,?% ^MA: 0.3 (00.2) of 1.0 (01.0) ??,?% ^MA: 0.3 (00.2) of 1.0 (01.0) ??,?% ^MA: 0.3 (00.3) of 1.0 (01.0) ??,?% ^MA: 0.3 (00.3) of 1.0 (01.0) 0.1% ^MA: 0.4 (00.3) of 1.0 (01.0) 0.1% ^MA: 0.4 (00.3) of 1.0 (01.0) 0.1% ^MA: 0.4 (00.4) of 1.0 (01.0) 0.1% ^MA: 0.4 (00.4) of 1.0 (01.0) 0.1% ^MA: 0.5 (00.4) of 1.0 (01.0) 0.1% ^MA: 0.5 (00.4) of 1.0 (01.0) 0.1% ^MA: 0.5 (00.4) of 1.0 (01.0) 0.1% ^MA: 0.5 (00.5) of 1.0 (01.0) 0.1% ^MA: 0.5 (00.5) of 1.0 (01.0) 0.1% ^MA: 0.6 (00.5) of 1.0 (01.0) 0.1% ^MA: 0.6 (00.5) of 1.0 (01.0) 0.1% ^MA: 0.6 (00.5) of 1.0 (01.0) 0.1% ^MA: 0.6 (00.6) of 1.0 (01.0) 0.1% ^MA: 0.7 (00.6) of 1.0 (01.0) 0.1% ^MA: 0.7 (00.6) of 1.0 (01.0) 0.1% ^MA: 0.7 (00.6) of 1.0 (01.0) 0.1% ^MA: 0.7 (00.7) of 1.0 (01.0) 0.1% ^MA: 0.7 (00.7) of 1.0 (01.0) 0.1% ^MA: 0.7 (00.7) of 1.0 (01.0) 0.1% ^MA: 0.8 (00.7) of 1.0 (01.0) 0.1% ^MA: 0.8 (00.7) of 1.0 (01.0) 0.1% ^MA: 0.8 (00.8) of 1.0 (01.0) 0.1% ^MA: 0.8 (00.8) of 1.0 (01.0) 0.1% ^MA: 0.9 (00.8) of 1.0 (01.0) 0.1% ^MA: 0.9 (00.8) of 1.0 (01.0) 0.1% ^MA: 0.9 (00.9) of 1.0 (01.0) 0.1% ^MA: 0.9 (00.9) of 1.0 (01.0) 0.1% ^MA: 0.9 (00.9) of 1.0 (01.0) 0.1% ^MA: 1.0 (00.9) of 1.0 (01.0) 0.1% ^MA: 1.0 (00.9) of 1.0 (01.0) 0.1% ^MA: 1.0 (01.0) of 1.0 (01.0) 0.1% ^MA: 1.0 (01.0) of 1.0 (01.0) 0.1% ^MA: 1.0 (01.0) of 1.0 (01.0) 0.1% ^MA: 1.1 (01.0) of 1.0 (01.0) 0.1% ^MA: 1.1 (01.0) of 1.0 (01.0) 0.1% ^MA: 1.1 (01.1) of 1.0 (01.0) 0.1% ^MA: 1.1 (01.1) of 1.0 (01.0) 0.1% ^MA: 1.2 (01.1) of 1.0 (01.0) 0.1% ^MA: 1.2 (01.1) of 1.0 (01.0) 0.1% ^MA: 1.2 (01.1) of 1.0 (01.0) 0.1% ^MA: 1.2 (01.2) of 1.0 (01.0) 0.1% ^MA: 1.2 (01.2) of 1.0 (01.0) 0.1% ^MA: 1.3 (01.2) of 1.0 (01.0) 0.1% ^MA: 1.3 (01.2) of 1.0 (01.0) 0.1% ^MA: 1.3 (01.3) of 1.0 (01.0) 0.1% ^MA: 1.3 (01.3) of 1.0 (01.0) 0.1% ^Mds_fill_buffer: EOF reached (stream: audio)
ds_fill_buffer: EOF reached (stream: audio)
A: 1.3 (01.3) of 1.0 (01.0) 0.1% ^Mds_fill_buffer: EOF reached (stream: audio)
A: 1.4 (01.3) of 1.0 (01.0) 0.1% ^Mds_fill_buffer: EOF reached (stream: audio)
A: 1.4 (01.3) of 1.0 (01.0) 0.1% ^MEOF code: 1

Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: pcm
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)
 
Old 09-26-2013, 06:22 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

firstly, its home/yourname/.asoundrc

don't run sound as root please.

delete the system wide /etc/asound* for the moment, we want nothing polluting your home folder setup
create home user .asoundrc as above as
Quote:
pcm.card0 {
type hw
card 0
}
ctl.card0 {
type hw
card 0
}
this should default you to card0.

I will come back later have to go out now
 
Old 09-26-2013, 07:37 PM   #5
slamtonio
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello

Thanks again for your help.

I was running as root just in case any permissions where getting in the way. Usually when I have a problem, I’ll run as root and once it’s working as root, I know can also get it working as a non-root user. That being said, I am following your instructions to a tee.

I’ve removed all /etc/asound* and created /home/antonio/.asoundrc, but the configuration

Quote:
pcm.card0 {
type hw
card 0
}
ctl.card0 {
type hw
card 0
}
does not work for me, nor does

Quote:
pcm.card1 {
type hw
card 1
}
ctl.card1 {
type hw
card 1
}
I get this error for both configurations:

Quote:
ALSA lib pcm_dmix.c:1008snd_pcm_dmix_open) unable to open slave
aplay: main:583: audio open error: No such file or directory
so I’ve reverted to my old configuration from /etc/asound.conf and copied it to ~/.asound

Quote:
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
Which is my non-HDMI card.

It’s mentioned in this link (https://wiki.archlinux.org/index.php...rchitecture)if this does not work try

Quote:
pcm.!default {
type hw
card 0
device 3
}


Quote:
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

So I adapted for my card and device and was able to get sound from my laptop speakers, but once again it is repeating Front Front Front Front Front Front Front Front Front Center Center Center Center Center Center Center Center Center Center.

The output from the aplay command was…

Quote:
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
I’ve been through the https://wiki.archlinux.org/index.php...d_Architecture page top to bottom and tried almost everything.


This link was interesting https://www.kernel.org/doc/Documenta...a/HD-Audio.txt and mentioned

`position_fix=1` means to use LPIB method explicitly.
`position_fix=2` means to use the position-buffer.
`position_fix=3` means to use a combination of both methods, needed
for some VIA controllers. The capture stream position is corrected
by comparing both LPIB and position-buffer values.
`position_fix=4` is another combination available for all controllers,
and uses LPIB for the playback and the position-buffer for the capture
streams.
0 is the default value for all other
controllers, the automatic check and fallback to LPIB as described in
the above. If you get a problem of repeated sounds, this option might
help.


I’ve tried all 4 position_fixs in /etc/modprobe.conf (options snd-hda-intel index=0 position_fix=#) and rebooted between each and still get the repeat sound.

Once again mplayer plays so much better than aplay. When it's mplayer with mp3s, it's perfect.

Any more insight is appreciated.
 
Old 09-26-2013, 08:07 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi
Quote:
So I adapted for my card and device and was able to get sound from my laptop speakers, but once again it is repeating Front Front Front Front Front Front Front Front Front Center Center Center Center Center Center Center Center Center Center.
soory I should have mentioned ---that sound-- is what you are supposed to hear, but you chose the Front_Center.wav

ok for now, delete all asoundrc asound* from /etc /home/yourname plse.

full reboot and post the contents of this command pls
Code:
cat /proc/asound/card0/codec#0 | grep Codec
2) aplay is very basic I use vlc myself but glad you are happy with mplayer and let keep it simple so more than happy we are looking at
Quote:
I just need basic sound from my laptop speakers.
how many audio holes (= stacks) do you have eg one green one orange one blue? or just the 2?
 
Old 09-26-2013, 08:08 PM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Just to be blunt
when you use aplay without a timeout....you will hear repeated sounds.....thats normal

You may have nothing wrong.
 
Old 09-27-2013, 12:26 PM   #8
slamtonio
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello,

Per your request..

Quote:
[root@localhost ~]# cat /proc/asound/card0/codec#0 | grep Codec
Codec: ATI R6xx HDMI
Re: audio holes – on this laptop they are not color coded, but there are two – mic and headset.

Thanks again.

Antonio
 
Old 09-27-2013, 01:54 PM   #9
slamtonio
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello Aus9,

Just some more information, maybe it's helpful. I downloaded and install vlc and tried to test an MP3 and got alsa audio output error: cannot write: broken pipe.

Also tried to test the same .wav file I was using with aplay and got the same results. Repeat sound. front front front front front front front front front front center center center center center center center center center center
 
Old 09-29-2013, 07:03 PM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ok post the contents of these commands pls, if the same just show one

Code:
cat /proc/asound/devices
or
cat /proc/asound/pcm
we are going use your output to create a home .asoundrc file with the contents and forumula as follows
Quote:
pcm.!default {
type hw
card <number>
device <number>
}
now from your earlier post we have
Quote:
[root@localhost etc]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
so your last reply on this matter is you don't want hdmi but laptop speaker so the config can be half completed with

##############
pcm.!default {
type hw
card 0
device 0
}

part two......go into alsamixer and if no laptop speaker sound....with volumes raised etc
-----then and only then....mute the SPDIF control or its already muted unmute it

Last edited by aus9; 09-29-2013 at 07:05 PM.
 
Old 10-01-2013, 05:32 PM   #11
slamtonio
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello Aus,

Quote:
[antonio@localhost ~]$ cat /proc/asound/devices
2: : timer
3: [ 0- 3]: digital audio playback
4: [ 0- 0]: hardware dependent
5: [ 0] : control
6: [ 1- 0]: digital audio playback
7: [ 1- 0]: digital audio capture
8: [ 1- 0]: hardware dependent
9: [ 1] : control
Quote:
[antonio@localhost ~]$ cat /proc/asound/pcm
00-03: HDMI 0 : HDMI 0 : playback 1
01-00: ALC269VB Analog : ALC269VB Analog : playback 1 : capture 1
The output from my initial aplay –l in my post is a little different now because back then I was adjusting the module loading order for each card in /etc/modprobe.com and trying to make the non-HDMI card be card 0 as I thought that could help. It did not.

If I leave modprobe.conf untouched, my current aplay –l is as follows. Please note, there are no asound* files under etc. and to be on the safe side I’ve done a reboot on each file modification.

Quote:
[root@localhost ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
So following the content and formula you suggested, my current /home/antonio/.asoundrc is

Quote:
pcm.!default {
type hw
card 1
device 0
}
Note when I had the following added to /home/antonio/.asoundrc file, I would experience the repeat issue on mplayer and vlc. When it’s removed, sound plays fine. Aplay is still giving me problems, so something is still awry. But for the moment I can live with using mplayer and vlc.

Quote:
ctl.!default {
type hw
card 1
device 0
}
Once again, thanks for all of your help. If you see something obvious to get aplay working properly. I all ears.

Regards,
 
Old 10-01-2013, 07:05 PM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
no I can't spot off hand but if you ever choose to play sound thru a hdmi cable you would use this output
Quote:
[antonio@localhost ~]$ cat /proc/asound/pcm
00-03: HDMI 0 : HDMI 0 : playback 1
01-00: ALC269VB Analog : ALC269VB Analog : playback 1 : capture 1
and note that hdmi is 0 3 so your asoundrc would become ---with fingers and toes crossed
Quote:
pcm.!default {
type hw
card 0
device 3
}
bye for now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
5.1 Surround Sound on Acer Aspire Laptop Help Needed fedora.linux.64 Linux - Laptop and Netbook 1 07-18-2010 04:26 AM
No Sound on an Acer Aspire 8930g Laptop BKC Linux - Hardware 1 05-28-2009 12:25 PM
sound problem on my acer aspire 5315 laptop fastestOS Slackware 5 08-09-2008 06:27 AM
Help ACER Aspire 9810 Laptop sound only works thru shared spdif/headphone jack califalcon Linux - Laptop and Netbook 3 08-30-2007 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration