@@ -472,7 +472,7 @@ static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
472472 pstr -> proc_root = entry ;
473473
474474 if ((entry = snd_info_create_card_entry (pcm -> card , "info" , pstr -> proc_root )) != NULL ) {
475- snd_info_set_text_ops (entry , pstr , 256 , snd_pcm_stream_proc_info_read );
475+ snd_info_set_text_ops (entry , pstr , snd_pcm_stream_proc_info_read );
476476 if (snd_info_register (entry ) < 0 ) {
477477 snd_info_free_entry (entry );
478478 entry = NULL ;
@@ -483,9 +483,7 @@ static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
483483#ifdef CONFIG_SND_PCM_XRUN_DEBUG
484484 if ((entry = snd_info_create_card_entry (pcm -> card , "xrun_debug" ,
485485 pstr -> proc_root )) != NULL ) {
486- entry -> c .text .read_size = 64 ;
487486 entry -> c .text .read = snd_pcm_xrun_debug_read ;
488- entry -> c .text .write_size = 64 ;
489487 entry -> c .text .write = snd_pcm_xrun_debug_write ;
490488 entry -> mode |= S_IWUSR ;
491489 entry -> private_data = pstr ;
@@ -537,7 +535,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
537535 substream -> proc_root = entry ;
538536
539537 if ((entry = snd_info_create_card_entry (card , "info" , substream -> proc_root )) != NULL ) {
540- snd_info_set_text_ops (entry , substream , 256 , snd_pcm_substream_proc_info_read );
538+ snd_info_set_text_ops (entry , substream ,
539+ snd_pcm_substream_proc_info_read );
541540 if (snd_info_register (entry ) < 0 ) {
542541 snd_info_free_entry (entry );
543542 entry = NULL ;
@@ -546,7 +545,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
546545 substream -> proc_info_entry = entry ;
547546
548547 if ((entry = snd_info_create_card_entry (card , "hw_params" , substream -> proc_root )) != NULL ) {
549- snd_info_set_text_ops (entry , substream , 256 , snd_pcm_substream_proc_hw_params_read );
548+ snd_info_set_text_ops (entry , substream ,
549+ snd_pcm_substream_proc_hw_params_read );
550550 if (snd_info_register (entry ) < 0 ) {
551551 snd_info_free_entry (entry );
552552 entry = NULL ;
@@ -555,7 +555,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
555555 substream -> proc_hw_params_entry = entry ;
556556
557557 if ((entry = snd_info_create_card_entry (card , "sw_params" , substream -> proc_root )) != NULL ) {
558- snd_info_set_text_ops (entry , substream , 256 , snd_pcm_substream_proc_sw_params_read );
558+ snd_info_set_text_ops (entry , substream ,
559+ snd_pcm_substream_proc_sw_params_read );
559560 if (snd_info_register (entry ) < 0 ) {
560561 snd_info_free_entry (entry );
561562 entry = NULL ;
@@ -564,7 +565,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
564565 substream -> proc_sw_params_entry = entry ;
565566
566567 if ((entry = snd_info_create_card_entry (card , "status" , substream -> proc_root )) != NULL ) {
567- snd_info_set_text_ops (entry , substream , 256 , snd_pcm_substream_proc_status_read );
568+ snd_info_set_text_ops (entry , substream ,
569+ snd_pcm_substream_proc_status_read );
568570 if (snd_info_register (entry ) < 0 ) {
569571 snd_info_free_entry (entry );
570572 entry = NULL ;
@@ -1062,8 +1064,7 @@ static void snd_pcm_proc_init(void)
10621064 struct snd_info_entry * entry ;
10631065
10641066 if ((entry = snd_info_create_module_entry (THIS_MODULE , "pcm" , NULL )) != NULL ) {
1065- snd_info_set_text_ops (entry , NULL , SNDRV_CARDS * SNDRV_PCM_DEVICES * 128 ,
1066- snd_pcm_proc_read );
1067+ snd_info_set_text_ops (entry , NULL , snd_pcm_proc_read );
10671068 if (snd_info_register (entry ) < 0 ) {
10681069 snd_info_free_entry (entry );
10691070 entry = NULL ;
0 commit comments