Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda: Remove unused snd_hdac_stream_get_spbmaxfifo

snd_hdac_stream_get_spbmaxfifo() was originally added in 2015
in commit ee8bc4df1b5a ("ALSA: hdac: Add support to enable SPIB for hdac
ext stream")

when it was originally called snd_hdac_ext_stream_set_spbmaxfifo,
it was renamed snd_hdac_ext_stream_get_spbmaxfifo shortly after
and was finally renamed to snd_hdac_stream_get_spbmaxfifo in 2022.
But it was never used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250505011037.340592-1-linux@treblig.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Dr. David Alan Gilbert and committed by
Takashi Iwai
845b9977 42fdb678

-21
-2
include/sound/hdaudio.h
··· 598 598 bool enable, int index); 599 599 int snd_hdac_stream_set_spib(struct hdac_bus *bus, 600 600 struct hdac_stream *azx_dev, u32 value); 601 - int snd_hdac_stream_get_spbmaxfifo(struct hdac_bus *bus, 602 - struct hdac_stream *azx_dev); 603 601 void snd_hdac_stream_drsm_enable(struct hdac_bus *bus, 604 602 bool enable, int index); 605 603 int snd_hdac_stream_wait_drsm(struct hdac_stream *azx_dev);
-19
sound/hda/hdac_stream.c
··· 826 826 EXPORT_SYMBOL_GPL(snd_hdac_stream_set_spib); 827 827 828 828 /** 829 - * snd_hdac_stream_get_spbmaxfifo - gets the spib value of a stream 830 - * @bus: HD-audio core bus 831 - * @azx_dev: hdac_stream 832 - * 833 - * Return maxfifo for the stream 834 - */ 835 - int snd_hdac_stream_get_spbmaxfifo(struct hdac_bus *bus, 836 - struct hdac_stream *azx_dev) 837 - { 838 - if (!bus->spbcap) { 839 - dev_err(bus->dev, "Address of SPB capability is NULL\n"); 840 - return -EINVAL; 841 - } 842 - 843 - return readl(azx_dev->fifo_addr); 844 - } 845 - EXPORT_SYMBOL_GPL(snd_hdac_stream_get_spbmaxfifo); 846 - 847 - /** 848 829 * snd_hdac_stream_drsm_enable - enable DMA resume for a stream 849 830 * @bus: HD-audio core bus 850 831 * @enable: flag to enable/disable DRSM