Loading include/sound/emu10k1.h +20 −12 Original line number Diff line number Diff line Loading @@ -598,17 +598,25 @@ SUB_REG(PEFE, FILTERAMOUNT, 0x000000ff) /* Filter envlope amount */ // In stereo mode, the two channels' caches are concatenated into one, // and hold the interleaved frames. // The cache holds 64 frames, so the upper half is not used in 8-bit mode. // All registers mentioned below count in frames. // The cache is a ring buffer; CCR_READADDRESS operates modulo 64. // The cache is filled from (CCCA_CURRADDR - CCR_CACHEINVALIDSIZE) // into (CCR_READADDRESS - CCR_CACHEINVALIDSIZE). // All registers mentioned below count in frames. Shortcuts: // CA = CCCA_CURRADDR, CRA = CCR_READADDRESS, // CLA = CCR_CACHELOOPADDRHI:CLP_CACHELOOPADDR, // CIS = CCR_CACHEINVALIDSIZE, LIS = CCR_LOOPINVALSIZE, // CLF = CCR_CACHELOOPFLAG, LF = CCR_LOOPFLAG // The cache is a ring buffer; CRA operates modulo 64. // The cache is filled from (CA - CIS) into (CRA - CIS). // The engine has a fetch threshold of 32 bytes, so it tries to keep // CCR_CACHEINVALIDSIZE below 8 (16-bit stereo), 16 (16-bit mono, // 8-bit stereo), or 32 (8-bit mono). The actual transfers are pretty // unpredictable, especially if several voices are running. // Frames are consumed at CCR_READADDRESS, which is incremented afterwards, // along with CCCA_CURRADDR and CCR_CACHEINVALIDSIZE. This implies that the // actual playback position always lags CCCA_CURRADDR by exactly 64 frames. // CIS below 8 (16-bit stereo), 16 (16-bit mono, 8-bit stereo), or // 32 (8-bit mono). The actual transfers are pretty unpredictable, // especially if several voices are running. // Frames are consumed at CRA, which is incremented afterwards, // along with CA and CIS. This implies that the actual playback // position always lags CA by exactly 64 frames. // When CA reaches DSL_LOOPENDADDR, LF is set for one frame's time. // LF's rising edge causes the current values of CA and CIS to be // copied into CLA and LIS, resp., and CLF to be set. // If CLF is set, the first LIS of the CIS frames are instead // filled from (CLA - LIS), and CLF is subsequently reset. #define CD0 0x20 /* Cache data registers 0 .. 0x1f */ #define PTB 0x40 /* Page table base register */ Loading Loading @@ -1882,8 +1890,8 @@ int snd_emu10k1_alloc_pages_maybe_wider(struct snd_emu10k1 *emu, size_t size, struct snd_dma_buffer *dmab); struct snd_util_memblk *snd_emu10k1_synth_alloc(struct snd_emu10k1 *emu, unsigned int size); int snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *blk); int snd_emu10k1_synth_bzero(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int size); int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, const char __user *data, int size); int snd_emu10k1_synth_memset(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int size, u8 value); int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, const char __user *data, int size, u32 xor); int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk); /* voice allocation */ Loading include/sound/hdaudio_ext.h +3 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,9 @@ struct hdac_ext_stream { u32 pphcldpl; u32 pphcldpu; u32 pplcllpl; u32 pplcllpu; bool decoupled:1; bool link_locked:1; bool link_prepared; Loading include/sound/soundfont.h +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ struct snd_sf_list { int snd_soundfont_load(struct snd_sf_list *sflist, const void __user *data, long count, int client); int snd_soundfont_load_guspatch(struct snd_sf_list *sflist, const char __user *data, long count, int client); long count); int snd_soundfont_close_check(struct snd_sf_list *sflist, int client); struct snd_sf_list *snd_sf_new(struct snd_sf_callback *callback, Loading include/sound/tas2781-tlv.h +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ #ifndef __TAS2781_TLV_H__ #define __TAS2781_TLV_H__ static const DECLARE_TLV_DB_SCALE(dvc_tlv, -10000, 100, 0); static const __maybe_unused DECLARE_TLV_DB_SCALE(dvc_tlv, -10000, 100, 0); static const DECLARE_TLV_DB_SCALE(amp_vol_tlv, 1100, 50, 0); #endif sound/aoa/soundbus/i2sbus/core.c +1 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ static int i2sbus_add_dev(struct macio_dev *macio, struct device_node *child, *sound = NULL; struct resource *r; int i, layout = 0, rlen, ok = force; char node_name[6]; char node_name[8]; static const char *rnames[] = { "i2sbus: %pOFn (control)", "i2sbus: %pOFn (tx)", "i2sbus: %pOFn (rx)" }; Loading Loading
include/sound/emu10k1.h +20 −12 Original line number Diff line number Diff line Loading @@ -598,17 +598,25 @@ SUB_REG(PEFE, FILTERAMOUNT, 0x000000ff) /* Filter envlope amount */ // In stereo mode, the two channels' caches are concatenated into one, // and hold the interleaved frames. // The cache holds 64 frames, so the upper half is not used in 8-bit mode. // All registers mentioned below count in frames. // The cache is a ring buffer; CCR_READADDRESS operates modulo 64. // The cache is filled from (CCCA_CURRADDR - CCR_CACHEINVALIDSIZE) // into (CCR_READADDRESS - CCR_CACHEINVALIDSIZE). // All registers mentioned below count in frames. Shortcuts: // CA = CCCA_CURRADDR, CRA = CCR_READADDRESS, // CLA = CCR_CACHELOOPADDRHI:CLP_CACHELOOPADDR, // CIS = CCR_CACHEINVALIDSIZE, LIS = CCR_LOOPINVALSIZE, // CLF = CCR_CACHELOOPFLAG, LF = CCR_LOOPFLAG // The cache is a ring buffer; CRA operates modulo 64. // The cache is filled from (CA - CIS) into (CRA - CIS). // The engine has a fetch threshold of 32 bytes, so it tries to keep // CCR_CACHEINVALIDSIZE below 8 (16-bit stereo), 16 (16-bit mono, // 8-bit stereo), or 32 (8-bit mono). The actual transfers are pretty // unpredictable, especially if several voices are running. // Frames are consumed at CCR_READADDRESS, which is incremented afterwards, // along with CCCA_CURRADDR and CCR_CACHEINVALIDSIZE. This implies that the // actual playback position always lags CCCA_CURRADDR by exactly 64 frames. // CIS below 8 (16-bit stereo), 16 (16-bit mono, 8-bit stereo), or // 32 (8-bit mono). The actual transfers are pretty unpredictable, // especially if several voices are running. // Frames are consumed at CRA, which is incremented afterwards, // along with CA and CIS. This implies that the actual playback // position always lags CA by exactly 64 frames. // When CA reaches DSL_LOOPENDADDR, LF is set for one frame's time. // LF's rising edge causes the current values of CA and CIS to be // copied into CLA and LIS, resp., and CLF to be set. // If CLF is set, the first LIS of the CIS frames are instead // filled from (CLA - LIS), and CLF is subsequently reset. #define CD0 0x20 /* Cache data registers 0 .. 0x1f */ #define PTB 0x40 /* Page table base register */ Loading Loading @@ -1882,8 +1890,8 @@ int snd_emu10k1_alloc_pages_maybe_wider(struct snd_emu10k1 *emu, size_t size, struct snd_dma_buffer *dmab); struct snd_util_memblk *snd_emu10k1_synth_alloc(struct snd_emu10k1 *emu, unsigned int size); int snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *blk); int snd_emu10k1_synth_bzero(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int size); int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, const char __user *data, int size); int snd_emu10k1_synth_memset(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int size, u8 value); int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, const char __user *data, int size, u32 xor); int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk); /* voice allocation */ Loading
include/sound/hdaudio_ext.h +3 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,9 @@ struct hdac_ext_stream { u32 pphcldpl; u32 pphcldpu; u32 pplcllpl; u32 pplcllpu; bool decoupled:1; bool link_locked:1; bool link_prepared; Loading
include/sound/soundfont.h +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ struct snd_sf_list { int snd_soundfont_load(struct snd_sf_list *sflist, const void __user *data, long count, int client); int snd_soundfont_load_guspatch(struct snd_sf_list *sflist, const char __user *data, long count, int client); long count); int snd_soundfont_close_check(struct snd_sf_list *sflist, int client); struct snd_sf_list *snd_sf_new(struct snd_sf_callback *callback, Loading
include/sound/tas2781-tlv.h +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ #ifndef __TAS2781_TLV_H__ #define __TAS2781_TLV_H__ static const DECLARE_TLV_DB_SCALE(dvc_tlv, -10000, 100, 0); static const __maybe_unused DECLARE_TLV_DB_SCALE(dvc_tlv, -10000, 100, 0); static const DECLARE_TLV_DB_SCALE(amp_vol_tlv, 1100, 50, 0); #endif
sound/aoa/soundbus/i2sbus/core.c +1 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ static int i2sbus_add_dev(struct macio_dev *macio, struct device_node *child, *sound = NULL; struct resource *r; int i, layout = 0, rlen, ok = force; char node_name[6]; char node_name[8]; static const char *rnames[] = { "i2sbus: %pOFn (control)", "i2sbus: %pOFn (tx)", "i2sbus: %pOFn (rx)" }; Loading