Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1361133 > unrolled thread
| Started by | Danny Milosavljevic <dannym@scratchpost.org> |
|---|---|
| First post | 2016-03-19 18:00 +0100 |
| Last post | 2016-03-22 13:30 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs Danny Milosavljevic <dannym@scratchpost.org> - 2016-03-19 18:00 +0100
Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-03-21 19:10 +0100
Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs Mark Brown <broonie@kernel.org> - 2016-03-21 19:20 +0100
Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs Stefan Monnier <monnier@iro.umontreal.ca> - 2016-03-22 13:30 +0100
| From | Danny Milosavljevic <dannym@scratchpost.org> |
|---|---|
| Date | 2016-03-19 18:00 +0100 |
| Subject | Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs |
| Message-ID | <resoi-2u4-9@gated-at.bofh.it> |
Hi Maxime,
> IIRC, in order to have shared controls, you just needed to share the
> controls structure.
Yeah. I did this and it actually works in a way, but in doesn't do all that I want.
There are two different kinds of sharing I mean:
The one kind with the controls structure causes the control to rename itself
to not state its mixer but there's still just one slider in the end.
So instead of "Left Mixer Left XXX" it will just say "Left XXX" if you put it
inside Left Mixer and Right Mixer and share the entry - for this hardware,
that's of doubtful use.
But what I would like to have is that the same Mic Playback Volume (the very
same bits) be used for different sliders
(1) Mic1 Left Channel Playback Volume
(2) Mic1 Right Channel Playback Volume
(3) Mic2 Left Channel Playback Volume (!!)
(4) Mic2 Right Channel Playback Volume
Additionally, Mic1 Playback and Mic2 Playback have two mutes each in the
hardware (all separately switchable).
Now if we could make the alsamixer selems look like the following,
that would be nice:
Mic1_Playback Mic2_Playback
MM MM
ii ii
cc cc
PP PP
ll ll
aa aa
yy yy
bb bb
aa aa
cc cc
kk kk
VV VV
oo oo
ll ll
uu uu
mm mm
ee ee
[Mm] [Nn]
^ ^^-- so are those, separately
+-- this one is a different muter :-)
Where the text is the same, it's supposed to signify the same bits
in the hardware.
Right now in v8 it's (and that's going to take a lot of horizontal space,
sorry - I know E-Mails like this aren't so nice to read):
Mic_Playback_Volume Left_Mic1_Playback_Switch Right_Mic1_Playback_Switch Left_Mic2_Playback_Switch Right_Mic2_Playback_Switch
MM
ii
cc
PP
ll
aa
yy
bb
aa
cc
kk
VV
oo
ll
uu
mm
ee
[MM] [NN] [OO] [PP]
^- WTF ^- WTF ^- WTF ^- WTF
(Actually, it's worse - believe it or not, that's how the simplified explanation looks)
> Unfortunately, that is exposed to the user-space. Once it's in, you
> cannot change it / fix it anymore.
Hmm. Right. Let's get it to work nicely then.
[toc] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-03-21 19:10 +0100 |
| Subject | Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs |
| Message-ID | <rfcr8-Wc-19@gated-at.bofh.it> |
| In reply to | #1361133 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Mar 19, 2016 at 05:51:24PM +0100, Danny Milosavljevic wrote: > Hi Maxime, > > > IIRC, in order to have shared controls, you just needed to share the > > controls structure. > > Yeah. I did this and it actually works in a way, but in doesn't do all that I want. > > There are two different kinds of sharing I mean: > > The one kind with the controls structure causes the control to rename itself > to not state its mixer but there's still just one slider in the end. > So instead of "Left Mixer Left XXX" it will just say "Left XXX" if you put it > inside Left Mixer and Right Mixer and share the entry - for this hardware, > that's of doubtful use. > > But what I would like to have is that the same Mic Playback Volume (the very > same bits) be used for different sliders > (1) Mic1 Left Channel Playback Volume > (2) Mic1 Right Channel Playback Volume > (3) Mic2 Left Channel Playback Volume (!!) > (4) Mic2 Right Channel Playback Volume > > Additionally, Mic1 Playback and Mic2 Playback have two mutes each in the > hardware (all separately switchable). > > Now if we could make the alsamixer selems look like the following, > that would be nice: > > Mic1_Playback Mic2_Playback > > MM MM > ii ii > cc cc > > PP PP > ll ll > aa aa > yy yy > bb bb > aa aa > cc cc > kk kk > > VV VV > oo oo > ll ll > uu uu > mm mm > ee ee > > [Mm] [Nn] > ^ ^^-- so are those, separately > +-- this one is a different muter :-) > > Where the text is the same, it's supposed to signify the same bits > in the hardware. > > Right now in v8 it's (and that's going to take a lot of horizontal space, > sorry - I know E-Mails like this aren't so nice to read): > > Mic_Playback_Volume Left_Mic1_Playback_Switch Right_Mic1_Playback_Switch Left_Mic2_Playback_Switch Right_Mic2_Playback_Switch > > MM > ii > cc > > PP > ll > aa > yy > bb > aa > cc > kk > > VV > oo > ll > uu > mm > ee > > [MM] [NN] [OO] [PP] > ^- WTF ^- WTF ^- WTF ^- WTF > > (Actually, it's worse - believe it or not, that's how the simplified explanation looks) I don't think you should focus too much on alsamixer, there's other tools to modify the configuration. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
[toc] | [prev] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2016-03-21 19:20 +0100 |
| Subject | Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs |
| Message-ID | <rfcAO-Zv-15@gated-at.bofh.it> |
| In reply to | #1362058 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Mar 21, 2016 at 07:06:05PM +0100, Maxime Ripard wrote: > I don't think you should focus too much on alsamixer, there's other > tools to modify the configuration. The expectation is that most users will use something like UCM and only system integrators will see the full control set in normal operation.
[toc] | [prev] | [next] | [standalone]
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Date | 2016-03-22 13:30 +0100 |
| Subject | Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs |
| Message-ID | <rftBE-4jp-15@gated-at.bofh.it> |
| In reply to | #1362063 |
>> I don't think you should focus too much on alsamixer, there's other
>> tools to modify the configuration.
> The expectation is that most users will use something like UCM and only
> system integrators will see the full control set in normal operation.
This presumes the "system integrator" (which could very well be the end
user in many cases) somehow knows what all the controls do/mean.
Anyway, it seems this is an ALSA problem rather than a sunxi problem.
Stefan "who wishes ALSA could describe the meaning of all those
controls, maybe as a graphical diagram, or as some kind
of (hopefully simple) program"
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web