User Tools

Site Tools


alsa_only_audio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
alsa_only_audio [2025/07/09 07:46] ethanalsa_only_audio [2025/10/18 08:35] (current) ethan
Line 46: Line 46:
   Subdevice #0: subdevice #0   Subdevice #0: subdevice #0
 ... ...
-</code> +</code> 
 + 
 +card 1 and device 1 will be used for this guide. in most places, this is specified with **"hw:1,1"**. the first number is the card and the second is the device.
  
 =====mixing===== =====mixing=====
Line 66: Line 68:
 pcm.!default plug:mixer  # set the default device to the mixer. pcm.!default plug:mixer  # set the default device to the mixer.
 </file> </file>
 +
 +=====Bluetooth=====
 +[[https://github.com/arkq/bluez-alsa|BlueALSA]] can be used to easily play audio on Bluetooth audio devices.
 +
 +the pcm and ctl 'bluealsa' is created automatically, and in most cases they can be used directly. see the project's wiki for more information on configuration.
 +
 +<file bash ~/.asoundrc>
 +pcm.!default bluealsa
 +ctl.!default bluealsa
 +</file>
 +
 +you can use **bluealsa-cli** to get information on your Bluetooth devices.
 +<code bash>
 +$ bluealsa-cli list-pcms
 +/org/bluealsa/hci1/dev_XX_XX_XX_XX_XX_XX/a2dpsrc/sink
 +
 +$ bluealsa-cli info -vv /org/bluealsa/hci1/dev_XX_XX_XX_XX_XX_XX/a2dpsrc/sink
 +...
 +Format: S32_LE
 +Channels: 2
 +Sampling: 96000 Hz
 +Available codecs:
 +        ...
 + LDAC:... [channels: 1 2 2] [sampling: 44100 48000 88200 96000] # supported sample rates.
 +Selected codec:
 + LDAC:... [channels: 2] [sampling: 96000]
 +...
 +</code>
 +
 +====LDAC====
 +on Sony and other brand products which support it, LDAC is a codec which provides a high bit depth and sample rate. BlueALSA supports LDAC, but some packages are built without it.
 +
 +on Arch Linux, the package in the AUR disables LDAC support so you must edit the PKGBUILD or compile it manually. uncomment/pass --enable-ldac.
 +
 +if wokring correctly, BlueALSA will automatically use LDAC on supported devices, and adjust the sample rate depending on the audio.
  
 =====S/PDIF multichannel===== =====S/PDIF multichannel=====
alsa_only_audio.1752047211.txt.gz · Last modified: 2025/07/09 07:46 by ethan

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki