[PATCH 01/11] ALSA: hda/ca0132 - Create mmio gpio function to make code clearer

2018-08-08 Thread Connor McAdams
This patch adds a new function, ca0132_mmio_gpio_set, to clear up what is going on with writes to mmio region 0x320. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 62 +++- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a

[PATCH 00/11] Add Recon3D support + Driver cleanup

2018-08-08 Thread Connor McAdams
question- If the PCI ID's are included in the Window's driver .inf file, would I be good to add them in as quirks? Or should I wait for someone with the card to test it, and then add it once I know it works on that specific card? Connor McAdams (11): ALSA: hda/ca0132 - Create mmio gpi

[PATCH 11/11] ALSA: hda/ca0132 - Add exit commands for Recon3D

2018-08-08 Thread Connor McAdams
This patch adds exit functions for the Recon3D, and cleans up the current exit function. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci

[PATCH 08/11] ALSA: hda/ca0132 - Add DSP setup defaults for Recon3D

2018-08-08 Thread Connor McAdams
The Recon3D can use many of the same functions as the Recon3Di, so many of the r3di prefix function remain the same, but change their names to the more generic r3d prefix. This patch does this, and adds quirk checks for things specific to the Recon3Di. Signed-off-by: Connor McAdams --- sound

[PATCH 03/11] ALSA: hda/ca0132 - Add alt_functions unsolicited response

2018-08-08 Thread Connor McAdams
This patch fixes a previous oversight where the microphone unsolicited response would use the wrong input selection function. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b

[PATCH 09/11] ALSA: hda/ca0132 - Add Recon3D input and output select commands

2018-08-08 Thread Connor McAdams
This patch adds commands to the alternative input and output select commands to support the Recon3D. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c

[PATCH 06/11] ALSA: hda/ca0132 - Add bool variable to enable/disable pci region2 mmio

2018-08-08 Thread Connor McAdams
This patch adds the ability to choose whether or not to map the pci region2, which is used for things such as GPIO on the Recon3D and Sound Blaster Z. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 32 +++- 1 file changed, 19 insertions(+), 13

[PATCH 07/11] ALSA: hda/ca0132 - Add Recon3D startup functions and setup

2018-08-08 Thread Connor McAdams
This patch adds functions for Recon3D startup, and sets values for things such as use_pci_mmio. It also renames some functions and tables from the sbz prefix into ca0132, as the Recon3D uses them as well. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 49

[PATCH 05/11] ALSA: hda/ca0132 - Add Recon3D pincfg

2018-08-08 Thread Connor McAdams
This patch adds pin configs from the Recon3D, taken from the Window's driver. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_c

[PATCH 02/11] ALSA: hda/ca0132 - Clean up ca0132_init function.

2018-08-08 Thread Connor McAdams
This patch cleans up ca0132_init by removing unnecessary commands and ordering things better. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda

[PATCH 10/11] ALSA: hda/ca0132 - Change mixer controls for Recon3D

2018-08-08 Thread Connor McAdams
This patch adds changes to setup the Recon3D's mixer controls. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 18

[PATCH 04/11] ALSA: hda/ca0132 - Add quirk ID and enum for Recon3D

2018-08-08 Thread Connor McAdams
This patch adds the PCI subsys ID for the Recon3D that has been tested, and adds the QUIRK_R3D enumeration. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

Re: [PATCH AUTOSEL 4.19 40/68] ALSA: hda/ca0132 - Add new ZxR quirk

2018-11-29 Thread Connor McAdams
This patch won't break anything, but it also won't fix anything either. Not sure if that matters or not. On Thu, Nov 29, 2018 at 12:59 AM Sasha Levin wrote: > > From: Connor McAdams > > [ Upstream commit cce997292a5264c5342c968bbd226d7c365f03d6 ] > > This patch adds

[PATCH 1/2] ALSA: hda/ca0132 - Add new ZxR quirk

2018-11-16 Thread Connor McAdams
This patch adds a new PCI subsys ID for the ZxR, as found and tested by other users. Without a way to know if any Z's use it as well, it keeps the quirk of QUIRK_SBZ and goes through the HDA subsys test function. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1 + 1

[PATCH 2/2] ALSA: hda/ca0132 - fix AE-5 pincfg

2018-11-16 Thread Connor McAdams
This patch fixes the pincfg assignment for the AE-5, which was previously using the Recon3D pincfg's by mistake. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pc

Re: [GIT PULL] Additional firmware files for CA0132 HD-audio codec

2018-11-09 Thread Connor McAdams
able if I get you in contact with someone at Creative,Josh? I apologize for being kind of difficult, I'm doing what I can. Let me know what I need to do, and I'll do my best. Thanks, Connor. On Sun, Nov 4, 2018 at 1:00 AM Connor McAdams wrote: > > Okay, just got a response from the gu

[PATCH 1/4] ALSA: hda/ca0132 - Fix microphone inconsistency issues

2018-10-08 Thread Connor McAdams
This patch fixes microphone inconsistency issues by adding a delay to each setup_defaults function. Without this, the microphone only works intermittently. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/pci/hda

[PATCH 0/4] Various cleanup + Mic Fix

2018-10-08 Thread Connor McAdams
essed it up I'm sure you guys will let me know. This should finish up most of the ca0132 work, with all inputs and outputs working on the desktop cards. Connor McAdams (4): ALSA: hda/ca0132 - Fix microphone inconsistency issues ALSA: hda/ca0132 - Clean up patch_ca0132() ALSA: hda/ca

[PATCH 4/4] ALSA: hda/ca0132 - Fix input effect controls for desktop cards

2018-10-08 Thread Connor McAdams
This patch removes the echo cancellation control for desktop cards, and makes use of the special 0x47 SCP command for noise reduction. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/hda

[PATCH 2/4] ALSA: hda/ca0132 - Clean up patch_ca0132()

2018-10-08 Thread Connor McAdams
This patch cleans up the patch_ca0132() function with suggestions from Takashi Sakamoto. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c

[PATCH 3/4] ALSA: hda/ca0132 - Add error checking in ca0132_build_controls()

2018-10-08 Thread Connor McAdams
This patch adds error checking to functions creating controls inside of ca0132_build_controls(). Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 47 +--- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/sound/pci/hda

[GIT PULL] Additional firmware files for CA0132 HD-audio codec

2018-10-10 Thread Connor McAdams
to contact them. If you need to contact them, or if there's more info needed, let me know and I can get see what I can do. -------- Connor McAdams (1): linux-firmware: Add new firmware for Creative CA0132 HD-Audio Codec WHENCE

Re: [PATCH 00/11] Add ZxR support + bugfixes

2018-10-07 Thread Connor McAdams
to be merged? I will work on them regardless, but with those it may take me longer (they might be simple, I haven't dug into what they require yet). Let me know. Thanks, Connor. On Tue, Oct 2, 2018 at 11:23 AM Takashi Iwai wrote: > > On Sun, 30 Sep 2018 05:03:15 +0200, > C

Re: [GIT PULL] Additional firmware files for CA0132 HD-audio codec

2018-11-03 Thread Connor McAdams
Okay, just got a response from the guy at Creative. He said they'll try to sort it out this week. Just a heads up. :) On Wed, Oct 24, 2018 at 12:22 PM Connor McAdams wrote: > > Understood. I will see what I can do. I already had them contact > Takashi, but I will ask if they'r

Re: [GIT PULL] Additional firmware files for CA0132 HD-audio codec

2018-10-24 Thread Connor McAdams
2018 at 3:37 AM Takashi Iwai wrote: > > > > On Wed, 10 Oct 2018 19:49:23 +0200, > > Connor McAdams wrote: > > > > > > The following changes since commit > > > c6b6265d718d118e28e1ce8f91769aa886b54c94: > > > > > > Merge tag 'iw

[PATCH] ALSA: hda/ca0132 - Actually fix microphone issue

2018-10-21 Thread Connor McAdams
This patch fixes the microphone issue for all cards. The previous fix worked on the ZxR, but not on the AE-5 or Z. This patch has been tested to work for all cards. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 73 ++-- 1 file changed

[PATCH 04/15] ALSA: hda/ca0132 - Set AE-5 bools and select mixer

2018-09-18 Thread Connor McAdams
This patch sets the bool values for the AE-5, as well as selects the mixer it will use. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c

[PATCH 01/15] ALSA: hda/ca0132 - Define new verbs and control params

2018-09-18 Thread Connor McAdams
This patch defines some new verbs found from reverse engineering of the onboard 8051 CPU, and a control param found there as well. This clears up usage of these verbs in other parts of the driver, and removes their usage where they're now known to be unnecessary. Signed-off-by: Connor Mc

[PATCH 02/15] ALSA: hda/ca0132 - Add quirk for Sound BlasterX AE-5

2018-09-18 Thread Connor McAdams
This patch adds the PCI subsys ID quirk for the Sound BlasterX AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index cd93c86..81bbec1 100644 --- a/sound/pci/hda

[PATCH 03/15] ALSA: hda/ca0132 - Add pincfg for AE-5

2018-09-18 Thread Connor McAdams
This patch adds the pincfg for the Sound BlasterX AE-5, and cleans up the function it's assigned in. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 73 1 file changed, 60 insertions(+), 13 deletions(-) diff --git a/sound/pc

[PATCH 00/15] Add support for Sound BlasterX AE-5

2018-09-18 Thread Connor McAdams
Blaster Z does, and Creative may be willing to help fix that, but if they're not, I have a few ideas. I also have the ZxR working currently. That will require some more complicated changes of the driver, so I have left it out and just focused on the AE-5. Connor McAdams (15): ALSA: hda/c

[PATCH 15/15] ALSA: hda/ca0132 - Add AE-5 exit function

2018-09-18 Thread Connor McAdams
This patch adds exit commands for the AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 28 1 file changed, 28 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 7048cc0..9541ab5 100644 --- a/sound/pci

[PATCH 08/15] ALSA: hda/ca0132 - Change firmware name and usage

2018-09-18 Thread Connor McAdams
The Recon3D, AE-5, Z and ZxR all share the same firmware file. Rename this from the specific "ctefx-sbz.bin" to "ctefx-desktop.bin" and set the AE-5 and Recon3D to use it as well. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 12 +++- 1 file c

[PATCH 14/15] ALSA: hda/ca0132 - Add AE-5 specific controls

2018-09-18 Thread Connor McAdams
This patch adds controls for the AE-5's headphone gain setting, and the DAC's interpolation filter setting. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 239 ++- 1 file changed, 238 insertions(+), 1 deletion(-) diff --git a

[PATCH 09/15] ALSA: hda/ca0132 - Merge post-dsp functions + cleanup

2018-09-18 Thread Connor McAdams
This patch cleans up some of the formatting of the post-dsp load setup functions, and also merges some of the sub functions into individual ones. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 171 +++ 1 file changed, 75 insertions

[PATCH 11/15] ALSA: hda/ca0132 - Clean up ca0132_alt_out_select

2018-09-18 Thread Connor McAdams
: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 121 +-- 1 file changed, 70 insertions(+), 51 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index a625e9d..4de94d7 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b

[PATCH 13/15] ALSA: hda/ca0132 - Add input selection commands for AE-5

2018-09-18 Thread Connor McAdams
This patch adds the input selection commands for the Sound BlasterX AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 35 +-- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda

[PATCH 06/15] ALSA: hda/ca0132 - Add AE-5 pre-init and ca0113 functions

2018-09-18 Thread Connor McAdams
This patch adds AE-5 pre-init functions that happen before the main ca0132_alt_init, and gives functions related to the ca0113 a ca0113 prefix instead of ca0132. It also adds functions to write to the 8051's SFRs, and to write the special ca0113 commands for the AE-5. Signed-off-by: C

[PATCH 10/15] ALSA: hda/ca0132 - Add DSP setup functions for AE-5

2018-09-18 Thread Connor McAdams
This patch adds DSP setup functions for the AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 215 +++ 1 file changed, 215 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 66c1150..a625e9d

[PATCH 12/15] ALSA: hda/ca0132 - Add output set commands for AE-5

2018-09-18 Thread Connor McAdams
This patch adds output selection commands for the AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 79 ++-- 1 file changed, 69 insertions(+), 10 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c

[PATCH 05/15] ALSA: hda/ca0132 - Change ca0132_mmio_init for AE-5

2018-09-18 Thread Connor McAdams
This patch adds the unique writes for the AE-5 on startup to ca0132_mmio_init. The other cards share some addresses written to, but use different values. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 61 +++- 1 file changed, 55

[PATCH 07/15] ALSA: hda/ca0132 - Add AE-5 regular init setup

2018-09-18 Thread Connor McAdams
This patch adds AE-5 specific stuff to the ca0132_alt_init function. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 12 1 file changed, 12 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 4b95dc0..163d2ac 100644 --- a

[PATCH 1/3] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.

2020-08-02 Thread Connor McAdams
When the ZxR headphone gain control was added, the ca0132_switch_get function was not updated, which meant that the changes to the control state were not saved when entering/exiting alsamixer. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 5 + 1 file changed, 5 insertions

[PATCH 3/3] ALSA: hda/ca0132 - Fix AE-5 microphone selection commands.

2020-08-02 Thread Connor McAdams
The ca0113 command had the wrong group_id, 0x48 when it should've been 0x30. The front microphone selection should now work. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/hda/patch_ca013

[PATCH 2/3] ALSA: hda/ca0132 - Add new quirk ID for Recon3D.

2020-08-02 Thread Connor McAdams
Add a new quirk ID for the Recon3D, as tested by me. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 2cbe01d59c16..40fa9d82ef95 100644 --- a/sound/pci/hda

[PATCH v2 5/5] ALSA: hda/ca0132 - Remove now unnecessary DSP setup functions.

2020-12-10 Thread Connor McAdams
Now that the DSP's audio configuration is understood, remove previous hacky methods of trying to properly configure it. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 105 --- 1 file changed, 105 deletions(-) diff --git a/sound/pc

Re: [PATCH 3/3] ALSA: hda/ca0132 - Unmute surround when speaker output is selected.

2020-12-10 Thread Connor McAdams
Apologies, this patch seems to be a mistake. I don't know why I thought this was the case. On Mon, Dec 7, 2020 at 3:46 AM Connor McAdams wrote: > > Make sure GPIO pin for surround channel mute is set to 0 when speaker > output is selected. > > Signed-off-by: Connor McAdams

Re: [PATCH v2 3/3] ALSA: hda/ca0132 - Unmute surround when speaker output is selected.

2020-12-10 Thread Connor McAdams
Woops, sent previous email on the first version of this patch. This patch is a mistake. Not sure why I did this. On Tue, Dec 8, 2020 at 2:52 PM Connor McAdams wrote: > > Make sure GPIO pin for surround channel mute is set to 0 when speaker > output is selected. > > Fixes: def3f

Re: [PATCH v2 3/3] ALSA: hda/ca0132 - Unmute surround when speaker output is selected.

2020-12-10 Thread Connor McAdams
Will do. Sorry about that. On Thu, Dec 10, 2020 at 12:22 PM Takashi Iwai wrote: > > On Thu, 10 Dec 2020 18:16:00 +0100, > Connor McAdams wrote: > > > > Woops, sent previous email on the first version of this patch. > > > > This patch is a mistake. Not sure why I

[PATCH v3 1/2] ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.

2020-12-10 Thread Connor McAdams
E-5 pincfg") Cc: Signed-off-by: Connor McAdams Link: https://lore.kernel.org/r/20201208195223.424753-1-conmanx...@gmail.com Signed-off-by: Takashi Iwai --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/h

[PATCH v3 2/2] ALSA: hda/ca0132 - Change Input Source enum strings.

2020-12-10 Thread Connor McAdams
Change the Input Source enumerated control's strings to make it play nice with pulseaudio. Fixes: 7cb9d94c05de9 ("ALSA: hda/ca0132: add alt_select_in/out for R3Di + SBZ") Cc: Signed-off-by: Connor McAdams Link: https://lore.kernel.org/r/20201208195223.424753-2-conmanx...@gmail.co

[PATCH 1/2] ALSA: hda/ca0132 - Add 8051 PLL write helper functions.

2020-12-11 Thread Connor McAdams
Add helper functions for the 8051 PLL PMU write verbs. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 130 ++- 1 file changed, 50 insertions(+), 80 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH 2/2] ALSA: hda/ca0132 - Add ZxR surround DAC setup.

2020-12-11 Thread Connor McAdams
Add pre-dsp download initialization for the DAC's used in the surround sound configuration. Fixes issues of no audio on surround channels. Fixes: 2e492b8ee5da8 ("ALSA: hda/ca0132 - Add ZxR init commands") Signed-off-by: Connor McAdams --- sound/pci/hda/patc

Re: [PATCH 1/3] ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.

2020-12-07 Thread Connor McAdams
Will do, thanks for the info. On Mon, Dec 7, 2020 at 3:58 AM Takashi Iwai wrote: > > On Mon, 07 Dec 2020 09:46:13 +0100, > Connor McAdams wrote: > > > > The Windows driver sets the pincfg for the AE-5's rear-headphone to > > report as a microphone. This causes i

[PATCH v2 3/3] ALSA: hda/ca0132 - Unmute surround when speaker output is selected.

2020-12-08 Thread Connor McAdams
Make sure GPIO pin for surround channel mute is set to 0 when speaker output is selected. Fixes: def3f0a5c7007 ("ALSA: hda/ca0132 - Add quirk output selection structures.") Cc: Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 2/3] ALSA: hda/ca0132 - Change Input Source enum strings.

2020-12-08 Thread Connor McAdams
Change the Input Source enumerated control's strings to make it play nice with pulseaudio. Fixes: 7cb9d94c05de9 ("ALSA: hda/ca0132: add alt_select_in/out for R3Di + SBZ") Cc: Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 1/3] ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.

2020-12-08 Thread Connor McAdams
E-5 pincfg") Cc: Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2 changes: - Add fixes references to previous commits that these patches now fix. diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c ind

[PATCH 2/5] ALSA: hda/ca0132 - Add stream port remapping function.

2020-12-08 Thread Connor McAdams
Add function for remapping a ChipIO stream's ports. Also include some documentation as to how this works. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 208 ++- 1 file changed, 156 insertions(+), 52 deletions(-) diff --git a/sound/pc

[PATCH 3/5] ALSA: hda/ca0132 - Add 8051 exram helper functions.

2020-12-08 Thread Connor McAdams
Add functions for both reading and writing to the 8051's exram. Also, add a little bit of documentation on how the addresses are segmented. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 138 --- 1 file changed, 80 insertions(+), 58 dele

[PATCH 0/5] ALSA: hda/ca0132 - Fix no-audio issues and add documentation.

2020-12-08 Thread Connor McAdams
commits this necessarily 'fixes', as it's covering multiple areas. Please let me know if this is necessary. Connor McAdams (5): ALSA: hda/ca0132 - Reset codec upon initialization. ALSA: hda/ca0132 - Add stream port remapping function. ALSA: hda/ca0132 - Add 8051 exram helper fu

[PATCH 5/5] ALSA: hda/ca0132 - Remove now unnecessary DSP setup functions.

2020-12-08 Thread Connor McAdams
Now that the DSP's audio configuration is understood, remove previous hacky methods of trying to properly configure it. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 105 --- 1 file changed, 105 deletions(-) diff --git a/sound/pc

[PATCH 4/5] ALSA: hda/ca0132 - Ensure DSP is properly setup post-firmware download.

2020-12-08 Thread Connor McAdams
Make sure that the DSP has no DMA channels allocated once the firmware is downloaded, and that the default audio streams in use by the DSP are setup in the correct order. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 127 +++ 1 file changed

[PATCH 1/5] ALSA: hda/ca0132 - Reset codec upon initialization.

2020-12-08 Thread Connor McAdams
Reset the codec upon initialization to clear out anything that may have been setup on a previous boot into Windows, or in case of an improper shutdown. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 21 - 1 file changed, 16 insertions(+), 5 deletions

[PATCH v2 0/5] ALSA: hda/ca0132 - Fix no-audio issues and add documentation.

2020-12-10 Thread Connor McAdams
g the codec upon initialization, and not making sure the DSP allocates it's DMA channels correctly. Tested and working on all cards, except for the AE-7. The AE-7 shouldn't have any issues, however, I don't have one on hand to test. Connor McAdams (5): ALSA: hda/ca0132 - Reset codec

[PATCH v2 3/5] ALSA: hda/ca0132 - Add 8051 exram helper functions.

2020-12-10 Thread Connor McAdams
Add functions for both reading and writing to the 8051's exram. Also, add a little bit of documentation on how the addresses are segmented. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 137 --- 1 file changed, 79 insertions(+), 58 dele

[PATCH v2 2/5] ALSA: hda/ca0132 - Add stream port remapping function.

2020-12-10 Thread Connor McAdams
Add function for remapping a ChipIO stream's ports. Also include some documentation as to how this works. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 208 ++- 1 file changed, 156 insertions(+), 52 deletions(-) diff --git a/sound/pc

[PATCH v2 1/5] ALSA: hda/ca0132 - Reset codec upon initialization.

2020-12-10 Thread Connor McAdams
Reset the codec upon initialization to clear out anything that may have been setup on a previous boot into Windows, or in case of an improper shutdown. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 21 - 1 file changed, 16 insertions(+), 5 deletions

[PATCH v2 4/5] ALSA: hda/ca0132 - Ensure DSP is properly setup post-firmware download.

2020-12-10 Thread Connor McAdams
Make sure that the DSP has no DMA channels allocated once the firmware is downloaded, and that the default audio streams in use by the DSP are setup in the correct order. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 119 +++ 1 file changed

[PATCH 3/3] ALSA: hda/ca0132 - Unmute surround when speaker output is selected.

2020-12-07 Thread Connor McAdams
Make sure GPIO pin for surround channel mute is set to 0 when speaker output is selected. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH 2/3] ALSA: hda/ca0132 - Change Input Source enum strings.

2020-12-07 Thread Connor McAdams
Change the Input Source enumerated control's strings to make it play nice with pulseaudio. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c

[PATCH 1/3] ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.

2020-12-07 Thread Connor McAdams
The Windows driver sets the pincfg for the AE-5's rear-headphone to report as a microphone. This causes issues with Pulseaudio mistakenly believing there is no headphone plugged in. In Linux, we should instead set it to be a headphone. Signed-off-by: Connor McAdams --- sound/pc

Re: [alsa-devel] ca0132 audio in Ubuntu 19.04 only after Windows 10 started, missing ctefx-r3di.bin

2019-06-28 Thread Connor McAdams
Hm... not sure the firmware will fix this issue, as it falls back to the default ctefx.bin firmware which should work fine. But it's worth a shot. His card looks like it's being identified properly, and I've had reports from others with the same motherboard codecs not having issues. There's not t

[PATCH 08/11] ALSA: hda/ca0132 - Add ZxR input/output select commands

2018-09-29 Thread Connor McAdams
This patch adds commands for selecting input and output on the Sound Blaster ZxR. The ZxR has no front panel header, and has line-in on the separate daughter board, so it only does rear-mic. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 25 + 1 file

[PATCH 01/11] ALSA: hda/ca0132 - Fix AE-5 control type

2018-09-29 Thread Connor McAdams
This patch corrects the control type of the additional AE-5 controls added in a previous patch from HDA_INPUT to HDA_OUTPUT. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b

[PATCH 00/11] Add ZxR support + bugfixes

2018-09-29 Thread Connor McAdams
This patch series adds support for the Sound Blaster ZxR, as well as a few bug fixes. This should be the last ca0132 based Creative card that needed support to be added. Also, I did check to make sure each patch compiles properly this time, but you can check yourself just to be sure. :) Connor

[PATCH 04/11] ALSA: hda/ca0132 - Add ZxR pincfg

2018-09-29 Thread Connor McAdams
This patch adds a pincfg for the ZxR, and defines which pins are used for both. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 50 1 file changed, 50 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda

[PATCH 09/11] ALSA: hda/ca0132 - Remove input select enum for ZxR

2018-09-29 Thread Connor McAdams
This patch removes the input select control for the ZxR, as it only has one input option, rear microphone. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci

[PATCH 02/11] ALSA: hda/ca0132 - Fix surround sound with output effects

2018-09-29 Thread Connor McAdams
This patch fixes an issue where if surround sound was the selected output and output effects were enabled, the sound wasn't sent to all channels correctly. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 19 ++- 1 file changed, 14 insertions(+), 5 dele

[PATCH 03/11] ALSA: hda/ca0132 - Add ZxR quirks + new quirk check function

2018-09-29 Thread Connor McAdams
This patch adds quirk ID's for the ZxR and it's daughter board, the DBPro. It also adds a function for determining the quirk for each board through HDA subsytem ID's instead of PCI subsystem ID's. Signed-off-by: Connor McAdams --- sound/pci/hda

[PATCH 11/11] ALSA: hda/ca0132 - Add ZxR exit commands

2018-09-29 Thread Connor McAdams
This patch adds exit operations for the Sound Blaster ZxR. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 90e6a96..b098504

[PATCH 06/11] ALSA: hda/ca0132 - Add ZxR init commands

2018-09-29 Thread Connor McAdams
This patch adds init commands for the main Sound Blaster ZxR card. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index a543b23..6e48c3d

[PATCH 10/11] ALSA: hda/ca0132 - Add ZxR 600 ohm gain control

2018-09-29 Thread Connor McAdams
This patch adds a control for 600 ohm gain on the Sound Blaster ZxR. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 44 ++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda

[PATCH 07/11] ALSA: hda/ca0132 - Add ZxR DSP post-download commands

2018-09-29 Thread Connor McAdams
This patch adds commands for setting up the ZxR after the DSP is downloaded. The ZxR already shares most of the post-download commands from the regular Sound Blaster Z. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 37 - 1 file changed, 24

[PATCH 05/11] ALSA: hda/ca0132 - Add DBpro hda_codec_ops

2018-09-29 Thread Connor McAdams
This patch adds separate hda_codec_ops for the DBPro daughter board, as it behaves more like a generic HDA codec than the other ca0132 cards, despite having a ca0132 on board. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 100 +++ 1

Re: [PATCH 00/15] Add support for Sound BlasterX AE-5

2018-09-20 Thread Connor McAdams
Thank you for fixing that. I was doing that previously, but this time I was only doing it every few commits. Will make sure to go back to the way I was doing it before. Sorry about that. On Thu, Sep 20, 2018 at 3:23 AM, Takashi Iwai wrote: > On Tue, 18 Sep 2018 20:33:28 +0200, > Connor M

[PATCH 6/9] add alt_select_in/out for R3Di + SBZ

2018-05-03 Thread Connor McAdams
Add functions ca0132_alt_select_out and ca0132_alt_select_in for switching outputs and inputs for r3di and sbz. Also, add enumerated controls for selecting output and input source. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 598

[PATCH 2/9] Add pincfg for SBZ + R3Di, add fp hp auto-detect

2018-05-03 Thread Connor McAdams
R3Di and SBZ are also given a max out channel value of 6 to handle 5.1 surround sound in later patches. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 111 +-- 1 file changed, 108 insertions(+), 3 deletions(-) diff --git a/sound/pci/hda

[PATCH 1/9] R3Di and SBZ quirk entires + alt firmware loading

2018-05-03 Thread Connor McAdams
x-r3di.bin" and the Sound Blaster Z uses "ctefx-sbz.bin". If the alternative firmware for the given quirk is not found, the original ctefx.bin will be used. This has been confirmed to work for both the R3Di and the SBZ. This patch also makes the character array *dirstr a const.

[PATCH 4/9] Add extra exit functions for R3Di and SBZ

2018-05-03 Thread Connor McAdams
using the card through VFIO in a virtual machine, to make sure the card reloads the DSP properly. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 136 +++ 1 file changed, 136 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound

[PATCH 9/9] Add new control changes for SBZ + R3Di

2018-05-03 Thread Connor McAdams
This patch adds new controls to set the effect levels on the R3Di and SBZ. It also adds vmaster controls to control all surround sound channels. So that Surround effect switch doesn't conflict with Surround volume, FX: prefix added to all effect related switches. Signed-off-by: Connor Mc

[PATCH 5/9] add/change helper functions for R3Di and SBZ

2018-05-03 Thread Connor McAdams
Edit core functions to support the Sound Blaster Z and Recon3Di for startup and loading of the DSP, as well as setting effects. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1117 ++ 1 file changed, 1034 insertions(+), 83 deletions

[PATCH 7/9] Add DSP Volume set and New mixers for SBZ + R3Di

2018-05-03 Thread Connor McAdams
Adds lookup table for floating point decibel volume, and new functions to allow for setting the decibel level on the DSP. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 198 ++- 1 file changed, 197 insertions(+), 1 deletion(-) diff

[PATCH 8/9] add ca0132_alt_set_vipsource

2018-05-03 Thread Connor McAdams
Add function to set vipsource on cards that use_alt_controls. Different sequence. Also, add cvoice_switch_set at end of ca0132_select_in so that when switching between inputs cvoice state is maintained. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 72

[PATCH 3/9] Add PCI region2 iomap for SBZ

2018-05-03 Thread Connor McAdams
unmap the iomem for the SBZ. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 9347c9d..2f7f964 100644 --- a/sound

[PATCH 3/9] Add PCI region2 iomap for SBZ

2018-05-03 Thread Connor McAdams
unmap the iomem for the SBZ. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 02238fe..68e5122 100644 --- a/sound

[PATCH 7/9] Add DSP Volume set and New mixers for SBZ + R3Di

2018-05-03 Thread Connor McAdams
Adds lookup table for floating point decibel volume, and new functions to allow for setting the decibel level on the DSP. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 203 ++- 1 file changed, 202 insertions(+), 1 deletion(-) diff

[PATCH 9/9] Add new control changes for SBZ + R3Di

2018-05-03 Thread Connor McAdams
igned-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 758 ++- 1 file changed, 748 insertions(+), 10 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 77a7704..19397d6 100644 --- a/sound/pci/hda/patch_ca0

[PATCH 8/9] add ca0132_alt_set_vipsource

2018-05-03 Thread Connor McAdams
Add function to set vipsource on cards that use_alt_controls. Different sequence. Also, add cvoice_switch_set at end of ca0132_select_in so that when switching between inputs cvoice state is maintained. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 71

[PATCH 6/9] add alt_select_in/out for R3Di + SBZ

2018-05-03 Thread Connor McAdams
Add functions ca0132_alt_select_out and ca0132_alt_select_in for switching outputs and inputs for r3di and sbz. Also, add enumerated controls for selecting output and input source. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 597

[PATCH 5/9] add/change helper functions for R3Di and SBZ

2018-05-03 Thread Connor McAdams
Edit core functions to support the Sound Blaster Z and Recon3Di for startup and loading of the DSP, as well as setting effects. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1070 -- 1 file changed, 1018 insertions(+), 52 deletions

  1   2   >