Back to Engineering Blog
Engineering Field Notes 3 min read

The Microphone Worked, the Speaker Didn't: A Codec Pin Problem

The whole voice pipeline worked end to end: recording, transcription, a real reply and a clean playback return code. Nothing came out of the laptop's internal speaker. The kernel log said the codec's speaker pin was misclassified, and the headphone jack still worked.

Jason NevillBy , Houston, TX
#Linux#ALSA#Audio#Hardware

Key Architectural Takeaways

  • When the software path is clean and the output is silent, prove the hardware path with a raw tone test.
  • A microphone working on the same codec rules out missing drivers.
  • A different output pin on the same codec can be a perfectly good workaround.

The symptom

With the stale-cache bug fixed, push-to-talk worked in debug logs: real recording, real transcription, a real reply from the assistant (including an escalation to a specialised agent), and aplay returning 0 with clean playback. The person at the device heard nothing.

The evidence

The kernel log for the sound codec in this repurposed laptop (a Sony Vaio with a Realtek ALC282) said:

snd_hda_codec_realtek hdaudioC1D0: ALC282: SKU not ready 0x411111f0
snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC282: line_outs=1 (0x14) type:speaker
snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0
snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21)

"SKU not ready" means the OEM-programmed configuration that describes how the speaker amplifier is wired was not read correctly. The pin intended for the internal speaker (0x14) was classified as a generic line-out, and speaker_outs=0 shows ALSA never registered a working speaker path. That is a documented class of Linux hardware-quirk problem, though we found no ready-made fix for this exact model.

What it was not

  • Missing drivers. The working theory going in. The microphone on the same codec and driver captured and transcribed speech fine.
  • Mixer levels. Speaker 87%, Master 64%, PCM 99%, all unmuted. The hardware path is broken regardless of software volume.
  • Auto-mute mode. Toggling it changed nothing, and we reverted it.
  • Our pipeline. A raw speaker-test 440 Hz tone, with none of our code involved, was inaudible through the internal speaker.

The workaround

An external speaker in the 3.5 mm jack worked perfectly. The other analogue output pin (0x21, headphones) was never broken. Plugging in made the mixer switch automatically (headphone to 100% on, speaker to 0% off), a repeat of the same tone was audible, and the owner confirmed it.

Verification

The tone test, the mixer switch on plug-in and an audible result were each checked directly.

Takeaway

Narrow a "no sound" problem from the outside in: pipeline, mixer, then a raw tone with nothing of yours involved. If the tone is silent, it is a hardware or codec problem, and you can stop debugging your code.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.