Audio quality microphone terrible on LG Nexus 4

Bug #1332810 reported by gajus
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
High
Unassigned

Bug Description

Audio quality of the microphone is terrible when calling other people with a LG Nexus 4. People can't understand a word you say. I can provide additional information if needed.
---
AlsaInfo: This script requires lspci. Please install it, and re-run this script.
ApportVersion: 2.14.3-0ubuntu1
Architecture: armhf
AudioDevicesInUse: Error: [Errno 2] No such file or directory
CurrentDesktop: Unity
CurrentDmesg: dmesg: klogctl failed: Operation not permitted
DistroRelease: Ubuntu 14.10
InstallationDate: Installed on 2014-06-18 (4 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140618)
Package: alsa-driver (not installed)
Tags: utopic
Uname: Linux 3.4.0-5-mako armv7l
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm autopilot cdrom dialout dip nopasswdlogin plugdev sudo tty video
_MarkForUpload: True
---
ApportVersion: 2.14.3-0ubuntu1
Architecture: armhf
AudioDevicesInUse: Error: [Errno 2] No such file or directory
CurrentDesktop: Unity
CurrentDmesg: dmesg: klogctl failed: Operation not permitted
DistroRelease: Ubuntu 14.10
InstallationDate: Installed on 2014-06-18 (4 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140618)
Package: alsa-driver (not installed)
Tags: utopic
Uname: Linux 3.4.0-5-mako armv7l
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm autopilot cdrom dialout dip nopasswdlogin plugdev sudo tty video
_MarkForUpload: True

gajus (gajus)
affects: indicator-server → ubuntu
description: updated
Revision history for this message
Daniel Letzeisen (dtl131) wrote :

Please run the following command to automatically gather information:
apport-collect 1332810

affects: ubuntu → alsa-driver (Ubuntu)
Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
gajus (gajus) wrote : BootDmesg.txt

apport information

tags: added: apport-collected utopic
description: updated
Revision history for this message
gajus (gajus) wrote : ProcEnviron.txt

apport information

Revision history for this message
gajus (gajus) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
gajus (gajus) wrote : BootDmesg.txt

apport information

Revision history for this message
gajus (gajus) wrote : ProcEnviron.txt

apport information

Revision history for this message
gajus (gajus) wrote :

also installed pciutils for AlsaInfo

Changed in alsa-driver (Ubuntu):
status: Incomplete → New
Revision history for this message
Raymond (superquad-vortex2) wrote :
Download full text (3.2 KiB)

any reason using pulseaudio ?

only android know which capture device and controls out of 400+ contols

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 0: MultiMedia1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 1: MultiMedia2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 2: CS-Voice (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 3: VoIP (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 5: SLIMBUS_0 Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 6: INT_FM Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 8: AFE-PROXY TX msm-stub-tx-8 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 9: COMPR (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 10: AUXPCM Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 12: Voice Stub (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 13: VoLTE (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 14: MultiMedia5 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 16: (Slimbus Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 18: (Internal BT-SCO Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 20: (Internal FM Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 23: (AFE Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 25: (AUX PCM Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 26: (Stub Playback) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 27: (Stub Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 29: (Slimbus1 Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 30: SLIMBUS_2 Hostless Capture tabla_tx2-30 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 33: (Slimbus4 Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 34: (Stub1 Capture) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: apq8064tablasnd [apq8064-tabla-snd-card], device 36: (Slimbus3 Capture) [...

Read more...

Revision history for this message
Raymond (superquad-vortex2) wrote :

Mixer controls for card 0 [apq8064tablasnd]:]

Card hw:0 'apq8064tablasnd'/'apq8064-tabla-snd-card'
  Mixer name : ''
  Components : ''
  Controls : 434
  Simple ctrls : 434

Revision history for this message
gajus (gajus) wrote :

Hi Raymond, there is no particular reason for using pulseaudio. Just installed touch a few days ago to play around a bit. My setup consists of the default "factory" settings (followed the instructions here: http://developer.ubuntu.com/start/ubuntu-for-devices/installing-ubuntu-for-devices/).

Should I try the following?:

http://linuxg.net/how-to-properly-replace-pulseaudio-with-alsa-on-crunchbag-linux-and-debian-squeeze/

Revision history for this message
Raymond (superquad-vortex2) wrote :

do you have the alsa UCM file of the android OS ?

thhat file contain the usage of those playback and capturr devices

http://cgit.freedesktop.org/pulseaudio/pulseaudio/log/src?qt=grep&q=ucm

Revision history for this message
gajus (gajus) wrote :

These ucm conf files I can locate on my filesystem but I don't think that is what you are looking for?

/usr/share/alsa/ucm/apq8064-tabla-snd-card/apq8064-tabla-snd-card.conf
/usr/share/alsa/ucm/DAISY-I2S/DAISY-I2S.conf
/usr/share/alsa/ucm/DAISY-I2S/HiFi.conf
/usr/share/alsa/ucm/Manta-I2S/Manta-I2S.conf
/usr/share/alsa/ucm/Manta-SPDIF/Manta-SPDIF.conf
/usr/share/alsa/ucm/PandaBoardES/PandaBoardES.conf
/usr/share/alsa/ucm/PandaBoard/PandaBoard.conf
/usr/share/alsa/ucm/SDP4430/SDP4430.conf
/usr/share/alsa/ucm/tegraalc5632/tegraalc5632.conf
/usr/share/alsa/ucm/tegra-rt5640/tegra-rt5640.conf
/usr/share/alsa/ucm/Tuna/Tuna.conf

Revision history for this message
Raymond (superquad-vortex2) wrote :

in theory, only one ucm file for the specific audio hardware and no other UCM files of other platform since storages are limited

usr/share/alsa/ucm/apq8064-tabla-snd-card/apq8064-tabla-snd-card.conf

the andorid audio API use opensl which have three profiles , multimedia, phone and games

Revision history for this message
Raymond (superquad-vortex2) wrote :

it don't need a sound server because ucm manager can switch audio devices according to the profile

only foreground apps is allowed to play audio

when you are playing game and receive a phone call, the game is paused

Revision history for this message
Raymond (superquad-vortex2) wrote :

http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD

it is a bug of installation which uninstall useless Ucm conf to unsupported platform

Revision history for this message
gajus (gajus) wrote :

phablet@ubuntu-phablet:/usr/share/alsa/ucm/apq8064-tabla-snd-card$ cat apq8064-tabla-snd-card.conf
SectionUseCase."HiFi" {
 File "HiFi"
 Comment "Play HiFi quality Music."
}
SectionUseCase."Voice Call" {
 File "VoiceCall"
 Comment "Make a phone call"
}

Revision history for this message
gajus (gajus) wrote :

also followed instructions here: http://linuxg.net/how-to-properly-replace-pulseaudio-with-alsa-on-crunchbag-linux-and-debian-squeeze/

audio is better now, but now people are hearing me to loudly:) especially the high frequencies. alsamixergui failed to install ohterwise could play around with the equalizer a bit.

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/m/mesa/libgl1-mesa-glx_10.1.3-0ubuntu1_armhf.deb 404 Not Found [IP: 91.189.88.140 80]

see if I can fix that (or maybe just back to andoid for a while...)

Revision history for this message
Raymond (superquad-vortex2) wrote :

http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/PandaBoard;hb=HEAD

there are other files for different use cases : Hiring, voice call,... which contains that the sequence of changing those corresponding controls to enable the audio oath for each use cases

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Changed in alsa-driver (Ubuntu):
importance: Undecided → High
Revision history for this message
Raymond (superquad-vortex2) wrote :
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in alsa-driver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.