<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/sound/pci/hda/hda_beep.h, branch docs-next</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-next</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-next'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2025-07-11T07:55:37+00:00</updated>
<entry>
<title>ALSA: hda: Move common codec driver into sound/hda/common directory</title>
<updated>2025-07-11T07:55:37+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2025-07-09T16:04:06+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=05be28fe8521f183f945d052d5019197e5934f0e'/>
<id>urn:sha1:05be28fe8521f183f945d052d5019197e5934f0e</id>
<content type='text'>
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 &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250709160434.1859-4-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: hda: beep: Drop stale mutex</title>
<updated>2024-02-22T16:26:53+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2024-02-22T15:31:48+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=bc80e83ebbb274fcd40b17dd8c4f8a6b74808feb'/>
<id>urn:sha1:bc80e83ebbb274fcd40b17dd8c4f8a6b74808feb</id>
<content type='text'>
The beep-&gt;mutex is no longer used since the drop of beep_mode=2.
Let's get rid of it.

Fixes: 0920c9b4c4d8 ("ALSA: hda - Remove beep_mode=2")
Link: https://lore.kernel.org/r/20240222153148.19691-1-tiwai@suse.de
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda: beep: Simplify keep-power-at-enable behavior</title>
<updated>2022-09-06T09:24:02+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2022-09-06T09:23:06+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4c8d695cb9bc5f6fd298a586602947b2fc099a64'/>
<id>urn:sha1:4c8d695cb9bc5f6fd298a586602947b2fc099a64</id>
<content type='text'>
The recent fix for IDT codecs to keep the power up while the beep is
enabled can be better integrated into the beep helper code.
This patch cleans up the code with refactoring.

Fixes: 414d38ba8710 ("ALSA: hda/sigmatel: Keep power up while beep is enabled")
Link: https://lore.kernel.org/r/20220906092306.26183-1-tiwai@suse.de
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda - Use standard device registration for beep</title>
<updated>2019-01-29T17:28:09+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2019-01-24T08:45:36+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=45571bb871b217f1031045a27d935ea7c6ea5d12'/>
<id>urn:sha1:45571bb871b217f1031045a27d935ea7c6ea5d12</id>
<content type='text'>
Currently the registration and free of beep input device was done
manually from the register and the disconnect callbacks of the
assigned codec object.  This seems working in most cases, but this may
be a cause of some races at probe.  Moreover, due to these manual
calls, the total code became unnecessarily lengthy.

This patch rewrites the beep registration code to follow the standard
sound device object style.  This allows us reducing the code, in
addition to avoiding the nested device registration calls.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda: move hda_codec.h to include/sound</title>
<updated>2018-08-30T14:45:10+00:00</updated>
<author>
<name>Pierre-Louis Bossart</name>
<email>pierre-louis.bossart@linux.intel.com</email>
</author>
<published>2018-08-22T20:24:57+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=be57bfffb7b5ba72e1293643053f8861fcaa5163'/>
<id>urn:sha1:be57bfffb7b5ba72e1293643053f8861fcaa5163</id>
<content type='text'>
As suggested by Takashi, move this header file to make it easier
to include from e.g. the Intel Skylake driver in follow-up patches

Signed-off-by: Pierre-Louis Bossart &lt;pierre-louis.bossart@linux.intel.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>ALSA: hda-beep: add SPDX identifiers</title>
<updated>2018-02-20T15:49:59+00:00</updated>
<author>
<name>Matt Ranostay</name>
<email>matt.ranostay@konsulko.com</email>
</author>
<published>2018-02-17T05:53:15+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=248a380a3c2e7e3363f26c17b6923b430cf6463e'/>
<id>urn:sha1:248a380a3c2e7e3363f26c17b6923b430cf6463e</id>
<content type='text'>
Add SPDX GPLv2.0+ identifiers and update authors email

Signed-off-by: Matt Ranostay &lt;matt.ranostay@konsulko.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda-beep: Update authors dead email address</title>
<updated>2015-06-20T07:24:40+00:00</updated>
<author>
<name>Matt Ranostay</name>
<email>mranostay@gmail.com</email>
</author>
<published>2015-06-20T06:46:16+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=f267f9dff8ba00a8b11f340da3634858ad50ebab'/>
<id>urn:sha1:f267f9dff8ba00a8b11f340da3634858ad50ebab</id>
<content type='text'>
Signed-off-by: Matt Ranostay &lt;mranostay@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda - Adjust power of beep widget and outputs</title>
<updated>2015-03-18T08:23:10+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-03-18T08:23:10+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=5ccf835cc76d89bc0d426659c63d81f609050842'/>
<id>urn:sha1:5ccf835cc76d89bc0d426659c63d81f609050842</id>
<content type='text'>
As the widget PM may turn off the pins, this might lead to the silent
output for beep when no explicit paths are given.  This patch adds
fake output paths for the beep widget so that the output pins are
dynamically powered upon beep on/off.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda - Fix registration of beep input device</title>
<updated>2014-02-28T13:02:21+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2014-02-28T12:42:09+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=d604b3990884062873e3bef09ef5e89857c409c3'/>
<id>urn:sha1:d604b3990884062873e3bef09ef5e89857c409c3</id>
<content type='text'>
The beep input device is registered via input_register_device(), but
this is called in snd_hda_attach_beep_device() where the sound devices
aren't registered yet.  This leads to the binding to non-existing
object, thus results in failure.  And, even if the binding worked
(against the PCI object), it's still racy; the input device appears
before the sound objects.

For fixing this, register the input device properly at dev_register
ops of the codec object it's bound with.  Also, call
snd_hda_detach_beep_device() at dev_disconnection so that it's
detached at the right timing.  As a bonus, since it's called in the
codec's ops, we can get rid of the further call from the other codec
drivers.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda - Fix power-saving during playing beep sound</title>
<updated>2013-03-18T11:58:47+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2013-03-18T10:29:56+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=e914b25e370a3a55a839ff507ed779f54431ace5'/>
<id>urn:sha1:e914b25e370a3a55a839ff507ed779f54431ace5</id>
<content type='text'>
While playing the digital beep tone, the codec shouldn't be turned
off.  This patch adds proper snd_hda_power_up()/down() calls at each
time when the beep is played or off.

Also, this fixes automatically an unnecessary codec power-up at
detaching the beep device when the beep isn't being played.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
