[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

[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 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

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

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 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

[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

[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 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 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 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 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 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 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 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 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(+),

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 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

[PATCH v2 03/20] ALSA: hda/ca0132 - Add surround channel config control.

2020-08-25 Thread Connor McAdams
Add a surround channel configuration enumeration control. Setting up different channel configurations allows the DSP to upmix stereo audio into multi-channel audio, and allows for redirection of bass to a subwoofer. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 110

[PATCH v2 08/20] ALSA: hda/ca0132 - Add quirk output selection structures.

2020-08-25 Thread Connor McAdams
Add structures containing the changes that need to happen on output selection for each quirk. This should streamline the addition of new quirks. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 336 +-- 1 file changed, 241 insertions(+), 95

[PATCH v2 13/20] ALSA: hda/ca0132 - Add ca0132_mmio_init data for SoundBlaster AE-7.

2020-08-25 Thread Connor McAdams
Modify the AE-5 ca0132_mmio_init function to add AE-7 specific writes. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH v2 14/20] ALSA: hda/ca0132 - Add pre-init function for SoundBlaster AE-7.

2020-08-25 Thread Connor McAdams
Add pre DSP initialization function for the AE-7. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 70 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH v2 12/20] ALSA: hda/ca0132 - Set AE-7 bools and select mixer.

2020-08-25 Thread Connor McAdams
Set the boolean values used for desktop cards, and select the desktop mixer. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 6791aaf18e63..bd5d4f0bd6f5

[PATCH v2 15/20] ALSA: hda/ca0132 - Add init data for SoundBlaster AE-7.

2020-08-25 Thread Connor McAdams
Add initialization data for the SoundBlaster AE-7 card. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index cd46112c827e..dc1eb9bfcc5e 100644 --- a

[PATCH v2 04/20] ALSA: hda/ca0132 - Add full-range speaker selection controls.

2020-08-25 Thread Connor McAdams
Add functions for setting full-range speakers and controls to enable/disable the setting. Setting a speaker to full-range means that the channels won't have their bass redirected to the LFE channel. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c

[PATCH v2 11/20] ALSA: hda/ca0132 - Add SoundBlaster AE-7 pincfg.

2020-08-25 Thread Connor McAdams
Add AE-7 pincfg, based on the values set within Windows. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 284f63dc2749..6791aaf18e63 100644

[PATCH v2 01/20] ALSA: hda/ca0132 - Cleanup ca0132_mmio_init function.

2020-08-25 Thread Connor McAdams
Cleanup the ca0132_mmio_init function, separating into two separate functions, one for Sound Blaster Z/ZxR/Recon3D, and another for the AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 158 ++- 1 file changed, 99 insertions(+), 59 deletions

[PATCH v2 10/20] ALSA: hda/ca0132 - Add new quirk ID for SoundBlaster AE-7.

2020-08-25 Thread Connor McAdams
Add a new PCI subsystem ID for the SoundBlaster AE-7 card. 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 138403fd1639..284f63dc2749 100644 --- a/sound/pci/hda

[PATCH v2 18/20] ALSA: hda/ca0132 - Add AE-7 microphone selection commands.

2020-08-25 Thread Connor McAdams
Add AE-7 quirk data for setting of microphone. The AE-7 has no front panel connector, so only rear-mic/line-in have new commands. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sound/pci

[PATCH v2 19/20] ALSA: hda/ca0132 - Add AE-7 custom controls.

2020-08-25 Thread Connor McAdams
Add headphone gain and DAC filter controls, which use the same commands as the AE-5. Also, change input source enumerated control item count to exclude front microphone. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 20 1 file changed, 16 insertions(+), 4

[PATCH v2 16/20] ALSA: hda/ca0132 - Add DSP setup functions for AE-7.

2020-08-25 Thread Connor McAdams
Add DSP setup functions for the Sound Blaster AE-7 post DSP download. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 290 +++ 1 file changed, 290 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH v2 20/20] ALSA: hda/ca0132 - Add AE-7 exit commands.

2020-08-25 Thread Connor McAdams
Add exit commands for the AE-7. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 29 + 1 file changed, 29 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 52f6d3740e0a..9779978e4bc7 100644 --- a/sound/pci

[PATCH v2 17/20] ALSA: hda/ca0132 - Add output selection for SoundBlaster AE-7.

2020-08-25 Thread Connor McAdams
Add output selection quirk table information for SoundBlaster AE-7, and slightly modify the AE-5's ca0113 command table to accommodate the AE-7. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 88 1 file changed, 68 insertions(+

[PATCH v2 07/20] ALSA: hda/ca0132 - Clean up ca0132_alt_out_select.

2020-08-25 Thread Connor McAdams
Remove the output structures that were in use before and instead set the DSP commands line by line. Now that the commands use is known, it makes the functionality more clear this way. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 142 ++- 1

[PATCH v2 05/20] ALSA: hda/ca0132 - Add bass redirection controls.

2020-08-25 Thread Connor McAdams
ation has an LFE channel. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 130 +-- 1 file changed, 126 insertions(+), 4 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 469cefe9a51a..8ad2fc5ab30b 100644

[PATCH v2 09/20] ALSA: hda/ca0132 - Fix Recon3D Center/LFE output.

2020-08-25 Thread Connor McAdams
Properly set the GPIO pin to un-mute the Center/LFE channel on the Recon3D. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index ab84ea397552..138403fd1639

[PATCH v2 06/20] ALSA: hda/ca0132 - Remove surround output selection.

2020-08-25 Thread Connor McAdams
Remove the surround output selection and merge it with the speaker output selection. Now that the extra commands that were being run on surround output setting are known, there's no need to have it be separate. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c

[PATCH v2 00/20] ALSA: hda/ca0132 - Add AE-7 support/Control cleanup.

2020-08-25 Thread Connor McAdams
. --- v2: Change control names to omit unnecessary information. Connor McAdams (20): ALSA: hda/ca0132 - Cleanup ca0132_mmio_init function. ALSA: hda/ca0132 - Add speaker tuning initialization commands. ALSA: hda/ca0132 - Add surround channel config control. ALSA: hda/ca0132 - Add full-range

[PATCH v2 02/20] ALSA: hda/ca0132 - Add speaker tuning initialization commands.

2020-08-25 Thread Connor McAdams
Add speaker tuning initialization DSP commands, and also define previously unknown DSP command values. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 119 +++ 1 file changed, 119 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound

[PATCH 13/20] ALSA: hda/ca0132 - Add ca0132_mmio_init data for SoundBlaster AE-7.

2020-08-21 Thread Connor McAdams
Modify the AE-5 ca0132_mmio_init function to add AE-7 specific writes. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH 09/20] ALSA: hda/ca0132 - Fix Recon3D Center/LFE output.

2020-08-21 Thread Connor McAdams
Properly set the GPIO pin to un-mute the Center/LFE channel on the Recon3D. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index ac9dcaf69a2e..9c61a10114aa

[PATCH 14/20] ALSA: hda/ca0132 - Add pre-init function for SoundBlaster AE-7.

2020-08-21 Thread Connor McAdams
Add pre DSP initialization function for the AE-7. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 70 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH 06/20] ALSA: hda/ca0132 - Remove surround output selection.

2020-08-21 Thread Connor McAdams
Remove the surround output selection and merge it with the speaker output selection. Now that the extra commands that were being run on surround output setting are known, there's no need to have it be separate. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c

[PATCH 07/20] ALSA: hda/ca0132 - Clean up ca0132_alt_out_select.

2020-08-21 Thread Connor McAdams
Remove the output structures that were in use before and instead set the DSP commands line by line. Now that the commands use is known, it makes the functionality more clear this way. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 142 ++- 1

[PATCH 17/20] ALSA: hda/ca0132 - Add output selection for SoundBlaster AE-7.

2020-08-21 Thread Connor McAdams
Add output selection quirk table information for SoundBlaster AE-7, and slightly modify the AE-5's ca0113 command table to accommodate the AE-7. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 88 1 file changed, 68 insertions(+

[PATCH 16/20] ALSA: hda/ca0132 - Add DSP setup functions for AE-7.

2020-08-21 Thread Connor McAdams
Add DSP setup functions for the Sound Blaster AE-7 post DSP download. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 290 +++ 1 file changed, 290 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index

[PATCH 15/20] ALSA: hda/ca0132 - Add init data for SoundBlaster AE-7.

2020-08-21 Thread Connor McAdams
Add initialization data for the SoundBlaster AE-7 card. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 9a1491d33819..4ec93a070d73 100644 --- a

[PATCH 08/20] ALSA: hda/ca0132 - Add quirk output selection structures.

2020-08-21 Thread Connor McAdams
Add structures containing the changes that need to happen on output selection for each quirk. This should streamline the addition of new quirks. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 336 +-- 1 file changed, 241 insertions(+), 95

[PATCH 18/20] ALSA: hda/ca0132 - Add AE-7 microphone selection commands.

2020-08-21 Thread Connor McAdams
Add AE-7 quirk data for setting of microphone. The AE-7 has no front panel connector, so only rear-mic/line-in have new commands. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sound/pci

[PATCH 10/20] ALSA: hda/ca0132 - Add new quirk ID for SoundBlaster AE-7.

2020-08-21 Thread Connor McAdams
Add a new PCI subsystem ID for the SoundBlaster AE-7 card. 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 9c61a10114aa..57cb63ea88e6 100644 --- a/sound/pci/hda

[PATCH 12/20] ALSA: hda/ca0132 - Set AE-7 bools and select mixer.

2020-08-21 Thread Connor McAdams
Set the boolean values used for desktop cards, and select the desktop mixer. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 5aad9d8ee5e4..ffad29ac7290

[PATCH 11/20] ALSA: hda/ca0132 - Add SoundBlaster AE-7 pincfg.

2020-08-21 Thread Connor McAdams
Add AE-7 pincfg, based on the values set within Windows. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 57cb63ea88e6..5aad9d8ee5e4 100644

[PATCH 20/20] ALSA: hda/ca0132 - Add AE-7 exit commands.

2020-08-21 Thread Connor McAdams
Add exit commands for the AE-7. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 29 + 1 file changed, 29 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 9c70d85b21e0..4d26440eceb0 100644 --- a/sound/pci

[PATCH 19/20] ALSA: hda/ca0132 - Add AE-7 custom controls.

2020-08-21 Thread Connor McAdams
Add headphone gain and DAC filter controls, which use the same commands as the AE-5. Also, change input source enumerated control item count to exclude front microphone. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 20 1 file changed, 16 insertions(+), 4

[PATCH 01/20] ALSA: hda/ca0132 - Cleanup ca0132_mmio_init function.

2020-08-21 Thread Connor McAdams
Cleanup the ca0132_mmio_init function, separating into two separate functions, one for Sound Blaster Z/ZxR/Recon3D, and another for the AE-5. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 158 ++- 1 file changed, 99 insertions(+), 59 deletions

[PATCH 02/20] ALSA: hda/ca0132 - Add speaker tuning initialization commands.

2020-08-21 Thread Connor McAdams
Add speaker tuning initialization DSP commands, and also define previously unknown DSP command values. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 119 +++ 1 file changed, 119 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound

[PATCH 03/20] ALSA: hda/ca0132 - Add surround channel config control.

2020-08-21 Thread Connor McAdams
Add a surround channel configuration enumeration control. Setting up different channel configurations allows the DSP to upmix stereo audio into multi-channel audio, and allows for redirection of bass to a subwoofer. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 110

[PATCH 05/20] ALSA: hda/ca0132 - Add bass redirection controls.

2020-08-21 Thread Connor McAdams
ation has an LFE channel. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 130 +-- 1 file changed, 126 insertions(+), 4 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index c9cd4fc218fe..d97358406401 100644

[PATCH 04/20] ALSA: hda/ca0132 - Add full-range speaker selection controls.

2020-08-21 Thread Connor McAdams
Add functions for setting full-range speakers and controls to enable/disable the setting. Setting a speaker to full-range means that the channels won't have their bass redirected to the LFE channel. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c

[PATCH 00/20] ALSA: hda/ca0132 - Add AE-7 support/Control cleanup.

2020-08-21 Thread Connor McAdams
. Connor McAdams (20): ALSA: hda/ca0132 - Cleanup ca0132_mmio_init function. ALSA: hda/ca0132 - Add speaker tuning initialization commands. ALSA: hda/ca0132 - Add surround channel config control. ALSA: hda/ca0132 - Add full-range speaker selection controls. ALSA: hda/ca0132 - Add bass

[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 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

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

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 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

[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

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

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

[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

[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 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 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

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

[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

[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 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 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

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 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

  1   2   >