Commit 1604eeee authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Drop azx_sd_read*/write*() macros

They are no longer used (only one place which can be replaced with a
proper helper function).  Let's drop.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4cfe99c7
...@@ -185,19 +185,6 @@ struct azx { ...@@ -185,19 +185,6 @@ struct azx {
#define azx_readb(chip, reg) \ #define azx_readb(chip, reg) \
snd_hdac_chip_readb(azx_bus(chip), reg) snd_hdac_chip_readb(azx_bus(chip), reg)
#define azx_sd_writel(chip, dev, reg, value) \
snd_hdac_stream_writel(&(dev)->core, reg, value)
#define azx_sd_readl(chip, dev, reg) \
snd_hdac_stream_readl(&(dev)->core, reg)
#define azx_sd_writew(chip, dev, reg, value) \
snd_hdac_stream_writew(&(dev)->core, reg, value)
#define azx_sd_readw(chip, dev, reg) \
snd_hdac_stream_readw(&(dev)->core, reg)
#define azx_sd_writeb(chip, dev, reg, value) \
snd_hdac_stream_writeb(&(dev)->core, reg, value)
#define azx_sd_readb(chip, dev, reg) \
snd_hdac_stream_readb(&(dev)->core, reg)
#define azx_has_pm_runtime(chip) \ #define azx_has_pm_runtime(chip) \
(!AZX_DCAPS_PM_RUNTIME || ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME)) (!AZX_DCAPS_PM_RUNTIME || ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME))
......
...@@ -680,7 +680,7 @@ static unsigned int azx_via_get_position(struct azx *chip, ...@@ -680,7 +680,7 @@ static unsigned int azx_via_get_position(struct azx *chip,
unsigned int mod_link_pos, mod_dma_pos, mod_mini_pos; unsigned int mod_link_pos, mod_dma_pos, mod_mini_pos;
unsigned int fifo_size; unsigned int fifo_size;
link_pos = azx_sd_readl(chip, azx_dev, SD_LPIB); link_pos = snd_hdac_stream_get_pos_lpib(azx_stream(azx_dev));
if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
/* Playback, no problem using link position */ /* Playback, no problem using link position */
return link_pos; return link_pos;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment