]> git.ipfire.org Git - thirdparty/kernel/linux.git/log
thirdparty/kernel/linux.git
2 weeks agoALSA: hda: Add TAS2770 support
Baojun Xu [Wed, 23 Jul 2025 14:24:23 +0000 (22:24 +0800)] 
ALSA: hda: Add TAS2770 support

Add TAS2770 support in TI's HDA driver. And add hda_chip_id for
more products. Distinguish DSP and non-DSP in firmware
loading function.

Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20250723142423.38768-1-baojun.xu@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoMerge branch 'for-linus' into for-next
Takashi Iwai [Tue, 22 Jul 2025 18:02:13 +0000 (20:02 +0200)] 
Merge branch 'for-linus' into for-next

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoALSA: hda/realtek: Fix mute LED mask on HP OMEN 16 laptop
SHARAN KUMAR M [Tue, 22 Jul 2025 17:22:24 +0000 (22:52 +0530)] 
ALSA: hda/realtek: Fix mute LED mask on HP OMEN 16 laptop

this patch is to fix my previous Commit <e5182305a519> i have fixed mute
led but for by This patch corrects the coefficient mask value introduced
in commit <e5182305a519>, which was intended to enable the mute LED
functionality. During testing, multiple values were evaluated, and
an incorrect value was mistakenly included in the final commit.
This update fixes that error by applying the correct mask value for
proper mute LED behavior.

Tested on 6.15.5-arch1-1

Fixes: e5182305a519 ("ALSA: hda/realtek: Enable Mute LED on HP OMEN 16 Laptop xd000xx")
Signed-off-by: SHARAN KUMAR M <sharweshraajan@gmail.com>
Link: https://patch.msgid.link/20250722172224.15359-1-sharweshraajan@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoALSA: usb-audio: qcom: Adjust mutex unlock order
Erick Karanja [Mon, 21 Jul 2025 11:45:53 +0000 (14:45 +0300)] 
ALSA: usb-audio: qcom: Adjust mutex unlock order

The mutexes qdev_mutex and chip->mutex are acquired in that order
throughout the driver. To preserve proper lock hierarchy and avoid
potential deadlocks, they must be released in the reverse
order of acquisition.

This change reorders the unlock sequence to first release chip->mutex
followed by qdev_mutex, ensuring consistency with the locking pattern.

[ fixed the code indentations and Fixes tag by tiwai ]

Fixes: 326bbc348298a ("ALSA: usb-audio: qcom: Introduce QC USB SND offloading support")
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Link: https://patch.msgid.link/20250721114554.1666104-1-karanja99erick@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoALSA: hda/realtek: Add support for ASUS Commercial laptops using CS35L41 HDA
Stefan Binding [Mon, 21 Jul 2025 13:54:05 +0000 (14:54 +0100)] 
ALSA: hda/realtek: Add support for ASUS Commercial laptops using CS35L41 HDA

Add support for ASUS PM3406CKA and PM3606CKA.

Laptops use 2 CS35L41 Amps with HDA, using Internal boost, with I2C

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://patch.msgid.link/20250721135406.366912-1-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoMerge branch 'for-linus' into for-next
Takashi Iwai [Mon, 21 Jul 2025 07:23:34 +0000 (09:23 +0200)] 
Merge branch 'for-linus' into for-next

Synch HD-audio changes landed in 6.16-rc7.
Mostly for file rename tracking.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoALSA: hda/realtek - Add mute LED support for HP Pavilion 15-eg0xxx
Dawid Rezler [Sun, 20 Jul 2025 15:49:08 +0000 (17:49 +0200)] 
ALSA: hda/realtek - Add mute LED support for HP Pavilion 15-eg0xxx

The mute LED on the HP Pavilion Laptop 15-eg0xxx,
which uses the ALC287 codec, didn't work.
This patch fixes the issue by enabling the ALC287_FIXUP_HP_GPIO_LED quirk.

Tested on a physical device, the LED now works as intended.

Signed-off-by: Dawid Rezler <dawidrezler.patches@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20250720154907.80815-2-dawidrezler.patches@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 weeks agoALSA: hda/realtek - Add mute LED support for HP Victus 15-fa0xxx
Edip Hazuri [Thu, 17 Jul 2025 21:26:26 +0000 (00:26 +0300)] 
ALSA: hda/realtek - Add mute LED support for HP Victus 15-fa0xxx

The mute led on this laptop is using ALC245 but requires a quirk to work
This patch enables the existing quirk for the device.

Tested on my Victus 15-fa0xxx Laptop. The LED behaviour works
as intended.

Cc: <stable@vger.kernel.org>
Signed-off-by: Edip Hazuri <edip@medip.dev>
Link: https://patch.msgid.link/20250717212625.366026-2-edip@medip.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoMerge tag 'asoc-fix-v6.16-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git...
Takashi Iwai [Thu, 17 Jul 2025 12:53:38 +0000 (14:53 +0200)] 
Merge tag 'asoc-fix-v6.16-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus

ASoC: Fixes for v6.16

A relatively large set of changes, but most of them are quirk
information for various x86 systems.  There is one more substantial fix
for a NULL pointer dereference when removing the AVS driver, plus one
for Kconfig dependencies.

3 weeks agoASoC: amd: yc: Add DMI quirk for HP Laptop 17 cp-2033dx
Lane Odenbach [Tue, 15 Jul 2025 18:20:38 +0000 (13:20 -0500)] 
ASoC: amd: yc: Add DMI quirk for HP Laptop 17 cp-2033dx

This fixes the internal microphone in the stated device

Signed-off-by: Lane Odenbach <laodenbach@gmail.com>
Link: https://patch.msgid.link/20250715182038.10048-1-laodenbach@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
3 weeks agoASoC: Intel: soc-acpi: add support for HP Omen14 ARL
Bard Liao [Wed, 16 Jul 2025 08:22:33 +0000 (16:22 +0800)] 
ASoC: Intel: soc-acpi: add support for HP Omen14 ARL

This platform has an RT711-sdca on link0 and RT1316 on link3.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20250716082233.1810334-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
3 weeks agomips: loongson3_defconfig: Update HD-audio configs
Takashi Iwai [Tue, 15 Jul 2025 07:51:22 +0000 (09:51 +0200)] 
mips: loongson3_defconfig: Update HD-audio configs

Since the reorganization of HD-audio drivers, Realtek driver has been
split.  Update to the new Kconfigs to catch up.

Fixes: aeeb85f26c3b ("ALSA: hda: Split Realtek HD-audio codec driver")
Link: https://patch.msgid.link/20250715075237.28476-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoarm: multi_v7_defconfig: Update HD-audio configs
Takashi Iwai [Tue, 15 Jul 2025 07:51:21 +0000 (09:51 +0200)] 
arm: multi_v7_defconfig: Update HD-audio configs

Since the reorganization of HD-audio drivers, Realtek and HDMI codec
drivers have been split.  Update to the new Kconfigs to catch up.

Fixes: aeeb85f26c3b ("ALSA: hda: Split Realtek HD-audio codec driver")
Fixes: 73cd0490819d ("ALSA: hda/hdmi: Split vendor codec drivers")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/20250715170422.5162c666@canb.auug.org.au
Link: https://patch.msgid.link/20250715075237.28476-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoASoC: amd: yc: Add DMI entries to support HP 15-fb1xxx
Adam Queler [Tue, 15 Jul 2025 03:14:24 +0000 (23:14 -0400)] 
ASoC: amd: yc: Add DMI entries to support HP 15-fb1xxx

This model requires an additional detection quirk to
enable the internal microphone.

Signed-off-by: Adam Queler <queler+k@gmail.com>
Link: https://patch.msgid.link/20250715031434.222062-1-queler+k@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
3 weeks agoMerge branch 'for-linus' into for-next
Takashi Iwai [Tue, 15 Jul 2025 07:54:17 +0000 (09:54 +0200)] 
Merge branch 'for-linus' into for-next

Pull yet another HD-audio codec quirk update from 6.16 devel branch.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoALSA: hda/realtek: Add quirk for ASUS ROG Strix G712LWS
Takashi Iwai [Tue, 15 Jul 2025 06:29:04 +0000 (08:29 +0200)] 
ALSA: hda/realtek: Add quirk for ASUS ROG Strix G712LWS

ASUS ROG Strix G712LWS (PCI SSID 1043:1a83) requires the quirk for
ALC294 headset mode in order to make the speaker and headset I/O
working properly.

Cc: <stable@vger.kernel.org>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220334
Link: https://patch.msgid.link/20250715062906.11857-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoMerge branch 'for-linus' into for-next
Takashi Iwai [Mon, 14 Jul 2025 12:29:49 +0000 (14:29 +0200)] 
Merge branch 'for-linus' into for-next

Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoALSA: hda/cs35l56: Workaround bad dev-index on Lenovo Yoga Book 9i GenX
Richard Fitzgerald [Mon, 14 Jul 2025 11:01:54 +0000 (12:01 +0100)] 
ALSA: hda/cs35l56: Workaround bad dev-index on Lenovo Yoga Book 9i GenX

The Lenovo Yoga Book 9i GenX has the wrong values in the cirrus,dev-index
_DSD property. Add a fixup for this model to ignore the property and
hardcode the index from the I2C bus address.

The error in the cirrus,dev-index property would prevent the second amp
instance from probing. The component binding would never see all the
required instances and so there would not be a binding between
patch_realtek.c and the cs35l56 driver.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reported-by: Brian Howard <blhoward2@gmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220228
Link: https://patch.msgid.link/20250714110154.204740-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoALSA: hda/realtek: Support mute LED for Yoga with ALC287
Jackie Dong [Mon, 14 Jul 2025 09:46:55 +0000 (17:46 +0800)] 
ALSA: hda/realtek: Support mute LED for Yoga with ALC287

Support mute LED on keyboard for Lenovo Yoga series products with
Realtek ALC287 chipset.

Tested on Lenovo Slim Pro 7 14APH8.

[ slight comment cleanup by tiwai ]

Signed-off-by: Jackie Dong <xy-jackie@139.com>
Link: https://patch.msgid.link/20250714094655.4657-1-xy-jackie@139.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoASoC: Intel: fix SND_SOC_SOF dependencies
Arnd Bergmann [Wed, 9 Jul 2025 14:56:07 +0000 (16:56 +0200)] 
ASoC: Intel: fix SND_SOC_SOF dependencies

It is currently possible to configure a kernel with all Intel SoC
configs as loadable modules, but the board config as built-in. This
causes a link failure in the reference to the snd_soc_sof.ko module:

x86_64-linux-ld: sound/soc/intel/boards/sof_rt5682.o: in function `sof_rt5682_hw_params':
sof_rt5682.c:(.text+0x1f9): undefined reference to `sof_dai_get_mclk'
x86_64-linux-ld: sof_rt5682.c:(.text+0x234): undefined reference to `sof_dai_get_bclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_rt5682.o: in function `sof_rt5682_codec_init':
sof_rt5682.c:(.text+0x3e0): undefined reference to `sof_dai_get_mclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_cs42l42.o: in function `sof_cs42l42_hw_params':
sof_cs42l42.c:(.text+0x2a): undefined reference to `sof_dai_get_bclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_nau8825.o: in function `sof_nau8825_hw_params':
sof_nau8825.c:(.text+0x7f): undefined reference to `sof_dai_get_bclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_da7219.o: in function `da7219_codec_init':
sof_da7219.c:(.text+0xbf): undefined reference to `sof_dai_get_mclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_maxim_common.o: in function `max_98373_hw_params':
sof_maxim_common.c:(.text+0x6f9): undefined reference to `sof_dai_get_tdm_slots'
x86_64-linux-ld: sound/soc/intel/boards/sof_realtek_common.o: in function `rt1015_hw_params':
sof_realtek_common.c:(.text+0x54c): undefined reference to `sof_dai_get_bclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_realtek_common.o: in function `rt1308_hw_params':
sof_realtek_common.c:(.text+0x702): undefined reference to `sof_dai_get_mclk'
x86_64-linux-ld: sound/soc/intel/boards/sof_cirrus_common.o: in function `cs35l41_hw_params':
sof_cirrus_common.c:(.text+0x2f): undefined reference to `sof_dai_get_bclk'

Add an optional dependency on SND_SOC_SOF_INTEL_COMMON, to ensure that whenever
the SOF support is in a loadable module, none of the board code can be built-in.

This may be be a little heavy-handed, but I also don't see a reason why one would
want the boards to be built-in but not the SoC, so it shouldn't actually cause
any usability problems.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20250709145626.64125-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
3 weeks agoASoC: rt5660: Fix the dmic data source from GPIO2
Oder Chiou [Fri, 11 Jul 2025 03:48:13 +0000 (11:48 +0800)] 
ASoC: rt5660: Fix the dmic data source from GPIO2

The patch fixes an issue with the dmic data pin connected to GPIO2.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link: https://patch.msgid.link/20250711034813.3278989-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
3 weeks agoALSA: hda: Use safer strscpy() instead of strcpy()
Takashi Iwai [Fri, 11 Jul 2025 08:30:50 +0000 (10:30 +0200)] 
ALSA: hda: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Link: https://patch.msgid.link/20250711083051.18759-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 weeks agoALSA: hda: Return the codec init error properly at snd_hda_codec_build_controls()
Takashi Iwai [Wed, 9 Jul 2025 16:04:30 +0000 (18:04 +0200)] 
ALSA: hda: Return the codec init error properly at snd_hda_codec_build_controls()

The error from snd_hda_codec_init() was ignored in
snd_hda_codec_build_controls(), which should have been taken account
and abort the flow.  Fix it now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-28-tiwai@suse.de
3 weeks agoMAINTAINERS: Adjust to the new HD-audio driver paths
Takashi Iwai [Wed, 9 Jul 2025 16:04:29 +0000 (18:04 +0200)] 
MAINTAINERS: Adjust to the new HD-audio driver paths

The HD-audio drivers are moved under sound/hda now.
Correct the locations.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-27-tiwai@suse.de
3 weeks agoALSA: hda: Drop superfluous driver->ops NULL checks
Takashi Iwai [Wed, 9 Jul 2025 16:04:28 +0000 (18:04 +0200)] 
ALSA: hda: Drop superfluous driver->ops NULL checks

After all conversions, driver->ops became a must in most places
(except for the codec power setup which might be called before binding
to the codec driver), hence we can get rid of the superfluous
driver->ops NULL checks, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-26-tiwai@suse.de
3 weeks agoALSA: hda: Drop old codec binding method
Takashi Iwai [Wed, 9 Jul 2025 16:04:27 +0000 (18:04 +0200)] 
ALSA: hda: Drop old codec binding method

Now that all patch_ops usage have been converted to the new
hda_codec_ops probe, we can drop patch_ops from the hda_codec,
together with the calls of patch_ops callbacks.

The hda_codec_ops.free callback is removed as all have been replaced
with the new remove callback.

Also, correct comments mentioning "patch"; it's replaced with "codec
driver".

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-25-tiwai@suse.de
3 weeks agoALSA: hda/hdmi: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:26 +0000 (18:04 +0200)] 
ALSA: hda/hdmi: Rewrite to new probe method

Convert the HDMI codec drivers to use the new hda_codec_ops probe.

The Intel and Nvidia-MCP HDMI drivers needed slightly more changes to
deal with the unified callbacks among all models.

Also another non-trivial change is Intel driver's set_power_state
callback.  An additional NULL check of codec->spec is needed there
since the set_power_state() may be called before the probe gets called
(e.g. in ASoC hda codec hda_codec_probe()).

Other than that, no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-24-tiwai@suse.de
3 weeks agoALSA: hda/ca0132: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:25 +0000 (18:04 +0200)] 
ALSA: hda/ca0132: Rewrite to new probe method

Convert the CA0132 codec driver to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-23-tiwai@suse.de
3 weeks agoALSA: hda/sigmatel: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:24 +0000 (18:04 +0200)] 
ALSA: hda/sigmatel: Rewrite to new probe method

Convert the Sigmatel/IDT codec driver to use the new hda_codec_ops
probe.  No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-22-tiwai@suse.de
3 weeks agoALSA: hda/via: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:23 +0000 (18:04 +0200)] 
ALSA: hda/via: Rewrite to new probe method

Convert the VIA codec driver to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-21-tiwai@suse.de
3 weeks agoALSA: hda/si3054: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:22 +0000 (18:04 +0200)] 
ALSA: hda/si3054: Rewrite to new probe method

Convert the SI3054 codec driver to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-20-tiwai@suse.de
3 weeks agoALSA: hda/senary: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:21 +0000 (18:04 +0200)] 
ALSA: hda/senary: Rewrite to new probe method

Convert the Senary codec driver to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-19-tiwai@suse.de
3 weeks agoALSA: hda/conexant: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:20 +0000 (18:04 +0200)] 
ALSA: hda/conexant: Rewrite to new probe method

Convert the Conexant codec driver to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-18-tiwai@suse.de
3 weeks agoALSA: hda/cs8409: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:19 +0000 (18:04 +0200)] 
ALSA: hda/cs8409: Rewrite to new probe method

Convert the CS8409 codec driver to use the new hda_codec_ops probe.
The Dolphin support needs an override of unsol_event callback, and
redirect via spec->unsol_event function pointer for now.

Other than that, no functional changes.

Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-17-tiwai@suse.de
3 weeks agoALSA: hda/cirrus: Split to cs420x and cs421x drivers
Takashi Iwai [Wed, 9 Jul 2025 16:04:18 +0000 (18:04 +0200)] 
ALSA: hda/cirrus: Split to cs420x and cs421x drivers

Since the codec ops for CS420x and CS421x are fairly independent,
split the cirrus codec driver into two drivers, snd-hda-codec-cs420x
and snd-hda-code-cs421x.  Together with the split, convert to the new
hda_codec_ops probe.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-16-tiwai@suse.de
3 weeks agoALSA: hda/ca0110: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:17 +0000 (18:04 +0200)] 
ALSA: hda/ca0110: Rewrite to new probe method

Convert the CA0110 codec driver to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-15-tiwai@suse.de
3 weeks agoALSA: hda/analog: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:16 +0000 (18:04 +0200)] 
ALSA: hda/analog: Rewrite to new probe method

Convert the Analog Device codec driver to use the new hda_codec_ops
probe.  The probe function had to be unified and branched with the
model type specified via driver_data instead.

Other than that, no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-14-tiwai@suse.de
3 weeks agoALSA: hda/cmedia: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:15 +0000 (18:04 +0200)] 
ALSA: hda/cmedia: Rewrite to new probe method

Convert the C-Media codec driver to use the new hda_codec_ops probe.

Since the CM9825 uses a completely different probe and codec ops,
factor out to an individual codec driver, snd-hda-codec-cm9825.

Other than that, no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-13-tiwai@suse.de
3 weeks agoALSA: hda/realtek: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:14 +0000 (18:04 +0200)] 
ALSA: hda/realtek: Rewrite to new probe method

Convert the Realtek codec drivers to use the new hda_codec_ops probe.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-12-tiwai@suse.de
3 weeks agoALSA: hda/generic: Rewrite to new probe method
Takashi Iwai [Wed, 9 Jul 2025 16:04:13 +0000 (18:04 +0200)] 
ALSA: hda/generic: Rewrite to new probe method

Convert the generic HD-audio codec driver to use the new hda_codec_ops
probe.  No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-11-tiwai@suse.de
3 weeks agoALSA: hda: Introduce hda_codec_driver ops
Takashi Iwai [Wed, 9 Jul 2025 16:04:12 +0000 (18:04 +0200)] 
ALSA: hda: Introduce hda_codec_driver ops

Until now, we use "patch_ops" embedded in hda_codec object for
defining the callbacks that are used in various places to manage
HD-audio codec.  But from the device driver POV, this should have been
rather the driver ops, instead of the callbacks in the codec object.

This patch defines the driver ops for HD-audio codec driver as the
replacement.  We reuse the same struct hda_codec_ops, and this is put
as hda_codec_driver.ops.  When the driver->ops callbacks are defined,
they are called primarily instead of codec->patch_ops callbacks.

With converting to the driver ops, there is no need to pass the ugly
patch_ops handling in hda_device_id tables.  That is, driver_data
field of hda_device_id becomes really optional and it can be used for
passing the codec-specific data (e.g. specifying a model).

The codec entries after the conversion should be with HDA_CODEC_ID()
and co, instead of the former HDA_CODEC_ENTRY().

Once after converting all codec drivers to use driver ops, we can get
rid of codec patch_ops.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-10-tiwai@suse.de
3 weeks agoALSA: hda/hdmi: Split vendor codec drivers
Takashi Iwai [Wed, 9 Jul 2025 16:04:11 +0000 (18:04 +0200)] 
ALSA: hda/hdmi: Split vendor codec drivers

In the past, we unified HD-audio HDMI codec driver once with a slight
hope that more vendors will follow the standard, but in reality, the
driver received more and more vendor-specific code.  In order to make
the messy code a bit more understandable, this patch splits the HDMI
codec driver into multiple drivers again.

Namely, the vendor-specific code for Intel, AMD and Nvidia are moved
into the own drivers, while we split the common HDMI code to two
drivers, the generic HDMI driver and the simple HDMI driver.
So, now we have:

- The generic HDMI driver (snd-hda-codec-hdmi):
  providing the common helpers, also supports Glenfly HDMI codecs and
  some other codecs that don't need vendor-specific stuff

- The simple HDMI driver (snd-hda-codec-simplehdmi):
  devices with no dynamic PCM assignment and with fixed channels,
  mostly used by some other drivers, but this driver alone suffices
  for VIA HDMI codec support, too

- Intel HDMI driver (snd-hda-codec-intelhdmi):
  bound with i915 / Xe DRM, based on the generic HDMI driver

- AMD/ATI HDMI driver (snd-hda-codec-atihdmi):
  optionally bound with radeon / amdgpu DRM, based on the generic HDMI
  driver

- Nvidia HDMI driver (snd-hda-codec-nvhdmi);
  optionally bound with nouveau DRM, based on the generic HDMI driver

- Legacy Nvidia HDMI driver (snd-hda-codec-nvhdmi-mcp):
  for 2ch or 8ch outputs, based on the simple HDMI driver

- Nvidia Tegra HDMI driver (snd-hda-codec-tegrahdmi):
  based on the generic HDMI driver

Along with the driver split, the enable_silent_stream module option is
moved to snd-hda-codec-intelhdmi, too, as it's an Intel-specific
feature.

Most of the changes here are just to split and move the code to
different files, as well as to rename/expose the functions that are
commonly used by drivers.

The silent stream handling code is slightly modified for putting the
stuff into Intel driver; now a new callback "silent_stream" is defined
in hdmi_ops, and it's called in silent_stream_enable() and *_disable()
functions.  The runtime-PM handling in silent_stream_enable() was
cleaned up, and rather taking the runtime PM refcount in the
silent_stream() callback appropriately, instead.

Other than that, there should be no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-9-tiwai@suse.de
3 weeks agoALSA: hda: Split Realtek HD-audio codec driver
Takashi Iwai [Wed, 9 Jul 2025 16:04:10 +0000 (18:04 +0200)] 
ALSA: hda: Split Realtek HD-audio codec driver

The snd-hda-codec-realtek driver supports many different codec models
and accumulated lots of quirks.  Now let's split it to multiple
modules per probe function, i.e. for ALC260, ALC262, ALC269, etc.

The common code and quirks are provided by the common library module,
snd-hda-codec-realtek-lib now.  One drawback of this action is that
many symbols have to be exported.  But they are limited with
SND_HDA_CODEC_REALTEK namespace, at least.

This patch tries to be idiomatic and doesn't try to rewrite the
existing code.  We can move the codec model-specific code into each
codec driver later.

The HD-audio sub-codec component binding is currently specific to
ALC269, hence the management is moved into alc269.c.
After that, alc_free() became identical with snd_hda_gen_free(), and
it's replaced as a macro just to call snd_hda_gen_free().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-8-tiwai@suse.de
3 weeks agoALSA: hda: Move codec drivers into sound/hda/codecs directory
Takashi Iwai [Wed, 9 Jul 2025 16:04:09 +0000 (18:04 +0200)] 
ALSA: hda: Move codec drivers into sound/hda/codecs directory

Now move the all remaining codec drivers from sound/pci/hda to
sound/hda/codecs subdirectory.  Some drivers are put under the further
vendor subdirectory, and the vendor helper code (*_helper.c) are put
under helpers subdirectory.  Also the sub-codec drivers are moved under
a different subdirectory, sound/hda/codecs/sub-codecs, for
distinguishing from the main HD-audio codec drivers.

The prefix patch_ and hda_ as well as the suffix _helper are dropped
from file names as they are mostly superfluous.

No functional changes but just file path shuffling.

Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-7-tiwai@suse.de
3 weeks agoALSA: hda: Move controller drivers into sound/hda/controllers directory
Takashi Iwai [Wed, 9 Jul 2025 16:04:08 +0000 (18:04 +0200)] 
ALSA: hda: Move controller drivers into sound/hda/controllers directory

Now HD-audio controller drivers are moved into sound/hda/controllers
directory as a part of HD-audio code reorganization.  Most of drivers
are independent from PCI bus, hence it makes more sense to put under
sound/hda.

The hda_ prefix is dropped from most of files at moving, as it's
more or less superfluous.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-6-tiwai@suse.de
3 weeks agoALSA: hda: Move CONFIG_SND_HDA_PREALLOC_SIZE into sound/hda/common
Takashi Iwai [Wed, 9 Jul 2025 16:04:07 +0000 (18:04 +0200)] 
ALSA: hda: Move CONFIG_SND_HDA_PREALLOC_SIZE into sound/hda/common

CONFIG_SND_HDA_PREALLOC_SIZE is used only by controller.c in
sound/hda/common, hence it depends on CONFIG_SND_HDA.

Move the definition to the right place inside SND_HDA if/endif block
in sound/hda/common/Kconfig.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-5-tiwai@suse.de
3 weeks agoALSA: hda: Move common codec driver into sound/hda/common directory
Takashi Iwai [Wed, 9 Jul 2025 16:04:06 +0000 (18:04 +0200)] 
ALSA: hda: Move common codec driver into sound/hda/common directory

The snd-hda-codec module contains the most of common code used by both
HD-audio controller and codec drivers, and it's basically independent
from PCI.  Let's move the code to sound/hda/common directory as a part
of code reorganization.

The hda_ prefix is dropped from the most of file names as it's rather
superfluous.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-4-tiwai@suse.de
3 weeks agoALSA: hda: Move HD-audio core stuff into sound/hda/core
Takashi Iwai [Wed, 9 Jul 2025 16:04:05 +0000 (18:04 +0200)] 
ALSA: hda: Move HD-audio core stuff into sound/hda/core

This is a part of HD-audio code restructuring.
Simply move the current code of sound/hda/* into the subdirectory
sound/hda/core, so that more stuff can be moved into sound/hda cleanly
later.

Most of file names with hdac_ and hdac_ext_ prefix are renamed without
the prefix, since they can be identified well in the directory name
and superfluous.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-3-tiwai@suse.de
3 weeks agoALSA: hda: Move widget capability macros into hdaudio.h
Takashi Iwai [Wed, 9 Jul 2025 16:04:04 +0000 (18:04 +0200)] 
ALSA: hda: Move widget capability macros into hdaudio.h

The get_wcaps() and co are used not only by HD-audio core but also
other driver code, hence it'd be better to put into the common header
instead of local.h.

OTOH, there are macros of the same name like get_wcaps() that are
still used in sound/pci/hda/* locally, and those conflict with each
other.  So we need to rename get_wcaps() (to be moved from hda-core)
with the proper snd_hdac prefix for avoiding name conflicts, and
define in the common hdaudio.h.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-2-tiwai@suse.de
3 weeks agoALSA: core: Copy string more safely
Takashi Iwai [Thu, 10 Jul 2025 10:07:25 +0000 (12:07 +0200)] 
ALSA: core: Copy string more safely

Replace the remaining strcpy() and sprintf() usages in the ALSA core
code with the safer versions.

The first strcpy() points actually to card->id, hence just use
strscpy() with card->id instead.

The append of suffix string is slightly rewritten so that we can use
scnprintf() and strscpy().

Only for safety, no actual behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-104-tiwai@suse.de
3 weeks agoALSA: usb-audio: Copy string more safely
Takashi Iwai [Thu, 10 Jul 2025 10:07:24 +0000 (12:07 +0200)] 
ALSA: usb-audio: Copy string more safely

Replace strcpy() and sprintf() usages in the USB audio drivers with
the safer versions (strscpy() and scnprintf()) with the proper max
size evaluation.  Only for safety, no actual behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-103-tiwai@suse.de
3 weeks agoALSA: cmipci: Copy string more safely
Takashi Iwai [Thu, 10 Jul 2025 10:07:23 +0000 (12:07 +0200)] 
ALSA: cmipci: Copy string more safely

The probe code uses sprintf() and strcat() without caring about the
string buffer size.  Replace with safer code.

Only a cosmetic safety matter, no functional changes intended.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-102-tiwai@suse.de
3 weeks agoALSA: ac97: Copy string more safely
Takashi Iwai [Thu, 10 Jul 2025 10:07:22 +0000 (12:07 +0200)] 
ALSA: ac97: Copy string more safely

snd_ac97_get_name() blindly assumes that the name buffer is large
enough, but we should be more careful.  Pass the max buffer length and
allow trimming to the size.

Only a cosmetic safety matter, no functional changes intended.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-101-tiwai@suse.de
3 weeks agoALSA: usb-audio: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:21 +0000 (12:07 +0200)] 
ALSA: usb-audio: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-100-tiwai@suse.de
3 weeks agoALSA: ua101: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:20 +0000 (12:07 +0200)] 
ALSA: ua101: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-99-tiwai@suse.de
3 weeks agoALSA: usx2y: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:19 +0000 (12:07 +0200)] 
ALSA: usx2y: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-98-tiwai@suse.de
3 weeks agoALSA: line6: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:18 +0000 (12:07 +0200)] 
ALSA: line6: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-97-tiwai@suse.de
3 weeks agoALSA: 6fire: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:17 +0000 (12:07 +0200)] 
ALSA: 6fire: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-96-tiwai@suse.de
3 weeks agoALSA: synth: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:16 +0000 (12:07 +0200)] 
ALSA: synth: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-95-tiwai@suse.de
3 weeks agoALSA: spi: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:15 +0000 (12:07 +0200)] 
ALSA: spi: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-94-tiwai@suse.de
3 weeks agoALSA: sparc: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:14 +0000 (12:07 +0200)] 
ALSA: sparc: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-93-tiwai@suse.de
3 weeks agoALSA: sh: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:13 +0000 (12:07 +0200)] 
ALSA: sh: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-92-tiwai@suse.de
3 weeks agoALSA: ppc: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:12 +0000 (12:07 +0200)] 
ALSA: ppc: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-91-tiwai@suse.de
3 weeks agoALSA: vxpocket: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:11 +0000 (12:07 +0200)] 
ALSA: vxpocket: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-90-tiwai@suse.de
3 weeks agoALSA: pdaudiocf: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:10 +0000 (12:07 +0200)] 
ALSA: pdaudiocf: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-89-tiwai@suse.de
3 weeks agoALSA: ymfpci: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:09 +0000 (12:07 +0200)] 
ALSA: ymfpci: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-88-tiwai@suse.de
3 weeks agoALSA: via82xx: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:08 +0000 (12:07 +0200)] 
ALSA: via82xx: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-87-tiwai@suse.de
3 weeks agoALSA: trident: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:07 +0000 (12:07 +0200)] 
ALSA: trident: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-86-tiwai@suse.de
3 weeks agoALSA: sonicvibes: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:06 +0000 (12:07 +0200)] 
ALSA: sonicvibes: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-85-tiwai@suse.de
3 weeks agoALSA: sis7019: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:05 +0000 (12:07 +0200)] 
ALSA: sis7019: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-84-tiwai@suse.de
3 weeks agoALSA: rme9652: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:04 +0000 (12:07 +0200)] 
ALSA: rme9652: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-83-tiwai@suse.de
3 weeks agoALSA: hdspm: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:03 +0000 (12:07 +0200)] 
ALSA: hdspm: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-82-tiwai@suse.de
3 weeks agoALSA: hdsp: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:02 +0000 (12:07 +0200)] 
ALSA: hdsp: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-81-tiwai@suse.de
3 weeks agoALSA: rme96: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:01 +0000 (12:07 +0200)] 
ALSA: rme96: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-80-tiwai@suse.de
3 weeks agoALSA: rme32: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:07:00 +0000 (12:07 +0200)] 
ALSA: rme32: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-79-tiwai@suse.de
3 weeks agoALSA: riptide: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:59 +0000 (12:06 +0200)] 
ALSA: riptide: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-78-tiwai@suse.de
3 weeks agoALSA: pcxhr: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:58 +0000 (12:06 +0200)] 
ALSA: pcxhr: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-77-tiwai@suse.de
3 weeks agoALSA: oxygen: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:57 +0000 (12:06 +0200)] 
ALSA: oxygen: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-76-tiwai@suse.de
3 weeks agoALSA: nm256: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:56 +0000 (12:06 +0200)] 
ALSA: nm256: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-75-tiwai@suse.de
3 weeks agoALSA: mixart: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:55 +0000 (12:06 +0200)] 
ALSA: mixart: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-74-tiwai@suse.de
3 weeks agoALSA: maestro3: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:54 +0000 (12:06 +0200)] 
ALSA: maestro3: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-73-tiwai@suse.de
3 weeks agoALSA: lx6464es: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:53 +0000 (12:06 +0200)] 
ALSA: lx6464es: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-72-tiwai@suse.de
3 weeks agoALSA: lola: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:52 +0000 (12:06 +0200)] 
ALSA: lola: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-71-tiwai@suse.de
3 weeks agoALSA: korg1212: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:51 +0000 (12:06 +0200)] 
ALSA: korg1212: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-70-tiwai@suse.de
3 weeks agoALSA: intel8x0: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:50 +0000 (12:06 +0200)] 
ALSA: intel8x0: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-69-tiwai@suse.de
3 weeks agoALSA: ice1724: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:49 +0000 (12:06 +0200)] 
ALSA: ice1724: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-68-tiwai@suse.de
3 weeks agoALSA: ice1712: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:48 +0000 (12:06 +0200)] 
ALSA: ice1712: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-67-tiwai@suse.de
3 weeks agoALSA: fm801: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:47 +0000 (12:06 +0200)] 
ALSA: fm801: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-66-tiwai@suse.de
3 weeks agoALSA: es1968: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:46 +0000 (12:06 +0200)] 
ALSA: es1968: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-65-tiwai@suse.de
3 weeks agoALSA: es1938: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:45 +0000 (12:06 +0200)] 
ALSA: es1938: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-64-tiwai@suse.de
3 weeks agoALSA: ens1370: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:44 +0000 (12:06 +0200)] 
ALSA: ens1370: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-63-tiwai@suse.de
3 weeks agoALSA: emu10k1: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:43 +0000 (12:06 +0200)] 
ALSA: emu10k1: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-62-tiwai@suse.de
3 weeks agoALSA: echoaudio: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:42 +0000 (12:06 +0200)] 
ALSA: echoaudio: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-61-tiwai@suse.de
3 weeks agoALSA: ctxfi: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:41 +0000 (12:06 +0200)] 
ALSA: ctxfi: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-60-tiwai@suse.de
3 weeks agoALSA: cs5535audio: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:40 +0000 (12:06 +0200)] 
ALSA: cs5535audio: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-59-tiwai@suse.de
3 weeks agoALSA: cs5530: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:39 +0000 (12:06 +0200)] 
ALSA: cs5530: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-58-tiwai@suse.de
3 weeks agoALSA: cs46xx: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:38 +0000 (12:06 +0200)] 
ALSA: cs46xx: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-57-tiwai@suse.de
3 weeks agoALSA: cs4281: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:37 +0000 (12:06 +0200)] 
ALSA: cs4281: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-56-tiwai@suse.de
3 weeks agoALSA: cmipci: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:36 +0000 (12:06 +0200)] 
ALSA: cmipci: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-55-tiwai@suse.de
3 weeks agoALSA: ca0106: Use safer strscpy() instead of strcpy()
Takashi Iwai [Thu, 10 Jul 2025 10:06:35 +0000 (12:06 +0200)] 
ALSA: ca0106: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-54-tiwai@suse.de