Roger Watson watsonr
Would it be possible when the USB audio out is selected it remains the default output until changed.
I use my B3 with an external amplifier and its a bit annoying that every time I switch on I have to re select USB Audio out.
My B2 used the optical output and was not a problem.
John Henrick Jphenrick
The b3 should remember once you have selected turn usb audio on 
 
Try selecting then holding stop until ok to turn off appears then restart any settings should be saved .
 
John 
Reply 0 0
Roger Watson watsonr
Thanks John I'll give that a try.
Reply 0 0
Roger Watson watsonr
That's fixed it, thanks john.
Reply 0 0
Ray J Dion ray
I did some not so quick tests. When I enable a USB DAC on either port A or port B on the B3, the Headphone Enable flag in the b2settings file immediately gets changed to 1. Saving the files to shutdown did not change that. On power up the USB DAC was enabled. This was the UCA222. 
 
Next I tried to use my Fosi Audio DAC-Q4. Let the headaches begin. Plug it in and it get recognized and works fine. Did a correct power down and waited, power up. My Wifi stopped working. The DAC was not recognized at all. Music was gone. Stats indicated I had reverted to original software. It is unclear to me what I exactly did wrong. Tried several things such as removing the hub, changing ports.
In the end I disconnected everything and did a reset on the WiFi. I was able to bring back the WiFi in the normal method. The overlay had complete reset the box. I had a customized .profile in my home directory, gone... 
 
Very carefully did a little more testing on my Q4. I noticed that it will not enumerate on power up. This means if our setting is for USB Audio, it will fail and revert to internal. But the UCA222 worked fine.
 
There is something in the Linux operating system that is preventing the enumeration. I was doing aplay -l to ascertain this.
I need to run errands but this may required more investigation as to what DACs actually enumerate on power up or was I doing something crazy and did not realize it.
 
Ray
B3 is playing Let the Children Play by Santana
 
Reply 0 0
MarkF
Next I tried to use my Fosi Audio DAC-Q4. Let the headaches begin. Plug it in and it get recognized and works fine. Did a correct power down and waited, power up. My Wifi stopped working. The DAC was not recognized at all. Music was gone. Stats indicated I had reverted to original software. It is unclear to me what I exactly did wrong. Tried several things such as removing the hub, changing ports.In the end I disconnected everything and did a reset on the WiFi. I was able to bring back the WiFi in the normal method. The overlay had complete reset the box. I had a customized .profile in my home directory, gone...
 
Well, THAT is very scary.
 
Reply 0 0
PaulB
Hi Ray,
 
Please let us know what you find and I'll pass it on to Martin.
Reply 0 0
MarkF
I've been thinking about this overnight (had an extra hour because the clocks now say I should go to bed an hour earlier -- Nightlight Saving Time?), and when you wrote, "Music was gone," I started to wonder if the recent reports we've had of mysterious disappearances of music on several B3s, along with odd conditions recurring on power cycles, could have their roots in some related software issue.
 
The idea that NOT enumerating an attached DAC could cause the software version (on the SD card) to revert to an earlier version, and the music collection (on the HD) to vanish (or seem to? was the disk really altered?), is definitely scary. Hardware on the USB ports should never be able to cause that.
 
Reply 0 0
JFBUK (John)
Is there anything in the fact the  Fosi Audio DAC-Q4 uses a separate USB 5v power input and the UCA222 is bus powered ?
Reply 0 0
Peter Lowham peterl
Hi All,
 
I have had an initial look at the B3 file structures at Linux level and have found that there are three versions of B3 software file structures to be considered.  I have to say that I don't yet know how it all works but it is considerably different  to the B2, B2B and BB1 versions at the Linux boot level.
 
The original base image build is located at '/ReadOnyRoot/var/www'  which is dated 31/01/2023 on my B3.
There is a version at '/var/www' which is dated 09/03/2023 -- this is my latest update from 'Web Upgrade'
There is a version at '/ReadWriteRoot/upper/var/www' which is dated 09/03/2023 on my B3.
 
 
The only postulation that I have at the moment is that the USB controller got locked up somehow during the reboot of the B3 and this might have caused a pointer to 'hdd1' to have become corrupted or lost.  The software does some manipulation of access to 'hdd1' through the use of symbolic links.  There is a symbolic link in  '/ReadWriteRoot/upper/var/www/hdd1' for example.
 
Has your music collection really gone, or does the B3 just think that it has gone?  One way of telling is to do a 'df -k' and see how much disk space is showing for  '/dev/sda1'.
 
Peter.
[PLB3Tech]
 
Reply 0 0
Ray J Dion ray
I will be trying some more structured testing soon. My intent was to verify that upon power up if the B3 would remember the last setting for USB Audio. As mentioned the UCA222 did just fine. The Q4 had issues. 
Are we back to basic Raspberry Pi/Linux issues or something in application code? Don't know yet.
 
My music was unaffected. It is still all there and the system is up and running as good as new. I even added my .profile file back. The principle of the split between SD card and HDD/SSD keeps that well protected. Whatever happened goes along the lines of what Peter suggests. Something happened in one of bootup processes that caused the B3 to revert back to the original structure. Sort of a built in backup/reset. Then a Wifi upgrade and everything is squared away. I have some issues because I am a bit adventurous to better understand how Linux and the application code work. As well as USB and everything else. Too adventurous for my own good probably. I have learned a lot from this approach.
 
Appreciate the feedback!!
Ray
B3 is playing Dancing in the Street 
Reply 0 0
Ray J Dion ray
Ok. I only ran this once but it is consistent with what happened yesterday (minus the Linux issues).
Attach Q4 - recognized and played a track through it.
Played music for over 30 minutes
Power down
10 min pause
Power up
No USB connection
  aplay -l - No device detected.
  I did not power off the DAC during power cycle of B3
Power off Q4
Wait 30 seconds
Power on Q4 - B3 recognized the Q4
  Turned on USB Audio
  Music played.

That is telling me that at least some USB interfaces seem to have an issue with the host (B3) powering off and then back on.  The B3 would rightly not connect to a device that Linux did not recognize. 
 
It is confusing that the original poster (watsonr) did not have to power cycle the amplifier to get the USB to be recognized.
 
He also indicated that the optical worked fine so I will guess that device is well behaved.
 
This goes back to some of the issues we find with DACs. Originally we associated the failures with the USB connection only. Then I was able to figure out the audio class issue and that the USB was fine but different for some devices. The B3 also will only use certain device numbers. The advantage over the B2 is that it knows the difference between internal and external that allows it to switch. I have discovered that only the first DAC plugged in will be used. If you connect more than two, it will only hit on the first DAC connected because it was assigned Card 1 status. It would be nice if the B3 could say "there are two (or more) DACs connected, which one do you want me to use?" This is what Windows and Mac do. The B3 is certainly capable of using this, I have done it manually. Two songs playing at the same time, one headphones, one speakers.
Ray
B3 is playing Easy Money by King Crimson
 
 
Reply 0 0
Roger Watson watsonr
Although My B3 now remembers my UCA222 DAC it doesn't always see it when first switched on and I need to reboot it. It usually sees it on the second boot, I guess sometimes the DAC powers up quicker and is seen by the Brennan and sometimes it doesn't. 
Reply 0 0
John Henrick Jphenrick
Do you have this connected directly or through a hub ?
 
 
Reply 0 0
Roger Watson watsonr
Yes it carries the Wi Fi and bluetooth dongles and the DAC. They are all power from a single power socket it's possible the hub is slow. I'll plug the DAC into the front socket and see if it works any better.
Reply 0 0
Reply