You are not logged in.

#1 2018-01-09 18:50:42

sheoak
Member
Registered: 2018-01-09
Posts: 13

[SOLVED] Sound quality from correct to awful depending on output/media

Hi everyone, this is my first post, so please notify me if I'm doing anything that is not of you liking (I read the newbie posts).

I recently switch completely from ubuntu to Arch on my mabook air (mid 2011, 11").
I cannot get the sound to work properly and spent a lot of time trying different solution out there without success.
Being not very good with everything around driver I think I now require the help of the community :-)

The issue :
- I have alsa and pulseaudio installed
- Speakers works fine
- My headphones (they include a microphone) work fine but I noticed it was somehow unstable (noise)
- My Yamaha THR10 amp sounds awful on the same output as the headphones. I can barely hear the music playing behind the noise.
- The Yamaha works fine with my smartphone.
- I tried different sources and formats.
- My system is up to date.
- I noticed several module starting by snd_hda* are loaded but I have no idea if it's a good thing or not
- I removed all the tests I did in /etc/modprobe.d/ to start from scratch. (see lsmod below)
- I remember having some noise on ubuntu on unstable sound
- I have no way to try the output with a different system but I will try to do that soon

$ uname -a
Linux musasabi 4.14.12-1-ARCH #1 SMP PREEMPT Fri Jan 5 18:19:34 UTC 2018 x86_64 GNU/Linux
$ pacman -Q | grep pulseaudio
pulseaudio 11.1-1
pulseaudio-alsa 2-3

$ pacman -Q | grep alsa      
alsa-firmware 1.0.29-1
alsa-lib 1.1.5-1
alsa-oss 1.0.28-1
alsa-plugins 1.1.5-1
alsa-tools 1.1.5-1
alsa-utils 1.1.5-2
pulseaudio-alsa 2-3
zita-alsa-pcmi 0.2.0-3
$ lspci -vv -d 8086:1c20 
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
Subsystem: Intel Corporation Apple MacBookPro8,2 [Core i7, 15", 2011]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 256 bytes
Interrupt: pin A routed to IRQ 31
Region 0: Memory at a0600000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
$ lsmod
Module                  Size  Used by
btusb                  53248  0
input_leds             16384  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             626688  5 btrtl,btintel,btbcm,btusb
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
hid_generic            16384  0
intel_rapl             24576  0
hid_apple              16384  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             225280  0
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    77824  1 vfat
kvm                   696320  1 kvm_intel
joydev                 24576  0
mousedev               24576  0
snd_hda_codec_hdmi     57344  1
uvcvideo              102400  0
ecdh_generic           24576  1 bluetooth
wl                   6459392  0
snd_hda_codec_cirrus    24576  1
snd_hda_codec_generic    86016  1 snd_hda_codec_cirrus
irqbypass              16384  1 kvm
snd_hda_intel          45056  5
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
videobuf2_v4l2         28672  1 uvcvideo
ghash_clmulni_intel    16384  0
pcbc                   16384  0
videobuf2_core         45056  2 uvcvideo,videobuf2_v4l2
snd_hda_codec         151552  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_cirrus
applesmc               24576  0
cfg80211              733184  1 wl
videodev              204800  3 uvcvideo,videobuf2_core,videobuf2_v4l2
input_polldev          16384  1 applesmc
snd_hda_core           90112  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_cirrus
aesni_intel           188416  0
led_class              16384  2 applesmc,input_leds
aes_x86_64             20480  1 aesni_intel
snd_hwdep              16384  1 snd_hda_codec
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
snd_pcm               114688  5 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
intel_cstate           16384  0
intel_rapl_perf        16384  0
snd_timer              36864  1 snd_pcm
pcspkr                 16384  0
i2c_i801               28672  0
snd                    90112  17 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_cirrus,snd_pcm
lpc_ich                28672  0
media                  45056  2 uvcvideo,videodev
mei_me                 45056  0
rfkill                 28672  4 bluetooth,cfg80211
soundcore              16384  1 snd
mei                   114688  1 mei_me
acpi_als               16384  0
kfifo_buf              16384  1 acpi_als
sbs                    16384  0
shpchp                 40960  0
usbhid                 57344  0
industrialio           77824  2 acpi_als,kfifo_buf
battery                20480  0
sbshc                  16384  1 sbs
apple_bl               16384  0
evdev                  20480  13
hid                   126976  3 hid_generic,usbhid,hid_apple
ac                     16384  0
mac_hid                16384  0
bcm5974                20480  0
sch_fq_codel           20480  2
crypto_user            16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
ext4                  720896  2
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
fscrypto               32768  1 ext4
sd_mod                 61440  4
uhci_hcd               49152  0
ahci                   40960  3
libahci                40960  1 ahci
crc32c_intel           24576  0
libata                274432  2 ahci,libahci
ehci_pci               16384  0
ehci_hcd               94208  1 ehci_pci
scsi_mod              204800  2 sd_mod,libata
usbcore               282624  7 uvcvideo,usbhid,bcm5974,ehci_hcd,uhci_hcd,btusb,ehci_pci
usb_common             16384  1 usbcore
i915                 1884160  7
video                  45056  1 i915
button                 16384  1 i915
intel_gtt              24576  1 i915
i2c_algo_bit           16384  1 i915
drm_kms_helper        192512  1 i915
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
drm                   434176  6 i915,drm_kms_helper
agpgart                49152  2 intel_gtt,drm   
$ amixer -c0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [6.00dB] [on]
  Front Right: Playback 127 [100%] [6.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 89 [70%] [-13.00dB] [off]
  Front Right: Playback 89 [70%] [-13.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [12.00dB] [on]
  Front Right: Capture 63 [100%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 0 [0%] [-30.00dB]
  Front Right: Capture 0 [0%] [-30.00dB]
$ dmesg | grep snd
[    6.573570] snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002)
[    6.574016] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.631673] snd_hda_codec_cirrus hdaudioC0D0: autoconfig for CS4206: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:speaker
[    6.631683] snd_hda_codec_cirrus hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    6.631690] snd_hda_codec_cirrus hdaudioC0D0:    hp_outs=1 (0x9/0x0/0x0/0x0/0x0)
[    6.631696] snd_hda_codec_cirrus hdaudioC0D0:    mono: mono_out=0x0
[    6.631700] snd_hda_codec_cirrus hdaudioC0D0:    inputs:
[    6.631707] snd_hda_codec_cirrus hdaudioC0D0:      Mic=0xd


Thank you so much for your help, I'm getting crazy on this one!

Edit: I just noticed that when I unppluged the external output (that is now not playing the music at all, just small noise) I have a suddenly higher sound on the speakers before the sound comes back to them normally.

Last edited by sheoak (2018-01-11 12:35:08)

Offline

#2 2018-01-11 09:38:20

sheoak
Member
Registered: 2018-01-09
Posts: 13

Re: [SOLVED] Sound quality from correct to awful depending on output/media

Additionnal info: some sounds play well on my headphones, but others have a lot of noise while they play perfectly on speakers

Offline

#3 2018-01-11 11:25:06

sheoak
Member
Registered: 2018-01-09
Posts: 13

Re: [SOLVED] Sound quality from correct to awful depending on output/media

I was able to plug the THR10 in USB as a sound card and it works perfectly find so it seems to be related to the macbook's sound card's driver.

Offline

#4 2018-01-11 12:34:13

sheoak
Member
Registered: 2018-01-09
Posts: 13

Re: [SOLVED] Sound quality from correct to awful depending on output/media

Well, I was deperate and tried random values for card model as I couldn't find the documentation, and this fixed it…

$ vi /etc/modprobe.d/sound.conf
# specify card model to avoid headphone distortion on macbook air mid 2011 (snd-hda-intel C200)
options snd-hda-intel model=intel-mac-auto

Offline

Board footer

Powered by FluxBB