ALSA PCM State Machine

Note to self   1. PCM state (snd_pcm_state_t) [1] SND_PCM_STATE_OPEN SND_PCM_STATE_SETUP SND_PCM_STATE_PREPARED SND_PCM_STATE_RUNNING SND_PCM_STATE_XRUN SND_PCM_STATE_DRAINING SND_PCM_STATE_PAUSED SND_PCM_STATE_SUSPENDED SND_PCM_STATE_DISCONNECTED   State Machine [2]     References [1] snd_pcm_state_t [2] ALSA project – the C library reference

Updating ALSA on Raspbian Stretch

This post shows how to update ALSA [1] on Raspberry Pi running Raspbian Stretch. As of writing this post (Dec. 9th 2018) the latest ALSA version is 1.1.7.   Setup (parentheses indicate my environment) Raspberry Pi (Raspberry Pi 3 B+) running Raspbian Stretch (Nov. 2018) Speaker connected to Raspberry Pi’s 3.5 mm audio jack  … Continue reading “Updating ALSA on Raspbian Stretch”

Enabling Equalizer on Raspberry Pi using ALSA equal Plugin

This post shows how to setup a system wide equalizer on Raspberry Pi using ALSA equal plugin. Below are my setup. Raspberry Pi3 B+ with Raspbian Stretch (2018 April version) 3.5 mm plug Speaker   Contents – Assumptions – Steps 1. Equalizer Plugin Installation 2. ALSA Configuration 3. Play audio 4. Verify Equalizer – Notes – Reference  … Continue reading “Enabling Equalizer on Raspberry Pi using ALSA equal Plugin”

Streaming Bluetooth Audio from Phone to Raspberry Pi using ALSA

Update (Jan 8, 2020): Step 1 has been updated to fix codebay and elba’s problems based on peacekunov’s feedback (Thanks!). Please see the comments for details. Update (May 22, 2019): Steps to manually enable A2DP sink role has been added based on Wolfgang and John’s feedback. (Step 1). This post shows steps to setup Bluetooth audio… Continue reading “Streaming Bluetooth Audio from Phone to Raspberry Pi using ALSA”

Enabling Equalizer on Handsfree Sending Audio with ALSA equal plugin

This post shows steps to enable equalizer on Bluetooth handsfree (HFP) sending audio by using ALSA equal plugin.   Contents – Prerequisites – Steps 1. Equalizer Plugin Installation 2. ALSA Configuration 3. PulseAudio Configuration 4. Connect your phone and make a call 5. Adjust equalizer – Reference   Prerequisites Bluetooth Handsfree profile needs to be… Continue reading “Enabling Equalizer on Handsfree Sending Audio with ALSA equal plugin”