File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ static int motu_rate_constraint(struct snd_pcm_hw_params *params,
26
26
rate = snd_motu_clock_rates [i ];
27
27
mode = i / 2 ;
28
28
29
- pcm_channels = formats -> fixed_part_pcm_chunks [mode ] +
30
- formats -> differed_part_pcm_chunks [mode ];
29
+ pcm_channels = formats -> pcm_chunks [mode ];
31
30
if (!snd_interval_test (c , pcm_channels ))
32
31
continue ;
33
32
@@ -59,8 +58,7 @@ static int motu_channels_constraint(struct snd_pcm_hw_params *params,
59
58
if (!snd_interval_test (r , rate ))
60
59
continue ;
61
60
62
- pcm_channels = formats -> fixed_part_pcm_chunks [mode ] +
63
- formats -> differed_part_pcm_chunks [mode ];
61
+ pcm_channels = formats -> pcm_chunks [mode ];
64
62
channels .min = min (channels .min , pcm_channels );
65
63
channels .max = max (channels .max , pcm_channels );
66
64
}
@@ -82,8 +80,7 @@ static void limit_channels_and_rates(struct snd_motu *motu,
82
80
rate = snd_motu_clock_rates [i ];
83
81
mode = i / 2 ;
84
82
85
- pcm_channels = formats -> fixed_part_pcm_chunks [mode ] +
86
- formats -> differed_part_pcm_chunks [mode ];
83
+ pcm_channels = formats -> pcm_chunks [mode ];
87
84
if (pcm_channels == 0 )
88
85
continue ;
89
86
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static void proc_read_format(struct snd_info_entry *entry,
51
51
if (snd_motu_protocol_cache_packet_formats (motu ) < 0 )
52
52
return ;
53
53
54
- snd_iprintf (buffer , "tx:\tmsg\tfixed\tdiffered \n" );
54
+ snd_iprintf (buffer , "tx:\tmsg\tfixed\ttotal \n" );
55
55
for (i = 0 ; i < SND_MOTU_CLOCK_RATE_COUNT ; ++ i ) {
56
56
mode = i >> 1 ;
57
57
@@ -60,11 +60,11 @@ static void proc_read_format(struct snd_info_entry *entry,
60
60
"%u:\t%u\t%u\t%u\n" ,
61
61
snd_motu_clock_rates [i ],
62
62
formats -> msg_chunks ,
63
- formats -> fixed_part_pcm_chunks [mode ],
64
- formats -> differed_part_pcm_chunks [mode ]);
63
+ motu -> spec -> tx_fixed_pcm_chunks [mode ],
64
+ formats -> pcm_chunks [mode ]);
65
65
}
66
66
67
- snd_iprintf (buffer , "rx:\tmsg\tfixed\tdiffered \n" );
67
+ snd_iprintf (buffer , "rx:\tmsg\tfixed\ttotal \n" );
68
68
for (i = 0 ; i < SND_MOTU_CLOCK_RATE_COUNT ; ++ i ) {
69
69
mode = i >> 1 ;
70
70
@@ -73,8 +73,8 @@ static void proc_read_format(struct snd_info_entry *entry,
73
73
"%u:\t%u\t%u\t%u\n" ,
74
74
snd_motu_clock_rates [i ],
75
75
formats -> msg_chunks ,
76
- formats -> fixed_part_pcm_chunks [mode ],
77
- formats -> differed_part_pcm_chunks [mode ]);
76
+ motu -> spec -> rx_fixed_pcm_chunks [mode ],
77
+ formats -> pcm_chunks [mode ]);
78
78
}
79
79
}
80
80
You can’t perform that action at this time.
0 commit comments