Skip to content

Commit c4d6667

Browse files
committed
Merge remote-tracking branch 'takashi/for-next' into sound/upstream-20250523
2 parents 2aae25e + aca89f1 commit c4d6667

136 files changed

Lines changed: 2421 additions & 4929 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml

Lines changed: 95 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ properties:
2020

2121
compatible:
2222
oneOf:
23-
- const: nvidia,tegra30-hda
23+
- enum:
24+
- nvidia,tegra30-hda
25+
- nvidia,tegra194-hda
26+
- nvidia,tegra234-hda
27+
- nvidia,tegra264-hda
2428
- items:
2529
- enum:
26-
- nvidia,tegra234-hda
27-
- nvidia,tegra194-hda
2830
- nvidia,tegra186-hda
2931
- nvidia,tegra210-hda
3032
- nvidia,tegra124-hda
@@ -43,26 +45,20 @@ properties:
4345
maxItems: 1
4446

4547
clocks:
46-
minItems: 2
48+
minItems: 1
4749
maxItems: 3
4850

4951
clock-names:
50-
minItems: 2
51-
items:
52-
- const: hda
53-
- const: hda2hdmi
54-
- const: hda2codec_2x
52+
minItems: 1
53+
maxItems: 3
5554

5655
resets:
5756
minItems: 2
5857
maxItems: 3
5958

6059
reset-names:
6160
minItems: 2
62-
items:
63-
- const: hda
64-
- const: hda2hdmi
65-
- const: hda2codec_2x
61+
maxItems: 3
6662

6763
power-domains:
6864
maxItems: 1
@@ -93,6 +89,92 @@ required:
9389

9490
additionalProperties: false
9591

92+
allOf:
93+
- if:
94+
properties:
95+
compatible:
96+
contains:
97+
enum:
98+
- nvidia,tegra30-hda
99+
then:
100+
properties:
101+
clocks:
102+
minItems: 3
103+
clock-names:
104+
items:
105+
- const: hda
106+
- const: hda2hdmi
107+
- const: hda2codec_2x
108+
resets:
109+
minItems: 3
110+
reset-names:
111+
items:
112+
- const: hda
113+
- const: hda2hdmi
114+
- const: hda2codec_2x
115+
- if:
116+
properties:
117+
compatible:
118+
contains:
119+
enum:
120+
- nvidia,tegra194-hda
121+
then:
122+
properties:
123+
clocks:
124+
minItems: 3
125+
clock-names:
126+
items:
127+
- const: hda
128+
- const: hda2hdmi
129+
- const: hda2codec_2x
130+
resets:
131+
maxItems: 2
132+
reset-names:
133+
items:
134+
- const: hda
135+
- const: hda2hdmi
136+
- if:
137+
properties:
138+
compatible:
139+
contains:
140+
enum:
141+
- nvidia,tegra234-hda
142+
then:
143+
properties:
144+
clocks:
145+
minItems: 2
146+
maxItems: 2
147+
clock-names:
148+
items:
149+
- const: hda
150+
- const: hda2codec_2x
151+
resets:
152+
maxItems: 2
153+
reset-names:
154+
items:
155+
- const: hda
156+
- const: hda2codec_2x
157+
- if:
158+
properties:
159+
compatible:
160+
contains:
161+
enum:
162+
- nvidia,tegra264-hda
163+
then:
164+
properties:
165+
clocks:
166+
maxItems: 1
167+
clock-names:
168+
items:
169+
- const: hda
170+
resets:
171+
maxItems: 2
172+
reset-names:
173+
items:
174+
- const: hda
175+
- const: hda2codec_2x
176+
power-domains: false
177+
96178
examples:
97179
- |
98180
#include<dt-bindings/clock/tegra124-car-common.h>

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5655,7 +5655,6 @@ F: include/sound/cs*
56555655
F: sound/pci/hda/cirrus*
56565656
F: sound/pci/hda/cs*
56575657
F: sound/pci/hda/hda_component*
5658-
F: sound/pci/hda/hda_cs_dsp_ctl.*
56595658
F: sound/soc/codecs/cs*
56605659

56615660
CIRRUS LOGIC HAPTIC DRIVERS

include/linux/pci_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,6 +3049,7 @@
30493049
#define PCI_DEVICE_ID_INTEL_HDA_DG1 0x490d
30503050
#define PCI_DEVICE_ID_INTEL_HDA_EHL_0 0x4b55
30513051
#define PCI_DEVICE_ID_INTEL_HDA_EHL_3 0x4b58
3052+
#define PCI_DEVICE_ID_INTEL_HDA_WCL 0x4d28
30523053
#define PCI_DEVICE_ID_INTEL_HDA_JSL_N 0x4dc8
30533054
#define PCI_DEVICE_ID_INTEL_HDA_DG2_0 0x4f90
30543055
#define PCI_DEVICE_ID_INTEL_HDA_DG2_1 0x4f91

include/sound/core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ void snd_device_disconnect(struct snd_card *card, void *device_data);
326326
void snd_device_disconnect_all(struct snd_card *card);
327327
void snd_device_free(struct snd_card *card, void *device_data);
328328
void snd_device_free_all(struct snd_card *card);
329-
int snd_device_get_state(struct snd_card *card, void *device_data);
330329

331330
/* isadma.c */
332331

include/sound/dmaengine_pcm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream,
3838
int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream);
3939
int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream);
4040

41-
int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream,
42-
dma_filter_fn filter_fn, void *filter_data);
4341
int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream);
4442

4543
struct dma_chan *snd_dmaengine_pcm_request_channel(dma_filter_fn filter_fn,

include/sound/gus.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -513,22 +513,6 @@ struct _SND_IW_LFO_PROGRAM {
513513
unsigned short depth;
514514
};
515515

516-
#if 0
517-
extern irqreturn_t snd_gf1_lfo_effect_interrupt(struct snd_gus_card * gus, snd_gf1_voice_t * voice);
518-
#endif
519-
extern void snd_gf1_lfo_init(struct snd_gus_card * gus);
520-
extern void snd_gf1_lfo_done(struct snd_gus_card * gus);
521-
extern void snd_gf1_lfo_program(struct snd_gus_card * gus, int voice, int lfo_type, struct _SND_IW_LFO_PROGRAM *program);
522-
extern void snd_gf1_lfo_enable(struct snd_gus_card * gus, int voice, int lfo_type);
523-
extern void snd_gf1_lfo_disable(struct snd_gus_card * gus, int voice, int lfo_type);
524-
extern void snd_gf1_lfo_change_freq(struct snd_gus_card * gus, int voice, int lfo_type, int freq);
525-
extern void snd_gf1_lfo_change_depth(struct snd_gus_card * gus, int voice, int lfo_type, int depth);
526-
extern void snd_gf1_lfo_setup(struct snd_gus_card * gus, int voice, int lfo_type, int freq, int current_depth, int depth, int sweep, int shape);
527-
extern void snd_gf1_lfo_shutdown(struct snd_gus_card * gus, int voice, int lfo_type);
528-
#if 0
529-
extern void snd_gf1_lfo_command(struct snd_gus_card * gus, int voice, unsigned char *command);
530-
#endif
531-
532516
/* gus_mem.c */
533517

534518
void snd_gf1_mem_lock(struct snd_gf1_mem * alloc, int xup);
@@ -578,14 +562,8 @@ int snd_gf1_new_mixer(struct snd_gus_card * gus);
578562

579563
int snd_gf1_pcm_new(struct snd_gus_card *gus, int pcm_dev, int control_index);
580564

581-
#ifdef CONFIG_SND_DEBUG
582-
extern void snd_gf1_print_voice_registers(struct snd_gus_card * gus);
583-
#endif
584-
585565
/* gus.c */
586566

587-
int snd_gus_use_inc(struct snd_gus_card * gus);
588-
void snd_gus_use_dec(struct snd_gus_card * gus);
589567
int snd_gus_create(struct snd_card *card,
590568
unsigned long port,
591569
int irq, int dma1, int dma2,

include/sound/hdaudio.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct hdac_driver {
223223
struct device_driver driver;
224224
int type;
225225
const struct hda_device_id *id_table;
226-
int (*match)(struct hdac_device *dev, struct hdac_driver *drv);
226+
int (*match)(struct hdac_device *dev, const struct hdac_driver *drv);
227227
void (*unsol_event)(struct hdac_device *dev, unsigned int event);
228228

229229
/* fields used by ext bus APIs */
@@ -235,7 +235,7 @@ struct hdac_driver {
235235
#define drv_to_hdac_driver(_drv) container_of(_drv, struct hdac_driver, driver)
236236

237237
const struct hda_device_id *
238-
hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv);
238+
hdac_get_device_id(struct hdac_device *hdev, const struct hdac_driver *drv);
239239

240240
/*
241241
* Bus verb operators
@@ -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);

include/sound/jack.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ int snd_jack_new(struct snd_card *card, const char *id, int type,
7979
struct snd_jack **jack, bool initial_kctl, bool phantom_jack);
8080
int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask);
8181
#ifdef CONFIG_SND_JACK_INPUT_DEV
82-
void snd_jack_set_parent(struct snd_jack *jack, struct device *parent);
8382
int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type,
8483
int keytype);
8584
#endif
@@ -104,11 +103,6 @@ static inline void snd_jack_report(struct snd_jack *jack, int status)
104103
#endif
105104

106105
#if !defined(CONFIG_SND_JACK) || !defined(CONFIG_SND_JACK_INPUT_DEV)
107-
static inline void snd_jack_set_parent(struct snd_jack *jack,
108-
struct device *parent)
109-
{
110-
}
111-
112106
static inline int snd_jack_set_key(struct snd_jack *jack,
113107
enum snd_jack_types type,
114108
int keytype)

include/sound/pcm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,8 +1251,6 @@ unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate);
12511251
unsigned int snd_pcm_rate_bit_to_rate(unsigned int rate_bit);
12521252
unsigned int snd_pcm_rate_mask_intersect(unsigned int rates_a,
12531253
unsigned int rates_b);
1254-
unsigned int snd_pcm_rate_range_to_bits(unsigned int rate_min,
1255-
unsigned int rate_max);
12561254

12571255
/**
12581256
* snd_pcm_set_runtime_buffer - Set the PCM runtime buffer
@@ -1404,6 +1402,8 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_s
14041402
#define snd_pcm_lib_mmap_iomem NULL
14051403
#endif
14061404

1405+
void snd_pcm_runtime_buffer_set_silence(struct snd_pcm_runtime *runtime);
1406+
14071407
/**
14081408
* snd_pcm_limit_isa_dma_size - Get the max size fitting with ISA DMA transfer
14091409
* @dma: DMA number

include/sound/snd_wavefront.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,8 @@ struct _snd_wavefront_card {
110110
};
111111

112112
extern void snd_wavefront_internal_interrupt (snd_wavefront_card_t *card);
113-
extern int snd_wavefront_detect_irq (snd_wavefront_t *dev) ;
114-
extern int snd_wavefront_check_irq (snd_wavefront_t *dev, int irq);
115-
extern int snd_wavefront_restart (snd_wavefront_t *dev);
116113
extern int snd_wavefront_start (snd_wavefront_t *dev);
117114
extern int snd_wavefront_detect (snd_wavefront_card_t *card);
118-
extern int snd_wavefront_config_midi (snd_wavefront_t *dev) ;
119115
extern int snd_wavefront_cmd (snd_wavefront_t *, int, unsigned char *,
120116
unsigned char *);
121117

0 commit comments

Comments
 (0)