-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple USB-C to 3.5mm Headphone Jack on Moode with softvol #187
Comments
Hello try CARD_NAME=A alone... Then we see if CARD_FORMAT is needed! |
Thanks, it seems only the .asound.conf is necessary and defining it in .env file of course. I think that explicit format and freq limiting to hw capabilities helps in direct mode, I didn't tried it yet. It's possible that softvol only works with plughw mode. |
Hello again, sorry for my previous reply, I was away for the weekend and I didn't actually understand your post. I see now that you are already using a custom asound.conf with "A" as the device. Forgive the wrong suggestion, but when you define your asound.conf, the variables CARD_NAME, CARD_INDEX, CARD_DEVICE and CARD_FORMAT become irrelevant.
and post the output. I was thinking of buying one device like this, actually the fact that it does not support hires kind of made me change idea. Not because I would notice the difference but because I would need, like you, to avoid conversions when possible. |
Thanks for clarifying that asound.conf make unnecessary those variables.
It's not as bad as cheap, you can see measurements and review on head-fi. It's a little bit light and not as analoguish like r2r DACs but not bad for the price. The samplerate_best is too slow for resampling 88200 tracks. I have collected some scripts from here and put into a fork of your repo here Thank you for your work and giving information about the details! |
Hello, thank you. That output provide some good information. In the end, if you want to contribute the asound.conf, I will gladly accept the pull request. Or if you prefer, I will add it using the information in this issue. |
I just wanted to use the volume control in android app, and hw volume doesn't change with default settings. So I set the softvol parameter and found a working asound.conf. |
Thank you, but about this: The device supports 44.1 and 48k are you sure? Moodeutl says otherwise. aplay -D hw:A assets/audio/short-low-tone.wav and maybe: aplay -D plughw:A assets/audio/short-low-tone.wav I am preparing a 48kHz version of the tones :-) |
The tone will be unaudible unless you crank up the volume, I have attenuated it as much as I can. The purpose is to verify it does not fail to play. |
If I remove the "ENABLE_GENERATED_TONE=no" line from the .env, the tidal-connect doesn't load. Another strange thing is strong clipping distortion in this track: https://tidal.com/browse/track/89414123?u |
Hello, you can maybe try alsamixer and lower down the volume a bit. That would be hardware volume, and softvolume won't raise over that limit hopefully! |
This should not happen anymore with the latest revision, I have added a 48kHz tone, so now the condition is that just of the tones don't fail to play. Would you try with the latest updates? |
Lowering the volume with alsamixer doesn't change the issue. |
Now merged the changes from upstream, removed the "ENABLE_GENERATED_TONE=no" line from my .env and... no luck. tidal-connect | Trying a short tone @ 48kHz ... |
The clipping problem is an issue with speex. It's resolved when I disabled the resample so it's not affect your code. |
maybe I made some mistake writing the file |
I pushed a changed setting "custom" but it's done in the dark as I cannot test in the dark. |
Maybe try this as applejack.asound.conf:
If this works, it would confirm the hypothesis... |
Maybe we should set "custom" instead of "!default"... Yes, it's load with changed asound.conf. I didn't tried the last config yet. |
|
ok so it's a wrong config. I cannot test now with an actual container... I will try asap. |
Yes, the latest committed config works without any glitch! Thank you! |
Good! |
My .env is:
applejack.asound.conf:
I think we can close this issue. :) |
glad it works. Keep the working config safe... but can you try this now: .env
and recreate? With the changes in the tone test, it might go through. Thank you in advance! |
Can you also execute this:
and post the output? |
|
I entered the CARD_NAME=A line in the env, after I ran alsactl clean and now I have a Master volume and it works! Maybe it will work with my other DAC without hardware volume control too. I beginning to see the light! |
Good... did you have to change the custom asound.conf? |
Sometimes it works, sometimes not, I leave it as is, works with hw volume, I will be careful when changing it. |
So if I understand correctly, with your custom asound.conf, the tidal app move an additional slider for Software volume, while without that asound.conf, the tidal app ends up moving the master volume, is that right? |
Without asound.conf, after alsactl clean with rebuilt config only one slider appear in alsamixer, with "Headphone" label. That's a hardware volume slider I think. |
Ok good to know. The interesting thing is that your asound.conf can make softvol work even with your device, which already has a "Master" device defined. So there is hope for those other users who could not enable softvol. I will have a look at the old issues and maybe implement the changes in an experimental branch |
I have an another usb/toslink adapter (and DAC) with optical output which drive a cheap R2R DAC. |
doesn't a variant of your applejack.asound.conf (with the other card name other than "A") work? |
Not tried yet. But when I tried the committed conf with current (apple) card, it doesn't work with audio file check enabled. I will try it with a clean install. |
I think I wrongly concluded that it works, I was wrong all along. |
I just tried over a pi4 "Headphones", which has an existing "Master" control so generally softvol doesn't work with this repository. So, this confirms the behavior of your apple usb c device I believe. I suppose your other setup (the R2R dac with usb to spdif adapter) should behave similarly. |
what do you mean? :-o |
I'm just not sure how long it worked this way because after that only the hardware one worked and I didn't watch the sliders... |
the problem is that that custom asound.conf creates the SoftMaster control. But the tidal app will use the "Master" control anyway. On the other hand, without that SoftMaster control, the Tidal app volume doesn't work at all for reasons beyond my knowledge. |
Have you considered the other solutions? BubbleUPnP against mpd+upmpdcli would solve all those issues easily. |
The closest I came to a solution was here. |
I don't know, this little Apple DAC works well with default config. Now I know if it's hang up, I must clear the orphan devices with alsactl clean and rebuild image (when devices changing). We can close this issue, I will work on another DAC in the next days because it's really fun! :) Thanks for info and help! |
It has been fun for me as well. Give a try to the other solution... mpd and upmpdcli can be easily installed using docker, so very easy. Let me know if you need some help with that! |
Good news! Idea is from here: https://alsa.opensrc.org/How_to_use_softvol_to_control_the_master_volume - "Common example with dmix" working asound.conf:
But only works with this .env:
I tried with enable it and forcing FORCE_PLAYBACK_DEVICE=dmix but it's only freeze. Without tone test we have two independent volume control, one existing hw with "Headphone" label and one softvol "Master" which can control by Tidal app volume slider. |
If this config will work with PCM2704 toslink adapter too, we can rename the config to "dmix-softvol.asound.conf". I found your softvol configs, I will try to set the S24_3LE format we will see if it works, but in theory dmix automatically set the necessary conversion between formats? |
Work with PCM2704 but need to rename control name "Master" to "PCM" and running alsactl clean multiple times. |
Hello, thank you for the updates. But in this configuration, where is the DAC select? Isn't a part missing?
|
I think the default is the fallback card and because there is no defined card, the sound file test fails. If I force valid card names it's freeze. If I leave out the sound test it works. Now I switched back to simplest solution, moode with hw volume with apple jack and no need to config anything in tidal-connect, it just works. |
That probably works well because both moode and tidal connect use the same master volume, not a bad solution I would say! |
Hello, in case you are interested, I bought a Fosi DS1 a few days ago. Today I tried it with tidal connect, it works ok with software volume. It has +/- buttons so one might prefer to disable software volume, I created both userconfigs (sample .env files) |
And how it sounds? |
not bad at all I would say. A dedicated desktop headphone amp is better of course but I can't complain. I also used it with mpd/upmpdcli and with squeezelite, works perfectly. I also bought a pair of IEM, KZ ZS10 PRO X, not too expensive. I also orderer the 4.4 mm balanced cable, this one will arrive tomorrow. Those things are for office usage, I just want to bring smaller items, I was using an old FiiO X5 which was falling into pieces after years of usage and a pair of Sennheiser Momentum on-ear. Way too bulky for a backpack with also a lapton an its psu inside |
MoOde Release: 8.3.9 2024-02-23
RaspiOS: 11.9 Bullseye 32-bit
.env:
userconfig/applejack.asound.conf:
The text was updated successfully, but these errors were encountered: