Daphile - Audiophile Music Server & Player OS

Post here output of

Code:
amixer -c 1 contents

Please copy/paste text, no picture screenshot.

Just to show how clueless I am doing this sort of thing, it took a while to even figure out how to copy/paste in Putty - that's why I posted a screenshot last time.

Code:
numid=57,iface=CARD,name='HDMI/DP,pcm=3 Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=42,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=38,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=40,iface=CARD,name='Line Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=41,iface=CARD,name='Line Out Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=39,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=44,iface=CARD,name='SPDIF Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=43,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=37,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=36,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
  : values=31
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=11,iface=MIXER,name='Headphone Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=10,iface=MIXER,name='Headphone Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=31,31
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=3,iface=MIXER,name='Front Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=2,iface=MIXER,name='Front Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=31,31
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=5,iface=MIXER,name='Surround Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=4,iface=MIXER,name='Surround Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=8,iface=MIXER,name='Center Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=6,iface=MIXER,name='Center Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
  : values=0
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=9,iface=MIXER,name='LFE Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=7,iface=MIXER,name='LFE Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
  : values=0
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=30,iface=MIXER,name='Line Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=20,iface=MIXER,name='Line Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=19,iface=MIXER,name='Line Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=31,31
  | dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=29,iface=MIXER,name='Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=18,iface=MIXER,name='Mic Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=17,iface=MIXER,name='Mic Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=25,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=27,iface=MIXER,name='Capture Switch',index=1
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=24,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-16.50dB,step=1.50dB,mute=0
numid=26,iface=MIXER,name='Capture Volume',index=1
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-16.50dB,step=1.50dB,mute=0
numid=14,iface=MIXER,name='Loopback Mixing'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'Disabled'
  ; Item #1 'Enabled'
  : values=0
numid=35,iface=MIXER,name='IEC958 Default PCM Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=53,iface=MIXER,name='IEC958 Playback Con Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=31,iface=MIXER,name='IEC958 Playback Con Mask',index=16
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=54,iface=MIXER,name='IEC958 Playback Pro Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=32,iface=MIXER,name='IEC958 Playback Pro Mask',index=16
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=55,iface=MIXER,name='IEC958 Playback Default'
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=33,iface=MIXER,name='IEC958 Playback Default',index=16
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=56,iface=MIXER,name='IEC958 Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=34,iface=MIXER,name='IEC958 Playback Switch',index=16
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=21,iface=MIXER,name='Auto-Mute Mode'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'Disabled'
  ; Item #1 'Speaker Only'
  ; Item #2 'Line Out+Speaker'
  : values=0
numid=50,iface=MIXER,name='Caller ID Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=1,iface=MIXER,name='Channel Mode'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 '2ch'
  ; Item #1 '4ch'
  ; Item #2 '6ch'
  : values=2
numid=22,iface=MIXER,name='Input Source'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'Internal Mic'
  ; Item #1 'Mic'
  ; Item #2 'Line'
  : values=0
numid=23,iface=MIXER,name='Input Source',index=1
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'Internal Mic'
  ; Item #1 'Mic'
  ; Item #2 'Line'
  : values=0
numid=28,iface=MIXER,name='Internal Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=16,iface=MIXER,name='Internal Mic Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=15,iface=MIXER,name='Internal Mic Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=49,iface=MIXER,name='Off-hook Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=13,iface=MIXER,name='Speaker Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=12,iface=MIXER,name='Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
  : values=0,0
  | dBscale-min=-46.50dB,step=1.50dB,mute=0
numid=46,iface=PCM,name='Capture Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  | container
    | chmap-fixed=FL,FR

numid=45,iface=PCM,name='Playback Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  | container
    | chmap-fixed=FL,FR

numid=47,iface=PCM,name='Playback Channel Map',device=1
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=3,4
  | container
    | chmap-fixed=FL,FR

numid=48,iface=PCM,name='Capture Channel Map',device=2
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  | container
    | chmap-fixed=FL,FR

numid=58,iface=PCM,name='Playback Channel Map',device=3
  ; type=INTEGER,access=r----R--,values=8,min=0,max=36,step=0
  : values=0,0,0,0,0,0,0,0
  | container
    | chmap-fixed=FL,FR
    | chmap-fixed=FL,FR,FC,LFE,RL,RR,SL,SR

numid=52,iface=PCM,name='Capture Channel Map',device=6
  ; type=INTEGER,access=r----R--,values=1,min=0,max=36,step=0
  : values=0
  | container

numid=51,iface=PCM,name='Playback Channel Map',device=6
  ; type=INTEGER,access=r----R--,values=1,min=0,max=36,step=0
  : values=0
  | container
 
Last edited:
Just to show how clueless I am doing this sort of thing, it took a while to even figure out how to copy/paste in Putty - that's why I posted a screenshot last time.

But you made it and learned something new. It all counts.

The listing looks OK. In alsamixer I would try switching the Channel Mode to 2ch. I do not know the codec but can imagine a 6ch mode would disable the stereo (2ch) SPDIF output. Unlikely, but worth trying. Apart of that, all SPDIF outputs related to the codec seem to be ON.

There are 3 HDA codecs hooked to your HDA controller bus - ALC1200, Nvidia HDMI codec, and the Si3054 modem.


IIUC commit kernel/git/tiwai/sound.git - Sound sub-system tree , the SPDIF (IEC958) controls with index=16 should be related to SPDIF output, while the other SPDIF controls (default index=0) should be those of the Nvidia HDMI codec.
 
But you made it and learned something new. It all counts.

The listing looks OK. In alsamixer I would try switching the Channel Mode to 2ch. I do not know the codec but can imagine a 6ch mode would disable the stereo (2ch) SPDIF output. Unlikely, but worth trying. Apart of that, all SPDIF outputs related to the codec seem to be ON.

There are 3 HDA codecs hooked to your HDA controller bus - ALC1200, Nvidia HDMI codec, and the Si3054 modem.


IIUC commit kernel/git/tiwai/sound.git - Sound sub-system tree , the SPDIF (IEC958) controls with index=16 should be related to SPDIF output, while the other SPDIF controls (default index=0) should be those of the Nvidia HDMI codec.

The channel mode was originally 2ch. I switched the 6ch just to see of it would make a difference, it didn't, and I thought I switched it back.
One thing I just noticed is the headphone jack is on:
Code:
numid=42,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
Since the optical out is shared with the headphone jack would this possibly be overridng the digital out? How would I turn it off - just to check (I'm pretty sure the headphone was off in alsamixer - actually everything but master and the spdifs should be off IIRC)

Thanks for your help.
 
USB automount failing for DAP. I've tried a bunch of Daphile installation files and have no idea why mounting my DAP - it's a Cowon Plenue D - is a sometime thing in the beta (CLI) but never works in the release branch.


Using the 19.01 RT beta *with* the DAP attached I get:
daphile ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 183.5M 1 loop /mnt/root-ro
sda 8:0 1 111.8G 0 disk
├─sda1 8:1 1 1G 0 part /boot
└─sda2 8:2 1 110.8G 0 part /mnt/hdd
sdb 8:16 1 30.8G 0 disk /media/music/USB Drives/PLENUE D
sdc 8:32 1 119G 0 disk
└─sdc1 8:33 1 119G 0 part /media/music/USB Drives/1EE1-3B51
daphile ~ # lsusb
Bus 002 Device 003: ID 045e:0039 Microsoft Corp. IntelliMouse Optical
Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 2357:011e
Bus 001 Device 003: ID f617:0905
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 009: ID 0e21:09f0 Cowon Systems, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
daphile ~ # mount
none on /sys type sysfs (rw,relatime)
/dev/sda1 on /boot type ext4 (ro,noatime,discard)
/dev/sda2 on /mnt/hdd type ext4 (rw,noatime,discard)
/boot/fw1901200702/rootfs on /mnt/root-ro type squashfs (ro,noatime)
overlay on / type overlay (rw,relatime,lowerdir=/mnt/root-ro,upperdir=/mnt/hdd/system/root-rw-fw1901200702/upper,workdir=/mnt/hdd/system/root-rw-fw1901200702/work)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nodev,relatime,size=784456k,mode=755)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=979269,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
none on /tmp type tmpfs (rw,nosuid,relatime)
none on /media type tmpfs (rw,relatime,size=6664716k)
none on /media/all_shares/RAM Drive type tmpfs (rw,relatime,size=6664716k)
/dev/sda2 on /media/music/Internal Drives/Music type ext4 (rw,noatime,discard)
/dev/sda2 on /media/all_shares/Music type ext4 (rw,noatime,discard)
/dev/sda2 on /media/all_shares/Playlists type ext4 (rw,noatime,discard)
/dev/sdb on /media/music/USB Drives/PLENUE D type vfat (ro,relatime,uid=1000,gid=1000,fmask=0133,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,tz=UTC,errors=remount-ro)
/dev/sdc1 on /media/music/USB Drives/1EE1-3B51 type vfat (ro,relatime,uid=1000,gid=1000,fmask=0133,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,tz=UTC,errors=remount-ro)
daphile ~ #



when I install it with the Plenue connected.



It's the Plenue D (dev/sdb) and 1EE1-3B51 (dev/sdc1) devices I want to access. Once booted off the installation .iso, these drives are visible and they show up in the File Manager as USB drives, but that doesn't survive an installation onto the device drive.



Being able to mount the DAP and transfer files is important to me, I leave the .flac files on the device, and transfer to the DAP.



On installing the main (non-beta, no CLI) branch these USB drives simply don't show up, ever.



What does it take to get USB drives to show up in the "local drives" panel as hot-plugged devices?
 
The DAP acts like a standard USB drive in other systems on which I have tried it. When trying this drive on Daphile beta 19.01, booted from SSD, it will not even appear in a lsblk listing so manual mounting didn't work. The really odd thing is during first Daphile installation, if the drive is present it's available and under complete control. It shows up in the "Storage" panel of "Settings" correctly, and it will allow setting to rw. As soon as the system is rebooted off the SSD all that disappears.
 
Some explanation, DAP (VFAT)

Now I understand a little better what's mountable and in what manner. This DAP has a micro-SD card. The host computer for Daphile is a Shuttle XS35 that has an integral SD card reader, so I tried mounting the SD card and voilá:

Code:
Daphile-RT ~ # mount
none on /sys type sysfs (rw,relatime)
/dev/sda1 on /boot type ext4 (ro,noatime)
/dev/sda2 on /mnt/hdd type ext4 (rw,noatime)
/boot/fw1902281823/rootfs on /mnt/root-ro type squashfs (ro,noatime)
overlay on / type overlay (rw,relatime,lowerdir=/mnt/root-ro,upperdir=/mnt/hdd/
…
/dev/mmcblk0p1 on /media/music/MMC Drives/1EE1-3B51 type vfat (rw,relatime,uid=1000,gid=1000,fmask=0133,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,time_offset=-240,errors=remount-ro)
The first time I tried mounting the card rw, the switch on the SD card adapter was set to "read only" so it failed, which is good: the equipment respects that switch. The second time I had to check the "RW" box in Settings -> Storage and reboot, but the card mounted rw as shown above. I wrote a file to the card and then verified the DAP - a *very* fussy device - could read it.

So with this bit of a work-around I can now feed my DAP music directly from the Daphile host computer.

Thanks, all.
 
The channel mode was originally 2ch. I switched the 6ch just to see of it would make a difference, it didn't, and I thought I switched it back.
One thing I just noticed is the headphone jack is on:
Code:
numid=42,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
Since the optical out is shared with the headphone jack would this possibly be overridng the digital out? How would I turn it off - just to check (I'm pretty sure the headphone was off in alsamixer - actually everything but master and the spdifs should be off IIRC)

Thanks for your help.

Playing around today with a USB install of Mint just to see what's going on in the Linux realm…
When I plug in the optical cable, the OS (Mint in this case) does see the connection as headphones. After some Googling, I found somebody mentioning Alsa-tools as a way to "re-map" the output jacks. Installed it and while it seemed to do what was advertised - basically I remapped the headphone jack as an optical, I just couldn't get the darn thing to light up (literally, under Win 7 the jack does glow red when active).

Basically, I'm out of my league now. Does anybody have any final suggestions I could try or should I just give up on optical altogether and maybe just return the DAC (I know the issue is with the laptop, but really the biggest motivation for buying the DAC in the first place was being able to use optical instead of USB)