2015-06-08, 05:37
I bought a new USB external sound card; Taga Harmony DA-300.
SPDIF IN (coaxial and optical):
24bit 192kHz (Coaxial, Optical)
TI Burr-Brown Audio PCM2704 chip
USB IN:
16bit 48kHz (USB) CirrusLogic CS8416 chip
---
MY ALSA CONFIG
At first change in: /etc/modprobe.d/alsa-base.conf
options snd-usb-audio index=-2
..to:
options snd-usb-audio index=0
Ad some simple basic settings in .asoundrc. Only this:
defaults.pcm.!card Audio
defaults.pcm.!device 1
( default:CARD=Audio from aplay -L)
Restart computer. Importent to get digital signal to function, as a plug in do not connect spdif.
Done, it should know come up as default in Kodi, and you can set its spdif as pass though outpup there also. pcm (default music signal) and EDIT dts do NOT function and not ac3.
I also installed phonon-backend-vlc, and move up default in multimedia gui in KDE. Do not know if that made any difference, but If you use the computer as a desktop workstation, it make some difference in sound quality with alsa.
SOME EXTRA THOUGHT FOR DISCUSSION
When I was mixing with this to find a solution ,the funny thing is that when I had an other configuration , I got better output from, mplayer, (but Kodi did not function then).
This was my configuration, then (in .asoundrc):
cm.!default {
type plug
slave {
pcm "hw:0,1"
}
}
ctl.!default {
type hw
card 0
}
So when I played by command line:
mplayer /media/multimedia/music/Pink\ Floyd\ -\ The\ Dark\ Side\ Of\ The\ Moon\ \(2011\)\ \{FLAC\}\ \[Blu-Ray\ 24-96\ Stereo\]\04.Time.flac
AUDIO: 96000 Hz, 2 ch, s32le, 2834.0 kbit/46.13% (ratio: 354244->768000)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
AO: [alsa] 96000Hz 2ch s32le (4 bytes per sample)
Now I only got this:
AO: [alsa] 48000Hz 2ch s32le (4 bytes per sample)
I doubt I can hear any difference, but its funny the usb take the higher sampling rate. If I try to put it out by raw format (by aplay) it did ot function, only got noise.
Some data about the sound card:
---
From cat /proc/asound/card0/stream1
---
Playback:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 6 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Interface 2
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 6 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Capture:
Status: Stop
Interface 5
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 8 IN (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Interface 5
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 8 IN (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
---
From cat /proc/asound/card0/stream2
---
Playback:
Status: Running
Interface = 2
Altset = 3
Packet Size = 33
Momentary freq = 48000 Hz (0x6.0000)
Feedback Format = 16.16
Interface 2
Altset 3
Format: S16_LE
Channels: 2
Endpoint: 6 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
---
I got a solution, but any comment is interesting on this, I think. What is best sound, 96000Hz Little Endian ore 48000Hz 2ch s32le?
Wy can not Kodis paplayer play at 96000Hz Little Endian, but mplayer do?
SPDIF IN (coaxial and optical):
24bit 192kHz (Coaxial, Optical)
TI Burr-Brown Audio PCM2704 chip
USB IN:
16bit 48kHz (USB) CirrusLogic CS8416 chip
---
MY ALSA CONFIG
At first change in: /etc/modprobe.d/alsa-base.conf
options snd-usb-audio index=-2
..to:
options snd-usb-audio index=0
Ad some simple basic settings in .asoundrc. Only this:
defaults.pcm.!card Audio
defaults.pcm.!device 1
( default:CARD=Audio from aplay -L)
Restart computer. Importent to get digital signal to function, as a plug in do not connect spdif.
Done, it should know come up as default in Kodi, and you can set its spdif as pass though outpup there also. pcm (default music signal) and EDIT dts do NOT function and not ac3.
I also installed phonon-backend-vlc, and move up default in multimedia gui in KDE. Do not know if that made any difference, but If you use the computer as a desktop workstation, it make some difference in sound quality with alsa.
SOME EXTRA THOUGHT FOR DISCUSSION
When I was mixing with this to find a solution ,the funny thing is that when I had an other configuration , I got better output from, mplayer, (but Kodi did not function then).
This was my configuration, then (in .asoundrc):
cm.!default {
type plug
slave {
pcm "hw:0,1"
}
}
ctl.!default {
type hw
card 0
}
So when I played by command line:
mplayer /media/multimedia/music/Pink\ Floyd\ -\ The\ Dark\ Side\ Of\ The\ Moon\ \(2011\)\ \{FLAC\}\ \[Blu-Ray\ 24-96\ Stereo\]\04.Time.flac
AUDIO: 96000 Hz, 2 ch, s32le, 2834.0 kbit/46.13% (ratio: 354244->768000)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
AO: [alsa] 96000Hz 2ch s32le (4 bytes per sample)
Now I only got this:
AO: [alsa] 48000Hz 2ch s32le (4 bytes per sample)
I doubt I can hear any difference, but its funny the usb take the higher sampling rate. If I try to put it out by raw format (by aplay) it did ot function, only got noise.
Some data about the sound card:
---
From cat /proc/asound/card0/stream1
---
Playback:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 6 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Interface 2
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 6 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Capture:
Status: Stop
Interface 5
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 8 IN (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Interface 5
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 8 IN (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
---
From cat /proc/asound/card0/stream2
---
Playback:
Status: Running
Interface = 2
Altset = 3
Packet Size = 33
Momentary freq = 48000 Hz (0x6.0000)
Feedback Format = 16.16
Interface 2
Altset 3
Format: S16_LE
Channels: 2
Endpoint: 6 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
---
I got a solution, but any comment is interesting on this, I think. What is best sound, 96000Hz Little Endian ore 48000Hz 2ch s32le?
Wy can not Kodis paplayer play at 96000Hz Little Endian, but mplayer do?