Skip to content
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

Rebase on 1.2.7 & Fix Audio Jacks on Mira B1 #2

Merged
merged 18 commits into from
Jun 16, 2022
Merged

Conversation

13r0ck
Copy link

@13r0ck 13r0ck commented Jun 3, 2022

This PR does the following:

1, Rebases a few upstream changes. This will put us on version 1.2.7, rather than the arbitrary commit version we had released.
2. Fixes the line-in and mic on the mira b1

Requires pop-os/linux/pull/146
Requires pop-os/libasound2/pull/1

perexg and others added 17 commits June 3, 2022 12:58
Although the information is somehow duplicated, the current
macros support both "alsa-lib PCM channel split" and
"application side PCM channel split".

The key is the readability.

Test:

	alsaucm -c "hw:1" dump text

	vs.

	alsaucm -c "<<<SplitPCM=1>>>hw:1" dump text

Signed-off-by: Jaroslav Kysela <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Arturia Minifuse 2
(https://www.arturia.com/products/audio/minifuse/minifuse2)
is an USB audio interface with 2 mono inputs and 2 channel outputs.
It uses 1 subinterface with 4 capture and 4 playback channels:
Capture channels:
- Mic/Line/Inst 1 (Mono)
- Mic/Line/Inst 2 (Mono)
- Loopback (Stereo, L+R)

Playback:
- Main (Stereo, L+R)
- Loopback (L+R)

The Loopback capture and playback are intended to ease recording sound
from the computer, e.g if you're doing a podcast and want to record
something that plays from the computer. Of course us linux user don't
need that, since we have many tools able to do that.

However, without a dedicated use case, alsa treats the channels as
surround 4.0, which make the card difficult to use.

At this stage, no controls are available.

TODO/FIXMEs:
- add a channel map override on the pcm device ?

Fixes: alsa-project#145
Signed-off-by: Clément Hermann <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
This is the same as the fallback ucm profile. It just exposes the device,
which can be useful in some contexts, like when routing audio using jack
or pipewire.

Fixes: alsa-project#145
Signed-off-by: Clément Hermann <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
More minor cleanups:

- use the standard UCM device names (see use-case.h)
- add ConflictingDevice to Mic1 and Mic2
- try to avoid duplicate priorities

Signed-off-by: Jaroslav Kysela <[email protected]>
hardware represents 2 stereo inputs/outputs as a single multichannel
input/output, similar to 97beee6 we
split it using dsnoop/dshare

Fixes: alsa-project#151
Signed-off-by: Robert Günzler <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Home/pro audio interface with 6 inputs and 4 outputs, which I configure
as 6 mono capture devices and 2 stereo playback devices.

Fixes: alsa-project#148
Signed-off-by: Cameron Nemo <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Asus released board(s) that use the same ALC4080, but have slightly
different mappings for mic & line-in, as well they don't have a
SPDIF connector.
@13r0ck 13r0ck requested review from a team June 3, 2022 19:07
@13r0ck 13r0ck changed the title Rebase on 1,2.7 & Fix Audio Jacks on Mira B1 Rebase on 1.2.7 & Fix Audio Jacks on Mira B1 Jun 3, 2022
@linuxgnuru
Copy link

Could not get line in audio to function

@XV-02
Copy link

XV-02 commented Jun 13, 2022

When I check the alsa's version, I keep seeing version 1.2.6.3-1ubuntu2pop1~1654283022~22.04~31f976e. The appended hash matches one of the commits for the branch associated with this PR (31f976e) but I'm not entirely certain that alsa is being upgraded correctly and fully given that this should rebase to 1.2.7

@13r0ck
Copy link
Author

13r0ck commented Jun 13, 2022

Oh good catch. I need to add a commit like:
pop-os/linux@63e51bd

to modify the changelog file

@XV-02
Copy link

XV-02 commented Jun 13, 2022

Near as I can tell, this isn't resolving the Mira-b1 audio conundrum. I'd spin the 1.2.7 rebase off into an isolated PR, and consider closing this in the meantime or continuing the Mira-b1 specific work through this PR.

This was referenced Jun 15, 2022
@XV-02
Copy link

XV-02 commented Jun 16, 2022

This is working for Mira-B1. Currently ensuring no regressions elsewhere.

Copy link

@XV-02 XV-02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In concert with pop-os/libasound2#1 and pop-os/linux#146, this is both working, and not inducing any detectable regressions in other hardware.

@jackpot51 jackpot51 merged commit dc16a49 into master_jammy Jun 16, 2022
@jackpot51 jackpot51 deleted the mira-b1_jammy branch June 16, 2022 21:04
@13r0ck 13r0ck mentioned this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants