You are not logged in.

#1 2015-09-18 09:19:50

drtebi
Member
Registered: 2013-02-09
Posts: 148

ALSA: Force 44100 Sample Rate Output

I have been reading forum entries and googled, but no matter what I set or write into asoundrc, ALSA either keeps upsampling to 48000 or I don't hear anything at all. I want to force a 44100 Hz sample rate output so that I can use my external DAT recorder to record.

My card is a M-Audio Delta 1010LT.

Everything runs fine with the default ALSA install after unmuting and setting the analog volume with envycontrol.

Right now there is no global or local asound config file.

Here some info that might be helpful:
aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=M1010LT
    M Audio Delta 1010LT, ICE1712 multi
    Default Audio Device
front:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    Front speakers
surround21:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    4.0 Surround output to Front and Rear speakers
surround41:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=M1010LT,DEV=0
    M Audio Delta 1010LT, ICE1712 multi
    IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=PCH
    HDA Intel PCH, ALC1150 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

In envycontrol:
- on the "Patchbay/Router" page, "H/W Out 1 (L)" is set to "Digital Mix L" and "H/W Out 1 (R)" to "Digital Mix R"
- on the "Patchbay/Router" page, "S/PDIF Out 1 (L)" is set to "Digital Mix L" and "S/PDIF Out 1 (R)" to "Digital Mix R" (this one goes to the DAT player)
- on the "Hardware Settings" page, I have "Master Clock" set to 44100, under "Rate State" locked unchecked, and reset is checked.

And also, it seems that if I do write a local asoundrc file or a system-wide one, changes are only applied after reboot. "alsactl restore" just resets everything, but doesn't seem to re-read the configuration file. What am I missing here?

Offline

#2 2015-09-18 12:25:19

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: ALSA: Force 44100 Sample Rate Output

See ALSA file in my sig, for lots of ALSA info.

Check if anything's keeping ALSA open (preventing your config changes from taking effect):

fuser -fv /dev/snd/*

Offline

#3 2015-09-19 01:10:02

drtebi
Member
Registered: 2013-02-09
Posts: 148

Re: ALSA: Force 44100 Sample Rate Output

Thanks for the tip.

Well, I have decided to just record from the analog output. Sounds fantastic that way, too.

The "easy" way I found to force 44100 Hz output was to just set the rate to "Locked" in envy24control. The problem however was, that some midrange (e.g. Piano midrange) distorted. It was pretty awful during quiet passages in music.

The Delta 1010LT seems to have some pretty good DAC, at least I am quite happy with what I hear. Thus my decision to just record the analog output. The only thing now is, that I will have to set the recording level, but that ain't that hard wink

Offline

Board footer

Powered by FluxBB