Skip to content

Commit 845b997

Browse files
Dr. David Alan Gilberttiwai
authored andcommitted
ALSA: hda: Remove unused snd_hdac_stream_get_spbmaxfifo
snd_hdac_stream_get_spbmaxfifo() was originally added in 2015 in commit ee8bc4d ("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>
1 parent 42fdb67 commit 845b997

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

include/sound/hdaudio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,6 @@ void snd_hdac_stream_spbcap_enable(struct hdac_bus *chip,
598598
bool enable, int index);
599599
int snd_hdac_stream_set_spib(struct hdac_bus *bus,
600600
struct hdac_stream *azx_dev, u32 value);
601-
int snd_hdac_stream_get_spbmaxfifo(struct hdac_bus *bus,
602-
struct hdac_stream *azx_dev);
603601
void snd_hdac_stream_drsm_enable(struct hdac_bus *bus,
604602
bool enable, int index);
605603
int snd_hdac_stream_wait_drsm(struct hdac_stream *azx_dev);

sound/hda/hdac_stream.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -825,25 +825,6 @@ int snd_hdac_stream_set_spib(struct hdac_bus *bus,
825825
}
826826
EXPORT_SYMBOL_GPL(snd_hdac_stream_set_spib);
827827

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-
847828
/**
848829
* snd_hdac_stream_drsm_enable - enable DMA resume for a stream
849830
* @bus: HD-audio core bus

0 commit comments

Comments
 (0)