Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

bytcr-rt5640 and -rt5651improvements #31

Merged
merged 9 commits into from
Jul 9, 2018

Conversation

jwrdegoede
Copy link
Contributor

Hi Pierre,

Here are various bytcr-rt5640 and -rt5651UCM profile improvements, matching the kernel work I've been doing recently.

Regards,

Hans

jwrdegoede added a commit to jwrdegoede/alsa-lib that referenced this pull request May 8, 2018
This commit adds the generic UCM profiles for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
plbossart/UCM#31

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile should be used instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
@plbossart
Copy link
Owner

plbossart commented May 8, 2018 via email

jwrdegoede added a commit to jwrdegoede/alsa-lib that referenced this pull request May 18, 2018
This commit adds the generic UCM profile for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
plbossart/UCM#31

The profile has been split up into separate per input / output files to
allow for creation of long-name profiles with the specific input / output
combinations found on a board without needing to copy and paste things.

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile made up of the various parts should be used
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
jwrdegoede added a commit to jwrdegoede/alsa-lib that referenced this pull request May 29, 2018
This commit adds the generic UCM profile for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
plbossart/UCM#31

The profile has been split up into separate per input / output files to
allow for creation of long-name profiles with the specific input / output
combinations found on a board without needing to copy and paste things.

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile made up of the various parts should be used
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
jwrdegoede added a commit to jwrdegoede/alsa-lib that referenced this pull request May 31, 2018
This commit adds the generic UCM profile for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
plbossart/UCM#31

The profile has been split up into separate per input / output files to
allow for creation of long-name profiles with the specific input / output
combinations found on a board without needing to copy and paste things.

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile made up of the various parts should be used
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
jwrdegoede added a commit to jwrdegoede/alsa-lib that referenced this pull request Jun 1, 2018
This commit adds the generic UCM profile for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
plbossart/UCM#31

The profile has been split up into separate per input / output files to
allow for creation of long-name profiles with the specific input / output
combinations found on a board without needing to copy and paste things.

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile made up of the various parts should be used
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add support for bytcr-rt5651 boards using SSP0. Note that only SSP0
is available on Bay Trail CR tablets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
…itching

pulseaudio will run the DisableSequence of the current playback device
before running the EnableSequence of the new playback device.

This causes the Platform Clock and BIAS to temporarily get turned off which
breaks audio-streams which are playing when switching.

This commit moves the disabling to the EnableSequence of the other device
fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This fixes the platform clock being kept on by these in some cases.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
The headdphones can either be driven directly from DAC1, or through
the HP volume mixer chain to allow volume control.

Mix only DAC1 to the headphones and not the HP volume path, there
are 3 reasons to choice the DAC1 path;
1) It is the power-on-reset default
2) We don't expose the volume control to e.g. pulseaudio anyways so it
   is not useful
3) Older versions of the UCM profile set the "HP Playback Volume" to 0,
   effectively disabling it

While at it also remove the old:

	cset "name='HP Playback Volume' 0"

setting, this is a no-op for a while now as it gets overidden by the 0Db
setting a couple lines lower:

        cset "name='HP Playback Volume' 31"

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Various analog microphone fixes for bytcr-rt5640:
-Move things which we only need to do once like setting muxes and volumes
 to the global enable-sequence where they can be shared between all inputs
-Set ADC Capture volume to 63 which is 6dB
-Set 'ADC Boost Gain' to 1 / 3dB
-Set 'IN1 Boost' to 8 (max), this also syncs it with IN3 which makes sense
 as various devices use either IN1 or IN3
-Add Mono ADC enabling/disabling to HeadsetMic, without this it won't work
-Disable 'RECMIX? BST? Switch' switches on input disable, so that we don't
 have multiple boost inputs selected at the same time when switching
-Start with all Mic switches disabled

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix mixing of right channel to left speaker when switching from
MonoSpeaker to Speaker.

The fix is done in the enable sequence of the regular Speaker setting
to also fix this in saved mixer settings.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
…es list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Setting the speaker volume to 29 (-3dB) leads to quite soft max volume
one some devices, boost this to 35.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
One of the lines in the Headphones section starts with set instead
of cset, fix this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
@plbossart plbossart merged commit 2050ca7 into plbossart:master Jul 9, 2018
perexg pushed a commit to alsa-project/alsa-ucm-conf that referenced this pull request Sep 24, 2019
This commit adds the generic UCM profile for bytcr-rt5640 boards from:
https://github.com/plbossart/UCM, plus the fixes from this pull-req:
plbossart/UCM#31

The profile has been split up into separate per input / output files to
allow for creation of long-name profiles with the specific input / output
combinations found on a board without needing to copy and paste things.

Note this profile exports all inputs and both stereo/mono speaker setups
even though a typical device will not use all. Ideally a long-name based
device specific profile made up of the various parts should be used
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants