Comment 290 for bug 1958019

Revision history for this message
In , sycxyc+kernel (sycxyc+kernel-linux-kernel-bugs) wrote :

Yes, I have all speakers enabled.

Here are more explanations of these verbs.

```
// set left speaker
0x20 0x500 0x24
0x20 0x400 0x41

// set right speaker (Legion 7i)
0x20 0x500 0x24
0x20 0x400 0x42

// set right speaker (Yoga 7i)
0x20 0x500 0x24
0x20 0x400 0x46

// reset settings and inactive speakers
0x20 0x500 0x26
0x20 0x400 0x1
0x20 0x400 0x0
0x20 0x400 0x1
0x20 0x4b0 0x20

// set to left channel
0x20 0x500 0x26
0x20 0x400 0xc
0x20 0x400 0x0
0x20 0x400 0x1a
0x20 0x4b0 0x20

// set to right channel
0x20 0x500 0x26
0x20 0x400 0xc
0x20 0x400 0x0
0x20 0x400 0x2a
0x20 0x4b0 0x20

// set to mono
0x20 0x500 0x26
0x20 0x400 0xc
0x20 0x400 0x0
0x20 0x400 0x3a
0x20 0x4b0 0x20

// activate speaker
0x20 0x500 0x26
0x20 0x400 0x2
0x20 0x400 0x0
0x20 0x400 0x0
0x20 0x4b0 0x20
```

# Example

Set the left speaker to the right channel:

```
// set left speaker
0x20 0x500 0x24
0x20 0x400 0x41

// reset settings and inactive speakers
0x20 0x500 0x26
0x20 0x400 0x1
0x20 0x400 0x0
0x20 0x400 0x1
0x20 0x4b0 0x20

// set to right channel
0x20 0x500 0x26
0x20 0x400 0xc
0x20 0x400 0x0
0x20 0x400 0x2a
0x20 0x4b0 0x20

// activate speaker
0x20 0x500 0x26
0x20 0x400 0x2
0x20 0x400 0x0
0x20 0x400 0x0
0x20 0x4b0 0x20
```

(In reply to Cameron Berkenpas from comment #267)
> The Legion verbs I provided don't enable your right speaker. Got it.
>
> But I'm unclear on your set of verbs. Do YOUR verbs enable your right
> speaker?
>
> Thank you for the alsa-info. You have the same hardware ID's as woody64
> and the same problem with the right speaker. This is progress!
>
> On 6/23/21 10:31 AM, <email address hidden> wrote:
> > https://bugzilla.kernel.org/show_bug.cgi?id=208555
> >
> > --- Comment #266 from sycxyc (<email address hidden>) ---
> > (In reply to Cameron Berkenpas from comment #262)
> >> sycxyc,
> >>
> >> Great work!
> >>
> >> Is this work from the verbs I attached to the ticket or did you find these
> >> verbs on your own?
> >>
> >> Can you give me your alsa-info.sh? You can either post the the output here
> >> or upload it and share the URL.
> >>
> >> With all this and your verbs, I should be able to update the patch to
> cover
> >> your machine.
> >>
> >>
> >> On 6/23/21 6:17 AM, <email address hidden> wrote:
> >>> https://bugzilla.kernel.org/show_bug.cgi?id=208555
> >>>
> >>> --- Comment #260 from sycxyc (<email address hidden>) ---
> >>> Possibly the minimum verbs of the two speakers working in Yoga 7i
> >>>
> >>> ```
> >>>
> >>> // left speaker
> >>> 0x20 0x500 0x24
> >>> 0x20 0x400 0x41
> >>> // unmute
> >>> 0x20 0x500 0x26
> >>> 0x20 0x400 0x2
> >>> 0x20 0x400 0x0
> >>> 0x20 0x400 0x0
> >>> 0x20 0x4b0 0x20
> >>> // right speaker (I Guessed 4 times)
> >>> 0x20 0x500 0x24
> >>> 0x20 0x400 0x46
> >>> // may be necessary
> >>> 0x20 0x500 0x26
> >>> 0x20 0x400 0xc
> >>> 0x20 0x400 0x0
> >>> 0x20 0x400 0x2a
> >>> 0x20 0x4b0 0x20
> >>> // unmute
> >>> 0x20 0x500 0x26
> >>> 0x20 0x400 0x2
> >>> 0x20 0x400 0x0
> >>> 0x20 0x400 0x0
> >>> 0x20 0x4b0 0x20
> >>>
> >>> ```
> >>>
> > These verbs are based on your attachment, but the right speaker does not
> > work.
> > I tried to fix the right speaker issue by changing the following.
> > ```
> > 0x20 0x500 0x24
> > -0x20 0x400 0x42
> > +0x20 0x400 0x46
> > ```
> > Here's the Alsa-info for my machine. It may be similar to the yoga 7i.
> >
> > http://alsa-project.org/db/?f=68337a779c3297142b0afb022125fbf32f1a6c17
> >