sbp wrote: 
> Hi I trust you that you are having these upsampling problems.
> When I read the pages you linked to it seems like ALSA will use this
> default rate of 48000 if it "thinks" that your USB-DAC is not able to
> handle the sample rate of the flac file.
> 
> Could you please give the output of:
> 1.  Option 4 in the picoreplayer menu
> 2.  Give the string you use for squeezelite
> 3.  The total output of cat /proc/asound/card0/stream0 when you are
> playing a 44.1 flac file.
> 4.  Use the "top" command and copy the line where the squeezelite player
> is mentioned 
> 
> Steen

Hmm...I was very wrong from the very beginning about the ALSA devices
settings because I know so little about Linux. Please forget everything
I have said before.

Here are the analysis of my USB DAC under v1.05 (v1.0 is have no
difference)

My ALSA devices in Option 4:

Output devices:
null                           - Discard all samples (playback) or
generate zero samples (capture)
default:CARD=AudioAsynchr      - 192KHz/24bit USB Audio (Asynchr, USB
Audio - Default Audio Device
sysdefault:CARD=AudioAsynchr   - 192KHz/24bit USB Audio (Asynchr, USB
Audio - Default Audio Device
front:CARD=AudioAsynchr,DEV=0  - 192KHz/24bit USB Audio (Asynchr, USB
Audio - Front speakers
surround40:CARD=AudioAsynchr,DEV=0 - 192KHz/24bit USB Audio (Asynchr,
USB Audio - 4.0 Surround output to Front and Rear speakers
surround41:CARD=AudioAsynchr,DEV=0 - 192KHz/24bit USB Audio (Asynchr,
USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=AudioAsynchr,DEV=0 - 192KHz/24bit USB Audio (Asynchr,
USB Audio - 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=AudioAsynchr,DEV=0 - 192KHz/24bit USB Audio (Asynchr,
USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer
speakers
surround71:CARD=AudioAsynchr,DEV=0 - 192KHz/24bit USB Audio (Asynchr,
USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer
speakers
iec958:CARD=AudioAsynchr,DEV=0 - 192KHz/24bit USB Audio (Asynchr, USB
Audio - IEC958 (S/PDIF) Digital Audio Output
default:CARD=ALSA              - bcm2835 ALSA, bcm2835 ALSA - Default
Audio Device
sysdefault:CARD=ALSA           - bcm2835 ALSA, bcm2835 ALSA - Default
Audio Device

My setting is:

-o front:CARD=AudioAsynchr,DEV=0 -n Picoplayer

My "cat /proc/asound/card0/stream0" and "cat
/proc/asound/card0/pcm0p/sub0/hw_params" outputs:

Playing 16/44.1 music:

Audio-gd 192KHz/24bit USB Audio (Asynchr at usb-bcm2708_usb-1.3, high
speed : USB Audio

Playback:
Status: Running
Interface = 3
Altset = 2
Packet Size = 156
Momentary freq = 44104 Hz (0x5.8350)
Packet Size = 0
Momentary freq = 44100 Hz (0x5.8333)
Interface 3
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 3 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Interface 3
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 3 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us

access: MMAP_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 441
buffer_size: 1764

Continuous pop sound, maybe due to "Altset=2" and "format: S24_3LE"
whichs plays it in 24bit.

Playing 24/48 music:

Playback:
Status: Running
Interface = 3
Altset = 2
Packet Size = 156
Momentary freq = 48002 Hz (0x6.0010)
Packet Size = 0
Momentary freq = 48000 Hz (0x6.0000)
(Rest are truncated)

access: MMAP_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 480
buffer_size: 1920

Perfect sound.

"cat /proc/asound/card0/stream0" while playing 24/96 music:

Playback:
Status: Running
Interface = 3
Altset = 2
Packet Size = 156
Momentary freq = 176016 Hz (0x16.0080)
Feedback Format = 9.15
Packet Size = 0
Momentary freq = 96000 Hz (0xc.0000)
(Rest are truncated)

access: MMAP_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 96000 (96000/1)
period_size: 960
buffer_size: 3840

Totally distorted, maybe due to it upsample automatically to 176016 Hz

Please forget my previous post using "-o default" because it was the
cause of locking in 16/48 with every format, bit depth and bit rate.

I tested every name founded in option 4. Results:

-o default:CARD=AudioAsynchr -- Lock in 16/48
-o sysdefault:CARD=AudioAsynchr -- Lock in 16/48
-o front:CARD=AudioAsynchr,DEV=0 -- Results listed above
-o surround40:CARD=AudioAsynchr,DEV=0 -- The same as "-o
front:CARD=AudioAsynchr,DEV=0"
-o surround41:CARD=AudioAsynchr,DEV=0 -- Squeezelite does not run
-o surround50:CARD=AudioAsynchr,DEV=0 -- Squeezelite does not run
-o surround51:CARD=AudioAsynchr,DEV=0 -- Squeezelite does not run
-o surround71:CARD=AudioAsynchr,DEV=0 -- Squeezelite does not run
-o iec958:CARD=AudioAsynchr,DEV=0 -- The same as "-o
front:CARD=AudioAsynchr,DEV=0"

My temporary workaround is to use the following settings to play my
majority music in 16/44.1. It is working fine but limits to 16 bit
only.

-a ::16 -o front:CARD=AudioAsynchr,DEV=0 -n Picoplayer

Please help.

Elvin


------------------------------------------------------------------------
fourwed's Profile: http://forums.slimdevices.com/member.php?userid=60662
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to