Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:audio:tone1:tone-linux

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
products:audio:tone1:tone-linux [2022/08/04 22:47]
hyphop [How to Get the Proper ALSA Device Name, to get Bit-Perfect Playback]
products:audio:tone1:tone-linux [2022/08/04 22:51]
hyphop [Disable PulseAudio for Tone2 Pro, Tone1, and other Khadas Audio Devices]
Line 10: Line 10:
  
 ```shell ```shell
-which pulseaudio || echo PulseAudio not installed+which pulseaudio || echo PulseAudio not installed
 ``` ```
 If PulseAudio is installed, it is very easy to create a custom configuration file! If PulseAudio is installed, it is very easy to create a custom configuration file!
-```shell+```sh install-pulse-audio-udev-rules.sh
 sudo tee /etc/udev/rules.d/89-pulseaudio-usb.rules <<END sudo tee /etc/udev/rules.d/89-pulseaudio-usb.rules <<END
 # Disable PulseAudio for next usb-audio devices by usb-id # Disable PulseAudio for next usb-audio devices by usb-id
Line 41: Line 41:
  
 Enter the following command into Terminal: Enter the following command into Terminal:
-```shell+```sh
 grep -H DSD_U32_BE /proc/asound/card?/stream0 && \ grep -H DSD_U32_BE /proc/asound/card?/stream0 && \
-echo Native DSD support - ok+ echo Native DSD support - ok
 ``` ```
  
Line 54: Line 54:
 Get a list of all supported audio file formats using Terminal: Get a list of all supported audio file formats using Terminal:
 ```shell ```shell
-grep "" /proc/asound/card?/stream0+grep "" /proc/asound/card?/stream0
 # or  # or 
-grep -e usb -e Format -e Bits -e Rates /proc/asound/card?/stream0+grep -e usb -e Format -e Bits -e Rates /proc/asound/card?/stream0
 ``` ```
 Example Output: Example Output:
Line 93: Line 93:
  
 ```shell ```shell
-sudo apt-get install mpd mpc ncmpc+sudo apt-get install mpd mpc ncmpc
 ``` ```
  
Line 100: Line 100:
 Create music folders and the mpd config file (your music library must be accessible from these folders). Create music folders and the mpd config file (your music library must be accessible from these folders).
 ```shell ```shell
-mkdir -p ~/mpd/music ~/mpd/playlists+mkdir -p ~/mpd/music ~/mpd/playlists
 ``` ```
  
Line 217: Line 217:
  
 ```shell ```shell
-cat $(dirname /proc/asound/card?/stream0)/pcm?p/sub?/hw_params+cat $(dirname /proc/asound/card?/stream0)/pcm?p/sub?/hw_params
 ``` ```
  
Last modified: 2022/08/04 22:51 by hyphop