mattlach
100+ Head-Fier
- Joined
- Mar 9, 2009
- Posts
- 408
- Likes
- 228
Hey all,
I'm guessing there has to be at least a handful of other Linux users on here.
I'm a veteran Linux user, but I've never really dug into the audio side of things until recently.
I am currently on Linux Mint 18, with the following setup:
Creative X-Fi Titanium HD ---Toslink---> Schiit Modi 2 Multibit ---> Lyr 2 ---> Headphone du jour
In my current setup, I just plugged everything in and started listening, and it sounds great. Question is, is there anything I should change to make it sound even better?
I i have to admit, I don't have a clear picture of the audio pipeline in Linux.
I know I have an audio source, that somehow outputs to Pulse Audio and ALSA and then out to the DAC.
While it seams that each of ALSA and Pulse Audio have bit depth and output frequency settings, and will dither everything to the set frequency regardless, which is ideally to be avoided. You want your bit depth and frequency to match your source at all times, correct? And for typical music sources, this means 16bit 44.1khz, yes?
Or is there maybe a way to tell ALSA and/or Pulse Audio to autmatically switch the output to the DAC to the bit depth and frequency of the source, so if I - for instance - should isten to 48khz DVD content it outputs this natively and then switches back to 44.1khz when I go back to music?
Well, I started researching this further, and quickly got a little overwhelmed, and would appreciate the input and clarification from anyone who considers themselves knowledgeable in this subject.
I read that a the "pacmd list-sinks" command can be helpful, so I ran it and wound up with the following:
Some thoughts after reading the above output:
What is the difference between s16le and s16be? Google tells me one is "little endian" and one is "big endian". Should I choose one over the other?
And latency, what is this latency? It can't possibly be the output latency, the time from a sound being played, before it appears in my ears? 700+ms seems rather extreme, and that I would have significant problems with this kind of latency. If I play a video clip, sound seems to sync well with the video, sos I suspect thsi is measuring something else, but what it is, I have no idea. Is something wrong here?
I'd appreciate any suggestions and / or help anyone can provide!
--Matt
I'm guessing there has to be at least a handful of other Linux users on here.
I'm a veteran Linux user, but I've never really dug into the audio side of things until recently.
I am currently on Linux Mint 18, with the following setup:
Creative X-Fi Titanium HD ---Toslink---> Schiit Modi 2 Multibit ---> Lyr 2 ---> Headphone du jour
In my current setup, I just plugged everything in and started listening, and it sounds great. Question is, is there anything I should change to make it sound even better?
I i have to admit, I don't have a clear picture of the audio pipeline in Linux.
I know I have an audio source, that somehow outputs to Pulse Audio and ALSA and then out to the DAC.
While it seams that each of ALSA and Pulse Audio have bit depth and output frequency settings, and will dither everything to the set frequency regardless, which is ideally to be avoided. You want your bit depth and frequency to match your source at all times, correct? And for typical music sources, this means 16bit 44.1khz, yes?
Or is there maybe a way to tell ALSA and/or Pulse Audio to autmatically switch the output to the DAC to the bit depth and frequency of the source, so if I - for instance - should isten to 48khz DVD content it outputs this natively and then switches back to 44.1khz when I go back to music?
Well, I started researching this further, and quickly got a little overwhelmed, and would appreciate the input and clarification from anyone who considers themselves knowledgeable in this subject.
I read that a the "pacmd list-sinks" command can be helpful, so I ran it and wound up with the following:
Apparently this forum does not use code tags, or at least not in a way that was immediately apparent to me.
Code:
[/font]
[font=verdana] * index: 1
name: <alsa_output.pci-0000_02_00.0.iec958-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9058
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 742.74 ms
max request: 127 KiB
max rewind: 128 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 743.04 ms; range is 0.50 .. 743.04 ms
card: 1 <alsa_card.pci-0000_02_00.0>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "IEC958 Non-audio"
alsa.id = "ctxfi"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "4"
alsa.card = "0"
alsa.card_name = "Creative X-Fi"
alsa.long_card_name = "Creative X-Fi 20K2 SB1270"
alsa.driver_name = "snd_ctxfi"
device.bus_path = "pci-0000:02:00.0"
sysfs.path = "/devices/pci0000:00/0000:00:03.0/0000:02:00.0/sound/card0"
device.bus = "pci"
device.vendor.id = "1102"
device.vendor.name = "Creative Labs"
device.product.id = "000b"
device.product.name = "EMU20k2 [X-Fi Titanium Series]"
device.string = "iec958:0"
device.buffering.buffer_size = "131072"
device.buffering.fragment_size = "65536"
device.access_mode = "mmap+timer"
device.profile.name = "iec958-stereo"
device.profile.description = "Digital Stereo (IEC958)"
device.description = "EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958)"
alsa.mixer_name = "20K2"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:
active port: <iec958-stereo-output>[/font]
[font=verdana]
Some thoughts after reading the above output:
What is the difference between s16le and s16be? Google tells me one is "little endian" and one is "big endian". Should I choose one over the other?
And latency, what is this latency? It can't possibly be the output latency, the time from a sound being played, before it appears in my ears? 700+ms seems rather extreme, and that I would have significant problems with this kind of latency. If I play a video clip, sound seems to sync well with the video, sos I suspect thsi is measuring something else, but what it is, I have no idea. Is something wrong here?
I'd appreciate any suggestions and / or help anyone can provide!
--Matt