Changeset 622 for GPL/branches


Ignore:
Timestamp:
Jan 2, 2021, 1:29:57 AM (5 years ago)
Author:
Paul Smedley
Message:

More code cleanups to eliminate warnings

Location:
GPL/branches/uniaud32-next
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/include/sound/hdaudio.h

    r615 r622  
    295295        /* h/w resources */
    296296        unsigned long addr;
    297 #ifdef TARGET_OS2
    298         volatile void __iomem *remap_addr;
    299 #else
    300297        void __iomem *remap_addr;
    301 #endif
    302298        int irq;
    303299
     
    529525        unsigned int fifo_size; /* FIFO size */
    530526
    531 #ifndef TARGET_OS2
    532527        void __iomem *sd_addr;  /* stream descriptor pointer */
    533 #else
    534         volatile void __iomem *sd_addr; /* stream descriptor pointer */
    535 #endif
    536528
    537529        u32 sd_int_sta_mask;    /* stream int status mask */
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_realtek.c

    r615 r622  
    69586958};
    69596959
    6960 static const struct hda_verb ALC275_FIXUP_SONY_VAIO_GPIO2_verbs[] = {
    6961                         {0x01, AC_VERB_SET_GPIO_MASK, 0x04},
    6962                         {0x01, AC_VERB_SET_GPIO_DIRECTION, 0x04},
    6963                         {0x01, AC_VERB_SET_GPIO_DATA, 0x00},
    6964                         {0}
    6965 };
    6966 
    69676960static const struct hda_verb ALC269_FIXUP_DELL_M101Z_verbs[] = {
    69686961                        /* Enables internal speaker */
     
    70537046static const struct hda_pintbl ALC269_FIXUP_DELL3_MIC_NO_PRESENCE_PINS[] = {
    70547047                        { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
    7055                         {0}
    7056 };
    7057 
    7058 static const struct hda_pintbl ALC286_FIXUP_SONY_MIC_NO_PRESENCE_PINS[] = {
    7059                         { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
    70607048                        {0}
    70617049};
     
    71287116static const struct hda_pintbl ALC255_FIXUP_DELL2_MIC_NO_PRESENCE_PINS[] = {
    71297117                        { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
    7130                         {0}
    7131 };
    7132 
    7133 static const struct hda_pintbl ALC293_FIXUP_DELL1_MIC_NO_PRESENCE_PINS[] = {
    7134                         { 0x18, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
    7135                         { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
    7136                         {0}
    7137 };
    7138 
    7139 static const struct hda_pintbl ALC292_FIXUP_TPT440_DOCK2_PINS[] = {
    7140                         { 0x16, 0x21211010 }, /* dock headphone */
    7141                         { 0x19, 0x21a11010 }, /* dock mic */
    7142                         {0}
    7143 };
    7144 
    7145 static const struct hda_verb ALC275_FIXUP_DELL_XPS_VERBS[] = {
    7146                         /* Enables internal speaker */
    7147                         {0x20, AC_VERB_SET_COEF_INDEX, 0x1f},
    7148                         {0x20, AC_VERB_SET_PROC_COEF, 0x00c0},
    7149                         {0x20, AC_VERB_SET_COEF_INDEX, 0x30},
    7150                         {0x20, AC_VERB_SET_PROC_COEF, 0x00b1},
    7151                         {0}
    7152 };
    7153 
    7154 static const struct hda_verb ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE_VERBS[] = {
    7155                         /* Disable pass-through path for FRONT 14h */
    7156                         {0x20, AC_VERB_SET_COEF_INDEX, 0x36},
    7157                         {0x20, AC_VERB_SET_PROC_COEF, 0x1737},
    7158                         {0}
    7159 };
    7160 
    7161 static const struct hda_pintbl ALC221_FIXUP_HP_FRONT_MIC_PINS[] = {
    7162                         { 0x19, 0x02a19020 }, /* Front Mic */
    71637118                        {0}
    71647119};
     
    1055810513};
    1055910514
    10560 static const struct hda_pintbl  ALC668_FIXUP_DELL_MIC_NO_PRESENCE_PINS[] = {
    10561                         { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
    10562                         { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
    10563                         {0}
    10564 };
    10565 
    1056610515static const struct hda_pintbl  ALC662_FIXUP_BASS_16_PINS[] = {
    1056710516                        {0x16, 0x80106111}, /* bass speaker */
     
    1057110520static const struct hda_pintbl  ALC662_FIXUP_BASS_1A_PINS[] = {
    1057210521                        {0x1a, 0x80106111}, /* bass speaker */
    10573                         {0}
    10574 };
    10575 
    10576 static const struct hda_pintbl  ALC668_FIXUP_ASUS_Nx51_PINS[] = {
    10577                         {0x1a, 0x90170151}, /* bass speaker */
    10578                         {0}
    10579 };
    10580 
    10581 static const struct hda_pintbl  ALC662_FIXUP_ACER_VERITON_PINS[] = {
    10582                         { 0x15, 0x50170120 }, /* no internal speaker */
    10583                         {0}
    10584 };
    10585 
    10586 static const struct hda_pintbl  ALC892_FIXUP_ASROCK_MOBO_PINS[] = {
    10587                         { 0x15, 0x40f000f0 }, /* disabled */
    10588                         { 0x16, 0x40f000f0 }, /* disabled */
    1058910522                        {0}
    1059010523};
  • GPL/branches/uniaud32-next/include/linux/device.h

    r615 r622  
    7676  struct list_head      devres_head;
    7777  const struct attribute_group **groups;        /* optional groups */
    78         const struct dma_map_ops *dma_ops;
     78        struct dma_map_ops *dma_ops;
    7979        u64             *dma_mask;      /* dma mask (if dma'able device) */
    8080        u64             coherent_dma_mask; /* Like dma_mask, but for
  • GPL/branches/uniaud32-next/include/linux/dma-mapping.h

    r615 r622  
    108108
    109109static inline void set_dma_ops(struct device *dev,
    110                                const struct dma_map_ops *dma_ops)
     110                               struct dma_map_ops *dma_ops)
    111111{
    112112        dev->dma_ops = dma_ops;
  • GPL/branches/uniaud32-next/include/linux/list.h

    r615 r622  
    294294 * @head: the list to test.
    295295 */
    296 static inline int list_is_singular(const struct list_head *head)
     296static inline int list_is_singular(struct list_head *head)
    297297{
    298298        return !list_empty(head) && (head->next == head->prev);
  • GPL/branches/uniaud32-next/include/linux/log2.h

    r615 r622  
    1111{
    1212        return (n != 0 && ((n & (n - 1)) == 0));
    13 }
    14 
    15 /*
    16  * round up to nearest power of two
    17  */
    18 static inline
    19 unsigned long __roundup_pow_of_two(unsigned long n)
    20 {
    21         return 1UL << fls_long(n - 1);
    22 }
    23 
    24 /*
    25  * round down to nearest power of two
    26  */
    27 static inline
    28 unsigned long __rounddown_pow_of_two(unsigned long n)
    29 {
    30         return 1UL << (fls_long(n) - 1);
    3113}
    3214
  • GPL/branches/uniaud32-next/include/linux/refcount.h

    r615 r622  
    3737}
    3838
    39 static inline __must_check bool refcount_add_not_zero(unsigned int i, refcount_t *r)
    40 {
    41         return atomic_add_unless(&r->refs, i, 0);
    42 }
    43 
    4439static inline void refcount_add(unsigned int i, refcount_t *r)
    4540{
    4641        atomic_add(i, &r->refs);
    47 }
    48 
    49 static inline __must_check bool refcount_inc_not_zero(refcount_t *r)
    50 {
    51         return atomic_add_unless(&r->refs, 1, 0);
    5242}
    5343
Note: See TracChangeset for help on using the changeset viewer.